
function vaiop(uri){
	var ms = navigator.appVersion.indexOf("MSIE");
	var ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
	var nesc = navigator.appName.lastIndexOf("Netscape"); 
	var nesc4 = (nesc >= 0) && (parseInt(navigator.appVersion.substring(0,2)) >= 4);
	
	if (nesc4){
    	newwindow = window.open(uri,"newwindow","width=" + window.screen.width + ",height=" + window.screen.height + ",scrollbars=yes");
		newwindow.moveTo(0,0);
		newwindow.focus();
	}else if (ie4){
		window.open(uri,"screen","fullscreen=yes,scrollbars=yes");
	}else{
		
	}
}

function openVaio(url,target,width,height) {
	var para =""
		+",toolbar="     +0
		+",location="    +1
		+",directories=" +0
		+",status="      +0
		+",menubar="     +0
		+",scrollbars="  +0
		+",resizable="   +0
		+",innerWidth="  +width
		+",innerHeight=" +height
		+",width="       +width
		+",height="      +height

	_target = window.open(url,target,para);
	resizeT(width,height,_target);
	//_target.focus();
}

function vaiop() {
	resizeT(1000,650);
}

function resizeT(width,height,oj) {
	if ( !arguments[2] ) { oj = self; }
	
	//oj.resizeTo(width,height);

	var size = getWindowSize(oj);
	//alert(width + "," + height + " =? " + size.w + "," + size.h);
	
	if ( width != size.w || height != size.h ) {
		oj.resizeBy( (width-size.w),(height-size.h) );
		if ( document.layers ) { oj.location.reload(0); }
	}
	oj.focus();
}
function resizeB(width,height,ob) {
	if ( !arguments[2] ) { oj = self; }
	
	oj.resizeBy(width,height);
}

function getWindowSize(oj) {
	if ( !arguments[0] ) { oj = self; }

	var size = new Object();

	//n4 o6用
	if ( window.opera || document.layers ) {
		size.w = oj.innerWidth;
		size.h = oj.innerHeight;
	//e用
	} else if ( document.all ) {
		size.w = oj.document.body.clientWidth;
		size.h = oj.document.body.clientHeight;
	//n6,n7,m1用
	} else if ( document.getElementById ) {
		size.w = oj.innerWidth;
		size.h = oj.innerHeight;
	}

	return size;
}
