var bTried=false;
function document_load(site) {
var dt=new Date();
hotelpage_avail.day.value=dt.getDate()
hotelpage_avail.month.value=dt.getMonth()+1;
hotelpage_avail.year.value=dt.getYear();
}
function loadPic(photo,id) {
if (bTried==true) {
photo.src="nopic.gif";
} else {
photo.src="http://www.activehotels.com/photos/"+id+"/AAB"+id+".jpg";
bTried=true;
}
}
function popWin(winUrl) {
x=window.open(winUrl,'dets','width=300,height=400');
x.focus();
return false;
}
var now = new Date();
var theday = now.getDate()-1;
var themonth = now.getMonth();
var theyear = now.getFullYear();
function setDrops(theForm) {
theForm.day.selectedIndex = theday;
theForm.month.selectedIndex = themonth;
var found = 0;
for(i=1;i<theForm.year.options.length;i++) { if (theForm.year.options[i].value == theyear) { found = i; break; } } theForm.year.selectedIndex = found; }