function loadDates()
{

	var calendar = new Date();
	var calendar2 = new Date();
	var cal
	var cal2
	var date;
	var month;
	var year;
	var date2;
	var month2;
	var year2;
	
	//Here is the variable to change for to advance the arrival Date
	 var advanceArrival = 0; 
	
	//Here is the variable to change for to advance the departure Date
	 var advanceDeparture = 1; 
	
	
	//Set the arrival Days
	calendar.setDate(calendar.getDate()+ advanceArrival);
	date = calendar.getDate();
	month = calendar.getMonth();
	
	//Set the Departure Days
	calendar2.setDate(calendar2.getDate()+advanceDeparture); 
	date2 = calendar2.getDate();
	month2 = calendar2.getMonth();
	
	document.forms['hotForm'].arrivalMonth.value=month;
	document.forms['hotForm'].arrivalDay.value=date;
	document.forms['hotForm'].departureMonth.value=month2;
	document.forms['hotForm'].departureDay.value=date2;
	
}

function OpenCalendar(dayField, day, monthField, month, yearField, year, formName) {
              file = 'http:\/\/www.travelnow.com/util/calendar.jsp?formName=' + formName;
            if ( dayField != null )
              file += '&dayField=' + dayField + '&day=' + day;
            if ( monthField != null )
              file += '&monthField=' + monthField + '&month=' + month;
            if ( yearField != null )
              file += '&yearField=' + yearField + '&year=' + year;
            window.open( file, "dates", 'width=200,height=200,resizable=1');
        }
	
	
function newCalendar(){
document.cal.action = document.location.pathname;
document.cal.submit();
}
function closeWin(){
window.close();
return true;
}
function UpdDate(themonth,theday,theyear){
opener.document.hotForm.departureDay.options[theday - 1].selected = true;
if(opener.document.hotForm.returnDay) {
opener.amadChange(opener.document.hotForm.departureMonth,opener.document.hotForm.departureDay,opener.document.hotForm.returnMonth,opener.document.hotForm.returnDay);
}
else {
opener.dmddChange(opener.document.hotForm.departureMonth,opener.document.hotForm.departureDay);
}
opener.document.hotForm.departureMonth.options[themonth].selected = true;
if(opener.document.hotForm.returnMonth) {
opener.amadChange(opener.document.hotForm.departureMonth,opener.document.hotForm.departureDay,opener.document.hotForm.returnMonth,opener.document.hotForm.returnDay);
if(parseInt(themonth) == 11 && parseInt(theday) >= 30) {
opener.document.hotForm.returnMonth.options[0].selected = true;
}
}
else {
opener.dmddChange(opener.document.hotForm.departureMonth,opener.document.hotForm.departureDay);
}
window.close();
}
window.focus();