//ウィンドウ表示(マップ)
function openWinMap(url) {
	if ((navigator.appVersion.indexOf("Mac") != -1)){	//Macの場合、二行でも一行分の高さのボタンができ、かつheightなどで高さの調節ができないため、二行目を削除
	  	window.open(url,"map","width=550,height=950,scrollbars=yes,resizable=yes") 
  	}else{
		window.open(url,"map","width=550,height=950,scrollbars=yes,resizable=yes") 
	}

}

//ウィンドウ表示(フォーム)
function openWinForm(url) {
	window.open(url,"form","width=700,height=770,scrollbars=yes,resizable=yes") 
}


function openWinInfo(url) {
	if ((navigator.appVersion.indexOf("Mac") != -1)){	//Macの場合、二行でも一行分の高さのボタンができ、かつheightなどで高さの調節ができないため、二行目を削除
	  	window.open(url,"map","width=550,height=300,scrollbars=yes,resizable=no") 
  	}else{
		window.open(url,"map","width=550,height=300,scrollbars=no,resizable=no") 
	}

}




//ウィンドウ表示
function openWin1(url) {
	if ((navigator.appVersion.indexOf("Mac") != -1)){	//Macの場合、二行でも一行分の高さのボタンができ、かつheightなどで高さの調節ができないため、二行目を削除
	  	window.open(url,"map","width=650,height=950,scrollbars=yes,resizable=no") 
  	}else{
		window.open(url,"map","width=650,height=950,scrollbars=no,resizable=no") 
	}

}





function changeUrl(url) {
	location.href = url;
}

//埋め込み型CSSの出力
function writeCss() {
	App = navigator.appName.charAt(0);
    if (App == "M") {	//IE
  		document.write("<STYLE TYPE='text/css'>"); 
  		document.write("A.button{text-decoration:none;color:#FFFFCC;background-color : #003366;font-size : 10pt;text-align : center;vertical-align : middile;border: 2px inset #ffffff;padding :5 0 5 0;margin :5 0 5 0 ;width : 90px;height : 30px;z-index : 1;cursor:hand;"); 
  		document.write("A.button:visited{color:#FFFFCC;}"); 
  		document.write("A.button:link{color:#FFFFCC;}"); 
  		document.write("A.button:hover{background-color:#999999;color : #F7F7F7;text-decoration:none;border: 2px outset #ffffff;}"); 
  		document.write("</STYLE>"); 

    } else {	//NN
  		document.write("<STYLE TYPE='text/css'>"); 
  		document.write("DIV.button{text-decoration:none;color:#FFFFCC;background-color : #003366;font-size : 10pt;text-align : center;vertical-align : middile;border: 2px inset #ffffff;padding :5 0 5 0;margin :5 0 5 0 ;width : 90px;height : 30px;z-index : 1;cursor:hand;"); 
  		document.write("DIV.button:visited{color:#FFFFCC;}"); 
  		document.write("DIV.button:link{color:#FFFFCC;}"); 
  		document.write("DIV.button:hover{background-color:#999999;color : #F7F7F7;text-decoration:none;border: 2px outset #ffffff;}"); 
  		document.write("</STYLE>"); 
    }

}



function DspPrintButton(){
	if ((navigator.appVersion.indexOf("Mac") == -1)){	//macでは印刷ボタンが作成できないため
		document.write("<input type='button' value='印刷' onClick='StartPrint()'>　　");
	}
}

function StartPrint(){
	window.print();
}

//エクスプローラ
function disp(id){
		if(document.all){	//IE4以降
			a = document.all(id);
			div = document.all(id+"x");

		}else if(document.getElementById){	//N6以降
			a = document.getElementById(id);
			div = document.getElementById(id+"x");

		}

		if(div.style.display == "block"){

			a.innerHTML="＋"
			div.style.display = "none";		//未表示にする


		}else if(div.style.display == "none"){

			a.innerHTML="−"
			div.style.display = "block";		//表示にする

		}
}
