function vaInit(){
	ListGen.getNights(createNights);
	ListGen.getKinds(createKinds);
	ListGen.getKindRooms(createKindRooms);
}
function createNights(data){
    DWRUtil.removeAllOptions("va.nights");
    DWRUtil.addOptions("va.nights", data,"value","label");
}
function createKinds(data){
    DWRUtil.removeAllOptions("va.kinds");
    DWRUtil.addOptions("va.kinds", data,"value","label");
}
function createKindRooms(data){
    DWRUtil.removeAllOptions("va.kindrooms");
    DWRUtil.addOptions("va.kindrooms", data,"value","label");
}

function openCalendarWindow(_form,_name1){
  var url = "/hotelinfo/bsrch/calendarHelp.do?opForm=" + _form + "&opName=" + _name1;
  subWindow = window.open(url,
	   "cal",
	   "width=600,height=300,resizable=yes,scrollbars=yes,directories=no,menubar=no,location=no");
  subWindow.focus();
}

function doVaSendCheck(){
 document.frmVacantTop.target="_self";
 document.frmVacantTop.btnConfirm.value="";
 
 if(document.frmVacantTop.cityCode.value==''){
 	alert("都市を選択してください");
 	return false;
 }
 if(document.frmVacantTop.vgri_checkin.value==''){
 	alert("チェックイン日を指定してください");
 	return false;
 }
 if(document.frmVacantTop.kind1[0].selected==true){
 	alert("部屋のタイプを選択してください");
 	return false;
 }
 document.frmVacantTop.target="_top";
 document.frmVacantTop.btnConfirm.value="true";
 return true;
}


