// ifameの高さ自動調整用JavaScript
function LoadFrame(frid) {
	var IFR;  // iframe

	if(navigator.userAgent.indexOf("MSIE") > -1){ // InternetExporer
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].document.body.scrollHeight;
	}
	else if(navigator.userAgent.indexOf("Firefox") > -1){ // Firefox
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.height:
			document.frames[frid].document.height;
	}
	else if(navigator.userAgent.indexOf("Opera") > -1){ // Opera
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].body.scrollHeight;
	}
	else if(navigator.userAgent.indexOf("Safari") > -1){ // Safari
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.body.scrollHeight:
			document.frames[frid].document.body.scrollHeight;
	}
	else { //Another
		IFR = document.getElementById(frid);
		IFR.style.height = (IFR.contentWindow)?
			IFR.contentWindow.document.height:
			document.frames[frid].document.height;
	}
    return false;
}

// 別ウィンドウを開く関数
function OpenMapWindow(){
    window.open("map.html","MapWindow","toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizebox=no,width=450,height=560");
}
