ims=new Image();ims.src=path+'reservation/images/buttons/close.gif';function opWind()
{var error=0;var new_check_in=document.form_1.new_checkin_date.value;var temp=new Array();temp=new_check_in.split(/[-\/]/);if(temp.length!=3){alert('Incorrect date format');return false;}
if(temp[2].length==2){temp[2]='20'+temp[2];}
new_check_in=temp[0]+'/'+temp[1]+'/'+temp[2];Time=new Date();today=Time.getTime()-86400000;Time.setTime(Date.parse(new_check_in));if(today<Time)
{var url="indexPopup.php?new_checkin_date="+new_check_in;myWin=window.open(url,'newWin','scrollbars=no,status=no,width=385,height=344');return false;}
else
{var mes="Check-in date must be greater than today's date";alert(mes);return false;}}
function selectRate(p_people,p_parking,rateID,s_people,s_parking,s_room){var notifyflag=0;if(p_people*s_room<s_people){notifyflag+=1;}
if(p_parking<s_parking){notifyflag+=2;}
if(notifyflag==0){notifyflag='';}
else if(notifyflag==1){notifyflag="The Package rate you have selected allows up to "+p_people+" people per room. You have searched for "+s_people+". There may be charges collected at the hotel for the additional people.";}
else if(notifyflag==2){notifyflag="The Package you have selected allows "+p_parking+" days of parking. You have searched for "+s_parking+". There will be charges for additional parking.";}
else if(notifyflag==3){notifyflag="The Package you have selected allows "+p_parking+" days of parking and up to "+p_people+" people. You have searched for "+s_parking+" days of parking and "+s_people+" people. There may be charges for additional parking and people.";}
else{notifyflag='';}
params="rateID="+rateID;if(notifyflag!=''){packageConfirm(notifyflag,params);return false;}else{document.location.href="checkout.php?"+params;return true;}}
function packageConfirm(notifyflag,params){var confWin=document.getElementById('descr');var ref="checkout.php?"+params;winHeight=53;winWidth=400;yPos=document.body.scrollWidth/2-winWidth/2;xPos=document.documentElement.scrollTop+document.documentElement.clientHeight/2-winHeight/2-10;y=document.body.scrollWidth;x=document.documentElement.clientHeight>document.body.scrollHeight?document.documentElement.clientHeight:document.body.scrollHeight;body='<div class="overlay" style="height: '+x+'px; width:'+y+'px;" onclick="closeDesc()"></div>';body+='<div  class="overlayDiv" style="position:absolute; top:'+xPos+'px; left:'+yPos+'px; width:'+winWidth+'px; background-color:#7EA1C9; padding: 7px;" id ="div">';body+='<span align="center" style="font: normal 12px Arial;">'+notifyflag+'</span>';body+='<div align="center" style="margin-top: 7px;">';body+='<a href="'+ref+'"><img src="images/buttons/transparent/btn_ok.gif"/></a>';body+='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';body+='<a href="javascript:void(0);" onclick="closeDesc()" id="bttn"><img src="images/buttons/transparent/btn_cancel.gif"></a>';body+='</div></div>';confWin.innerHTML=body;confWin.style.display='block';}
$(document).ready(function(){$("#checkInDate").datepicker({showOn:'button',buttonText:'Select New Check-In Date',buttonImage:'/reservation/images/misc/calendarButton2.gif',buttonImageOnly:true,dateFormat:'mm/dd/yy',changeMonth:true,changeYear:true,minDate:'D',maxDate:'2Y'});});