
var win_ary = new Array();

function openBrWindow(theURL,winName,features)
{
  var nwin = window.open(theURL,winName,features);
	win_ary.push(nwin);
}




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='top.html';

if(myBrowser.version){

if(myBrowser.type){ //IEの場合

if(myBrowser.platform){ //WIN IEの場合

newwin=window.open(url,"main_win","fullscreen=1,location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");

}

else{ //Mac IEの場合

var thisWinWidth=screen.width-12;

var thisWinHeight=screen.availHeight;

newwin=window.open(url,"main_win","scrollbars=0,location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0");

newwin.resizeTo(thisWinWidth,thisWinHeight);

}

}else{ //Netscape場合

var thisWinWidth=screen.availWidth-12;

var thisWinHeight=screen.availHeight-30;

window_size = "width=" + thisWinWidth + ",height=" + thisWinHeight +",innerWidth=" + thisWinWidth + ",innerHeight=" + thisWinHeight;

newwin=window.open(url,"main_win","location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no," + window_size);

newwin.moveTo(0,0);

}

}

}

//==========================================================//
function retrunScale(scale){

//if(!url) url='top.html';

if(myBrowser.version){

if(myBrowser.type){ //IEの場合

if(myBrowser.platform){ //WIN IEの場合

var thisWinWidth=screen.width;

var thisWinHeight=screen.availHeight;

//newwin=window.open(url,"main_win","fullscreen=1,location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no");

}

else{ //Mac IEの場合

var thisWinWidth=screen.width-12;

var thisWinHeight=screen.availHeight;

//newwin=window.open(url,"main_win","scrollbars=0,location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no,left=0,top=0");

//newwin.resizeTo(thisWinWidth,thisWinHeight);

}

}else{ //Netscape場合

var thisWinWidth=screen.availWidth-12;

var thisWinHeight=screen.availHeight-30;

//window_size = "width=" + thisWinWidth + ",height=" + thisWinHeight +",innerWidth=" + thisWinWidth + ",innerHeight=" + thisWinHeight;

//newwin=window.open(url,"main_win","location=no,status=no,toolbar=no,menubar=no,scrollbars=no,resizable=no," + window_size);

//newwin.moveTo(0,0);

}

}

if(scale == 'width_scale') {
	//document.write(thisWinWidth);
	return thisWinWidth;
} else if(scale == 'height_scale') {
	//document.write(thisWinHeight);
	return thisWinHeight;
}


}
//==========================================================//
// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}