var nav=navigator.appName; var myindate = new Date(); var myoutdate = new Date(); myoutdate = new Date(myoutdate.setDate(myoutdate.getDate()+1)); var inmm = myindate.getMonth(); var indd = myindate.getDate(); var inyy = (nav=="Netscape")? myindate.getYear()+1900:myindate.getYear(); var outmm = myoutdate.getMonth(); var outdd = myoutdate.getDate(); var outyy = (nav=="Netscape")? myoutdate.getYear()+1900:myoutdate.getYear(); var dayimagepath="images"; function set_default_date(){ document.frm1.cmbCheckInYear.options.length=0; for (a=0; a<5; a++){ with (document.frm1){ if (a!=4){ ssy1=inyy+a; ssyst=ssy1.toString(); ssy=ssyst.substring(ssyst.length-2,ssyst.length); cmbCheckInYear.options[a]= new Option(ssy,inyy+a); } } } if (inyy<2004){ return; } with (document.frm1){ cmbNoOfAdults.value=2; cmbCheckInMonth.selectedIndex = inmm; cmbCheckInYear.selectedIndex = inyy-inyy; cmbCheckOutMonth.value = outmm; cmbCheckOutYear.value = outyy; cmbNoOfNights.selectedIndex = 0; } setMonthDays("In"); document.frm1.cmbCheckInDate.selectedIndex = indd-1; document.frm1.cmbCheckOutDate.value = outdd; } function setCheckOut(){ tmpInDate = new Date(document.frm1.cmbCheckInYear.options[document.frm1.cmbCheckInYear.selectedIndex].value,document.frm1.cmbCheckInMonth.options[document.frm1.cmbCheckInMonth.selectedIndex].value,document.frm1.cmbCheckInDate.options[document.frm1.cmbCheckInDate.selectedIndex].value,0,0,0,0); noDays = Number(document.frm1.cmbNoOfNights.options[document.frm1.cmbNoOfNights.selectedIndex].value); tmpOutDate = new Date(tmpInDate.setDate(tmpInDate.getDate()+noDays)); document.frm1.cmbCheckOutMonth.value = tmpOutDate.getMonth(); document.frm1.cmbCheckOutYear.value = tmpOutDate.getFullYear(); document.frm1.cmbCheckOutDate.value = tmpOutDate.getDate(); } function setNights(){ tmpInDate = new Date(document.frm1.cmbCheckInYear.options[document.frm1.cmbCheckInYear.selectedIndex].value,document.frm1.cmbCheckInMonth.options[document.frm1.cmbCheckInMonth.selectedIndex].value,document.frm1.cmbCheckInDate.options[document.frm1.cmbCheckInDate.selectedIndex].value,0,0,0,0); tmpOutDate = new Date(document.frm1.cmbCheckOutYear.value,0,0,0,0); dateDifference = get_deference(tmpInDate,tmpOutDate); if (dateDifference<1 || dateDifference>15){ return; } if (dateDifference>0){ document.frm1.cmbNoOfNights.selectedIndex = dateDifference-1; } } function maxdate(mm,yy){ if (mm==1){ if(yy%4==0){return 29;}else{return 28;} }else if (mm==0 || mm==2 || mm==4 || mm==6 || mm==7 || mm==9 || mm==11){ return 31; }else{ return 30; } } function setMonthDays(name){ tmpmm = document.frm1.elements["cmbCheck"+name+"Month"].options[document.frm1.elements["cmbCheck"+name+"Month"].selectedIndex].value; tmpyy = document.frm1.elements["cmbCheck"+name+"Year"].options[document.frm1.elements["cmbCheck"+name+"Year"].selectedIndex].value; maxdays = maxdate(tmpmm,tmpyy); selectedInd=document.frm1.elements["cmbCheck"+name+"Date"].selectedIndex; document.frm1.elements["cmbCheck"+name+"Date"].options.length=28; toAdd=maxdays-28; for (a=0; a86400000){ alert("Check in date can not be less than the system date"); set_default_date(); return; } if (dateDifference>15 || dateDifference<1){ alert("Number of night(s) can not be grater than "+document.frm1.cmbNoOfNights.options.length+" or less than 1.\r\nPlease select again ..."); set_default_date(); return; }else{ document.frm1.cmbNoOfNights.selectedIndex=dateDifference-1; } ad_PR=Number(document.frm1.NoADTs.options[document.frm1.NoADTs.selectedIndex].value); noOfRooms=Number(document.frm1.cmbNoOfRooms.options[document.frm1.cmbNoOfRooms.selectedIndex].value); document.frm1.cmbNoOfAdults.value=ad_PR*noOfRooms; noOfAdults=ad_PR*noOfRooms; if(noOfRooms>noOfAdults){ alert("Number of adults is greater then the maximum no of adults for the rooms selected!"); return; } if (affcode!=''){ document.frm1.afftCode.value=""+affcode+""; } document.frm1.selCity.value="%"; op_win(); docdom=""+document.domain+""; document.frm1.AffiliateMainPage.value = ""+document.location+""; document.frm1.action = "http://web1.secure-reservation.com/servlets/ACCentral.ResevationSearch"; document.frm1.submit(); } function get_deference(ind,oud){ ind_d = ind.getDate(); ind_m = ind.getMonth(); ind_y = ind.getYear(); oud_d = oud.getDate(); oud_m = oud.getMonth(); oud_y = oud.getYear(); ret_val=0; if (ind_y==oud_y){ if (ind_m==oud_m){ ret_val=oud_d-ind_d; }else{ ret_val=(maxdate(ind_m,ind_y)-ind_d)+oud_d } }else{ if (ind_m==11 && oud_m==0){ ret_val=(maxdate(ind_m,ind_y)-ind_d)+oud_d } } return ret_val; } var sWith=screen.width; var toadd= 0; if (sWith>800){ toadd = (sWith-800)/2; } function op_win(){ if (navigator.userAgent.indexOf("Netscape/7")>-1){ document.getElementById("progress").style.left=parseInt(document.images["searachIMG"].x)-75; document.getElementById("progress").style.top=parseInt(document.images["searachIMG"].y)+15; document.getElementById("progress").style.visibility="visible"; }else if(navigator.userAgent.indexOf("MSIE")>-1){ posObj=document.images["searachIMG"]; lpos=0; tpos=0; while(posObj.tagName!='BODY'){ lpos+=posObj.offsetLeft; tpos+=posObj.offsetTop; posObj=posObj.offsetParent; } document.all["progress"].style.left=lpos-75; document.all["progress"].style.top=tpos+15; document.all["progress"].style.visibility="visible"; } } var brwag=navigator.userAgent; function getTag(val,name,l,t,w,h){if (brwag.indexOf("/4.7")>-1){ tag1=""; tag2="";}else{ tag1="
"; tag2="
";}return eval("tag"+val+"");} prloadtxt=""+ "
"+ "
"; if (brwag.indexOf("/4.7")>-1){prloadtxt=prloadtxt+""; }else if (brwag.indexOf("Netscape/7")>-1){prloadtxt=prloadtxt+""; }else{prloadtxt=prloadtxt+"";} prloadtxt=prloadtxt+""+ ""+ "
Please Wait One Moment ...Please Wait One Moment ...Please Wait One Moment ...
We are checking and retrieving the rates and availability of our hotels
"; document.write(getTag(1,'progress',50,50,190,67)+prloadtxt+getTag(2)); function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i