var room_count ;
function preload(room_val,dynimg){
room_count = room_val;
if(document.form1.sel_area.value=='--'){alert('Please Select a Area');return;};
selDay = new Date(document.form1.sel_check_in_year.options[document.form1.sel_check_in_year.selectedIndex].value,(document.form1.sel_check_in_month.options[document.form1.sel_check_in_month.selectedIndex].value-1),(document.form1.sel_check_in_date.options[document.form1.sel_check_in_date.selectedIndex].value));
depDay = new Date(document.form1.sel_check_out_year.options[document.form1.sel_check_out_year.selectedIndex].value,(document.form1.sel_check_out_month.options[document.form1.sel_check_out_month.selectedIndex].value-1),(document.form1.sel_check_out_date.options[document.form1.sel_check_out_date.selectedIndex].value));
var duration=((depDay-selDay)/86400000)-1;
if(Number(duration)<0){alert('Check out date cant be less than or equal to Check in date...!');return;
}else if(Number(duration)>=31){alert('Can not book more than 31 days');return;
}else{
document.form1.sel_no_of_nights.selectedIndex=duration;
}
function chevail(){
if(document.form1.sel_area.value!='M001'){
getReservationnew('GBP',room_count,'S_SEO');
display_wait();
}else{
checkShortlistHotelStatus();
}
}
function mess(){
alert("Arrival Date should not be less than today's date");
return;
}
var myDate1=new Date()
var myDate2=new Date()
var mon1=((document.form1.sel_check_in_month.value)-1);
var mon2=(Number('03')-1);
myDate1.setFullYear(Number(document.form1.sel_check_in_year.value),mon1,Number(document.form1.sel_check_in_date.value))
myDate2.setFullYear(Number('2010'),mon2,Number('17'))
if (myDate2>myDate1){
mess();
}else{
chevail();
}
}
function checkShortlistHotelStatus(){
var rnUser=dojo_io_cookie_getCookie('rnUser');
var userPicks = Seam.Component.getInstance('roomsnet_r5_admin_businesslogic_DRAMP_CustomerLogicAction');
userPicks.hasShortlist(rnUser,'FLR',shortlistAvailabilityCallback);
}
function shortlistAvailabilityCallback(results){
if(results == 'true'){
display_wait();
getReservationnew('GBP',room_count,'S_SEO&shortlisted_search=true');
}else{
alert(cookieVal + ' You have not picked hotels for your shortlist yet');
return true;
}
}
function display_wait(){
document.body.style.backgroundColor="#FFFFFF";
document.body.scroll = "no";
var height1 = document.documentElement.scrollTop+30;
var ranNum= Math.floor(Math.random()*5);
preload_banner=
""+
"