
function MM_openBrWindow(theURL,winName,features) { //v2.0
  newWin = window.open(theURL,winName,features);
newWin.focus()
}

function open_data() { 
newWin = window.open("http://www.homestyle.taisei.co.jp/system/material/material_form.asp","data","toolbar=no,lacation=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,width=300,height=480"); 
newWin.focus()
}

function open_data2() { 
newWin = window.open("http://www.homestyle.taisei.co.jp/system/template/enquete26.asp?fid=26","data","toolbar=no,lacation=no,directories=no,status=no,menubar=no,scrollbars=1,resizable=1,width=700,height=620"); 
newWin.focus()
}






//openwin1
function openwin1(file,name,h,w) { //位置指定_有り クイズで使用　
newWin1= window.open(file,name,"height="+h+",width="+w+",screenX=10,screenY=10,left=10,top=10,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
document.MM_returnValue = false;
newWin1.focus()
}


//openwin2
function openwin2(file,name,h,w) {//位置指定_なし
newWin2= window.open(file,name,"height="+h+",width="+w+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
document.MM_returnValue = false;
newWin2.focus()
}


//openwin3

function openwin3(file,name,h,w) {//位置指定_センター
	
	sw=screen.availWidth/2-w/2;
	sh=screen.availHeight/2-h/2
 	//h=screen.height
		
	mac = (navigator.appVersion.indexOf("Mac") != -1) ?true:false;
	ie = (navigator.appName.charAt(0) == "M") ?true:false;
	nn = (navigator.appName.charAt(0) == "N") ?true:false;
	
	if (mac){
		if (ie){
		// mac IE
		w+=-16;
		h-=0;
		}
		
		else{
		// mac NN etc.
		w+=1;
		h-=0;
		}
	}
	else{
		if (ie){
		// win IE
		w+=17;
		h-=0;
		}
		else{
		// win NN etc.
		w+=16;
		h-=0;
		}
	}



newWin3= window.open(file,name,"height="+h+",width="+w+",top="+sh+",screenY="+sh+",left="+sw+",screenX="+sw+",toolbar=0,location=1,directories=0,status=1,menubar=1,scrollbars=1,resizable=1");
document.MM_returnValue = false;
newWin3.focus()
}





//---------------------------------------------------------------------------------------------
//openwin4
//
//位置指定_有り スクロール有り時のos,ブラウザ別windowサイズ補正　位置中央
//
//---------------------------------------------------------------------------------------------

function openwin4(file,name,h,w) {//位置指定_センター
	
	sw=screen.availWidth/2-w/2;
	//sh=screen.availHeight/2-h/2;
 	//h=screen.height
		
	mac = (navigator.appVersion.indexOf("Mac") != -1) ?true:false;
	ie = (navigator.appName.charAt(0) == "M") ?true:false;
	nn = (navigator.appName.charAt(0) == "N") ?true:false;
	
	if (mac){
		if (ie){
		// mac IE
		w+=1;
		h-=130;
		}
		
		else{
		// mac NN etc.
		w+=1;
		h-=130;
		}
	}
	else{
		if (ie){
		// win IE
		w+=17;
		h-=130;
		}
		else{
		// win NN etc.
		w+=16;
		h-=130;
		}
	}



newWin4= window.open(file,name,"height="+h+",width="+w+",top=50,screenY=50,left="+sw+",screenX="+sw+",toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1");
document.MM_returnValue = false;
newWin4.focus()
}


//openwin5
function openwin5(file,name,h,w) {//位置指定_センター
	sw=screen.availWidth/2-w/2;
	sh=screen.availHeight/2-h/2;
newWin5= window.open(file,name,"height="+h+",width="+w+",top="+sh+",screenY="+sh+",left="+sw+",screenX="+sw+",toolbar=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
document.MM_returnValue = false;
newWin5.focus()
}


//openwin6
function openwin6(file,name,h,w) {//位置指定_センター
	sw=screen.availWidth/2-w/2;
	sh=screen.availHeight/2-h/2;
newWin6= window.open(file,name,"height="+h+",width="+w+",top="+sh+",screenY="+sh+",left="+sw+",screenX="+sw+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0");
document.MM_returnValue = false;
newWin6.focus()
}

//openwin7
function openwin7(file,name,h,w) {//位置指定_センター
	sw=screen.availWidth/2-w/2;
	sh=screen.availHeight/2-h/2;
newWin7= window.open(file,name,"height="+h+",width="+w+",top="+sh+",screenY="+sh+",left="+sw+",screenX="+sw+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");
document.MM_returnValue = false;
newWin7.focus()
}



function openwin8(file,name,h,w) {//位置指定_センター
	
	sw=screen.availWidth/2-w/2;
	//sh=screen.availHeight/2-h/2;
 	//h=screen.height
		
	mac = (navigator.appVersion.indexOf("Mac") != -1) ?true:false;
	ie = (navigator.appName.charAt(0) == "M") ?true:false;
	nn = (navigator.appName.charAt(0) == "N") ?true:false;
	
	if (mac){
		if (ie){
		// mac IE
		w+=1;
		h-=0;
		}
		
		else{
		// mac NN etc.
		w+=20;
		h-=0;
		}
	}
	else{
		if (ie){
		// win IE
		w+=17;
		h-=0;
		}
		else{
		// win NN etc.
		w+=16;
		h-=0;
		}
	}



newWin8= window.open(file,name,"height="+h+",width="+w+",top=50,screenY=50,left="+sw+",screenX="+sw+",toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1");
document.MM_returnValue = false;
newWin8.focus()
}


//プリントボタンなどを表示する必要があるとき
function openwin9(file,name,h,w) {//位置指定_センター
	
	sw=screen.availWidth/2-w/2;
	//sh=screen.availHeight/2-h/2;
 	//h=screen.height
		
	mac = (navigator.appVersion.indexOf("Mac") != -1) ?true:false;
	ie = (navigator.appName.charAt(0) == "M") ?true:false;
	nn = (navigator.appName.charAt(0) == "N") ?true:false;
	
	if (mac){
		if (ie){
		// mac IE
		w+=1;
		h-=0;
		}
		
		else{
		// mac NN etc.
		w+=1;
		h-=0;
		}
	}
	else{
		if (ie){
		// win IE
		w+=17;
		h-=0;
		}
		else{
		// win NN etc.
		w+=16;
		h-=0;
		}
	}



newWin9= window.open(file,name,"height="+h+",width="+w+",top=50,screenY=50,left="+sw+",screenX="+sw+",toolbar=1,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1");
document.MM_returnValue = false;
newWin9.focus()
}




// +--- 記述 -----------------------------------------------------------+
//<head内>
//<SCRIPT type="text/javascript" src="このファイル名"></SCRIPT>

//<body>内
//<A href="../../js/file%96%BC" onclick="openwinN(this.href,'name',h,w);return document.MM_returnValue">link</A> 
//　openwinN　ここのNを　1.2.3...のどれかにするだけできりかわります。
//
//		file ファイル名
//		name ウィンドウ名
//		w 幅 
//		h  高
//		openwinN（N=1,2,3）






//+--- 補足 -----------------------------------------------------------+
//openwin1　
//		screenX=x,screenY=y  nn用
//		left=x,top=y　ie用
//		モニターの左上からの座標(x.y)

