function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function winclose() {
window.close();
}

function OpenWin_b(a){
  window.open(a,"_blank","width=800,height=635,left="+(screen.width-850)/2+",top="+(screen.height-650)/2+",scrollbars=1,resizable=1,menubar=1,toolbar=1");
}

function OpenWin_m(a){
  window.open(a,"_blank","width=800,height=600,left="+(screen.width-800)/2+",top="+(screen.height-600)/2+",scrollbars=1,resizable=1,menubar=1,toolbar=1");
}

function OpenWin_s(a){
  window.open(a,"_blank","width=750,height=550,left="+(screen.width-750)/2+",top="+(screen.height-550)/2+",scrollbars=1,resizable=1,menubar=1,toolbar=1");
}

function OpenWinHandan(){
	if(document.layers){
	window.open("09_05.html","_blank","width=800,height=635,left="+(screen.width-850)/2+",top="+(screen.height-650)/2+",scrollbars=1,resizable=1,menubar=1,toolbar=1");
	}
	else{
	window.open("09_04.html","_blank","width=800,height=635,left="+(screen.width-850)/2+",top="+(screen.height-650)/2+",scrollbars=1,resizable=1,menubar=1,toolbar=1");
	}
}

function handan(){
	window.opener.location.href = "m.html";
	window.close();
}

function winOpen(FILE,TITLE,ADDRESS,STATION) { 
　　var WINWIDTH; //画像の幅
　　var WINHEIGHT; //画像の高さ
　　var subWin;
　　subWin=window.open("","SUB_WIN_k010",
　　　　"width=630,height=630,top=100,left=50,scrollbars=1,resizable=1,menubar=1,toolbar=1");
　　　　　　//ウィンドウを開く

　　subWin.document.open(); //ドキュメントストリームを開く

　　subWin.document.write("<html><head>"); //以下にドキュメントを書き出す
　　subWin.document.write("<title>協振技建　/　" + TITLE + "</title>");
　　subWin.document.write("<style type='text/css'>");
    subWin.document.write("<!--");
    subWin.document.write("div.pagetop {");
    subWin.document.write("font-size: 14px;");
    subWin.document.write("text-align: right;");
    subWin.document.write("margin: 10px 0px 20px 0px; ");
    subWin.document.write("padding: 0px 20px 0px 0px;");
    subWin.document.write("width: 520px;");
    subWin.document.write("background-image: url(img/close_image.gif);");
    subWin.document.write("background-repeat: repeat-x ;");
    subWin.document.write("height: 27px;");
    subWin.document.write("}");
    subWin.document.write(".main_content_normal6 {"); 
    subWin.document.write("font-size: 12px;"); 
    subWin.document.write("line-height:13px;"); 
    subWin.document.write("width: 410px;"); 
    subWin.document.write("padding: 10px 0px 10px 50px;"); 
    subWin.document.write("margin: 0px;"); 
    subWin.document.write("text-align: center;");
    subWin.document.write("background-image: url(img/train.gif);"); 
    subWin.document.write("background-repeat: no-repeat;"); 
    subWin.document.write("}"); 
    subWin.document.write("h2 {"); 
    subWin.document.write("font-size: 15px;"); 
    subWin.document.write("font-weight: normal;"); 
    subWin.document.write("background-image: url(img/h3_image.gif);"); 
    subWin.document.write("background-repeat: repeat-x ;"); 
    subWin.document.write("height: 27px;"); 
    subWin.document.write("width: 520px;"); 
    subWin.document.write("padding: 5px 2px 2px 10px;"); 
    subWin.document.write("margin: 0px;"); 
    subWin.document.write("}"); 
    subWin.document.write("-->");
    subWin.document.write("</style></head>"); 
　　subWin.document.write("<body>");
　　subWin.document.write("<div align='center'>");
　　subWin.document.write("<img border='0' src='img/logo2.gif' alt='株式会社 協振技建'>");
　　subWin.document.write("<br>");
　　subWin.document.write("<h2>" + TITLE + "</h2>");
　　subWin.document.write("<p align='center'><img src='" + FILE + "' name='PIC' border='0'></p>");
　　subWin.document.write("<div align='center'>" + ADDRESS + "</div>");
　　subWin.document.write("<div class='main_content_normal6'>" + STATION + "</div>");
　　subWin.document.write("<div class='pagetop'><a href='JavaScript:window.close()'>閉じる</a></div>");
　　subWin.document.write("</div>");
　　subWin.document.write("</body></html>");
　　subWin.document.close(); //ドキュメントストリームを閉じる

}

//function OpenWinPrint(){ 
//  var path=window.location.href;
//	if (path.indexOf("#") == -1) {
//	} else {
//		var path=path.substring(0,path.indexOf("#"));
//	}
//  var file=path.substring(path.lastIndexOf('/',path.length)+1,path.length); 
//  var file=file.substring(0,(file.length-5));
//  var oWindow=window.open("pdf/"+file+".pdf","_blank","width=750,height=420,left="+(screen.width-800)/2+",top="+(screen.height-600)/2+",scrollbars=1,resizable=1,menubar=1,toolbar=1,dependent=yes");
//}
