var wParam1="width=700, height=620, toolbar=0,directories=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0";
var wParam2="width=900, height=680, toolbar=0,directories=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0";
var wParam3="width=800, height=600, toolbar=0,directories=0,location=0,status=0,menubar=0,scrollbars=1,resizable=0";

function windowOpen(target) {
	if(target=="game.html"){
		newWin=window.open(target,"newWin2",wParam2);
	}else if(target=="theater/index.html"){
		newWin=window.open(target,"newWin3",wParam3);
	}else{
		newWin=window.open(target,"newWin1",wParam1);
	}
	newWin.focus();
}



var objWin;
var nSizeWidth;
var nSizeHeight;
var newUrl="contents.html";

function fullscreen(){
	var strTemp;

	nSizeWidth = 0;
	nSizeHeight = 0;
	nSizeWidth = screen.width;
	nSizeHeight = screen.height;

	if(nSizeHeight >= 900){
		strTemp = "width="+nSizeWidth+",height="+nSizeHeight;
	}else{
		strTemp = "width="+nSizeWidth+",height="+nSizeHeight+",scrollbars=1";
	}
	objWin = window.open(newUrl,"subwin",strTemp);

	objWin.window.moveTo(0,0);
	objWin.focus();
}
