//ウィンドウ表示(マップ)
function openWinMap(url) {
	if ((navigator.appVersion.indexOf("Mac") != -1)){	//Macの場合、二行でも一行分の高さのボタンができ、かつheightなどで高さの調節ができないため、二行目を削除
	  	window.open(url,"map","width=550,height=650,scrollbars=yes,resizable=no") 
  	}else{
		window.open(url,"map","width=550,height=650,scrollbars=no,resizable=no") 
	}

}
//ウィンドウ表示(フォーム)
function openWinForm(url) {
	window.open(url,"form","width=790,scrollbars=yes,resizable=yes") 
}
//ウィンドウ表示(教育訓練給付説明)
function openWinComment(url) {
	window.open(url,"comment","width=600,height=570,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 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";		//表示にする

		}
}

function dispini(){

	strURL=location.href;//URLの取得
	num=strURL.split("#");//URLの分解
	num=num[1];

	if(typeof(num) != "undefined"){
		disp(num);

		if(num.lastIndexOf(":") != -1){//":"で区切りがあった場合
			num=num.split(":");//見出し1の取得
			num=num[0];

			if(typeof(num) != "undefined"){
				disp(num);
			}
		}
	}
}
