// JavaScript Document
var action = 'https://asp.hotel-story.ne.jp/ver3d/planlist.asp';
//parameters
var hcod1 = '40020';
var hcod2 = '001';
var mode = 'seek';
var hidmode = 'select';
var hidselectroomtype = ''; //00010
var hidselectmaxprice = '9999999';
var hchannel = 'ISW';
var kasho = 'null';

function sendToVacantSE(type){
	var paxSelect = document.getElementById('Pax'+type);
	var pax = paxSelect.options[paxSelect.options.selectedIndex].value;
	var param = 'hcod1='+hcod1+'&hcod2='+hcod2+'&mode='+mode+'&hidmode='+hidmode+'&hidselectroomtype='+type+'&hidselectmaxprice='+hidselectmaxprice+'&hidSELECTadult='+pax+'&hchannel='+hchannel+'&kasho='+kasho;
	var option = '';
	option += 'width=860, height=1000, resizable=yes, menubar=yes, toolbar=yes, scrollbars=yes';
	window.open(action+'?'+param,'vacant',option);
}

function win01(){window.open('http://www.sunroute.jp/HotelInfo/hsap/hsap_topics.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=481,height=752');};
function win02(){window.open('guestroom_single.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=560,height=512');};
function win03(){window.open('guestroom_double.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=560,height=512');};
function win04(){window.open('guestroom_twin.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=560,height=512');};
function win05(){window.open('guestroom_triple.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=560,height=512');};
function win06(){window.open('guestroom_dx.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=560,height=512');};
function win07(){window.open('http://www.sunroute.jp/HotelInfo/hsap/hsap_topics.html','1','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=481,height=752');};

function sendToVacant(realRoom,roomTypeM,noSmoking,Day,num){
	document.RoomList.RealRoom.value=realRoom;
	document.RoomList.RealRoomNm.value=roomTypeM;
	//   document.RoomList.DRoomCode.value=realRoom;

	if(realRoom.indexOf("S") != -1){
		document.RoomList.RoomType.value="S";
	}else if(realRoom.indexOf("T") != -1){
		document.RoomList.RoomType.value="T";
	}else if(realRoom.indexOf("D") != -1){
		document.RoomList.RoomType.value="D";
	}else if(realRoom.indexOf("O") != -1){
		document.RoomList.RoomType.value="O";
	}
	if(noSmoking.indexOf("Y") != -1){ 
		document.RoomList.DSmoke.value="N";
		document.RoomList.Smoking.value="N";
	}else{ 
		document.RoomList.DSmoke.value="S";
		document.RoomList.Smoking.value="S";
	}

	document.RoomList.Day.value=Day;
	document.RoomList.pax.value=document.all["Pax" + num].options[document.all["Pax"+num].selectedIndex].value;
	//    document.RoomList.HotelName.value = HotelName;
	document.RoomList.appId.value="VacantRoomInqSV_2";
	document.RoomList.nextDispId.value="VacantRoomInqJS_2.jsp";
	document.RoomList.Id.value="1";
	document.RoomList.submit();
}
function replace(sel) {
	form = sel.form;
	form.pax.value = sel.value;
}

