var myBrowser;
//
if(navigator.platform){
myBrowser=new myBrowser((parseInt(navigator.appVersion.charAt(0)) >= 4),(navigator.platform.indexOf('Win32') != -1),(navigator.appName.indexOf('Microsoft') != -1));
}
function myBrowser(version,platform,type){
this.version=version;
this.platform=platform;
this.type=type;
}
var window_size;

function openWindow(url){
	if(!url) url='main.html';
	thisWinWidth=screen.width;
	thisWinHeight=screen.availHeight;
	//
	if(document.kabuto.wsize[0].checked){
		if(myBrowser.version){
			if(myBrowser.type){ //IEの場合
				if(myBrowser.platform){ //WIN IEの場合
					newwin=window.open(url,"main_win","fullscreen=1,scrollbars=0,resizable=no,titlebar=no,location=no,menubar=no,status=no");
				} else { //Mac IEの場合
					newwin=window.open(url,"main_win","scrollbars=0,resizable=no,location=no,titlebar=no,menubar=no,status=no,left=0,top=0");
					newwin.resizeTo(thisWinWidth,thisWinHeight);
				}
			} else { //Netscape場合
				var thisWinWidth1=screen.availWidth;
				var thisWinHeight1=screen.availHeight-30;
				window_size = "width=" + thisWinWidth1 + ",height=" + thisWinHeight1 +",innerWidth=" + thisWinWidth1 + ",innerHeight=" + thisWinHeight1;
				newwin=window.open(url,"main_win","scrollbars=0,resizable=no,location=no,titlebar=no,menubar=no,status=no," + window_size);
				newwin.moveTo(0,0);
			}
		}
	} else if(document.kabuto.wsize[1].checked){
		xposi=(thisWinWidth-1000)/2;
		yposi=(thisWinHeight-700)/2;
		newwin=window.open(url,"main_win","scrollbars=0,resizable=no,location=no,titlebar=no,menubar=no,status=no,width=1000,height=700");
		newwin.moveTo(xposi,yposi-20);
	}
}