function detailWin(url, w, h) {
	NewWindow = window.open(url,"_blank","width="+ w +",height="+ h +",left=0,top=0,scrollbars=yes,menubar=yes,status=yes,resizable=yes");
	NewWindow.focus()
}
function detailOpt(url) {
	NewWindow = window.open(url,"_blank","width=800,height=500,left=0,top=0,scrollbars=yes,menubar=yes,toolbar=yes,status=yes,resizable=yes");
	NewWindow.focus()
}
function subWin1(x,n,w,h){
	window.open(x,n,"scrollbars=yes,width="+w+",height="+h+",scrollbars=yes");
}

// スワップイメージ
function HotelImage(id, image) {
	obj = document.getElementById("hotelpic_" + id);
	obj.src = image;
}
function SwapImage(image) {
	obj = document.getElementById("hotelpic");
	obj.src = image;
}
function SwapImage2(image) {
	obj = document.getElementById("hotelpic2");
	obj.src = image;
}
function SwapImage3(image) {
	obj = document.getElementById("hotelpic3");
	obj.src = image;
}
function SwapImage4(image) {
	obj = document.getElementById("hotelpic4");
	obj.src = image;
}
function SwapImage5(image) {
	obj = document.getElementById("hotelpic5");
	obj.src = image;
}
function SwapImage6(image) {
	obj = document.getElementById("hotelpic6");
	obj.src = image;
}
function SwapImage7(image) {
	obj = document.getElementById("hotelpic7");
	obj.src = image;
}
function SwapImage8(image) {
	obj = document.getElementById("hotelpic8");
	obj.src = image;
}
function SwapImage9(image) {
	obj = document.getElementById("hotelpic9");
	obj.src = image;
}


//インラインフレームの高さ取得
//<iframe src="URL" onload="get_height(this.id, this.name);" id="ID" name="NAME" width="w" height="h"></iframe>
function get_height(ID, NAME) {
	if (document.height) {
		document.getElementById(ID).style.height = parent.frames[NAME].document.height + 20 +"px";
	} else {
		document.getElementById(ID).style.height = parent.frames[NAME].document.body.scrollHeight + 20 +"px";
	}
}



function boxShow(id){
      document.getElementById(id).style.visibility="visible";
}
function boxhide(id){
      document.getElementById(id).style.visibility="hidden";
}

