// michiyko js_libraly 


//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=1,resizable=1");
document.MM_returnValue = false;
newWin1.focus()
}

//openwin11
function openwin11(file,name,h,w) { //位置指定_有り リサイズ無し
newWin11= 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+=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;
		}
	}



newWin3= window.open(file,name,"height="+h+",width="+w+",top="+sh+",screenY="+sh+",left="+sw+",screenX="+sw+",toolbar=0,location=0,directories=0,status=1,menubar=0,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=5,screenY=5,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()
}









//--------お問い合わせ用---window size 指定------------------------
//openwin4 使用
function winsize_contact(){
h=screen.height*0.8
w=600
}

//--------おインターネットバンキング---window size 指定------------------------
//openwin4 使用
function winsize_bank(){
h=screen.height*0.8
w=600
}

//-----------CD ATM一覧　window size 指定------------------------
//openwin4 使用
function winsize_cd_atm(){
h=screen.height*0.8
w=600

}


// +--- 記述 -----------------------------------------------------------+
//<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)
