var dateNow  	= new Date();
var thisDay  	= dateNow.getDate();
var curMonth    = dateNow.getMonth();
var curYear     = dateNow.getFullYear();

var nextYear 	= curYear + 1;
var months 		= new Array( "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec");

function makeDate( sField) 
{ 
	var sTempName  	= sField.name.slice(3); 
	var sForm    	= document.forms['quickbook'];
	var sMonthYear 	= eval( "sForm.mon" + sTempName + ".options[sForm.mon" + sTempName + ".selectedIndex].value");  
	var sDayOfMonth = eval( "sForm.dom" + sTempName + ".options[sForm.dom" + sTempName + ".selectedIndex].value");
	
	sForm.elements[sTempName].value =  sDayOfMonth + "/" + sMonthYear;
}



function checkAvail(sLoc)
{
	var theForm, sArrive, sDepart;
	
	theForm = document.forms['quickbook'];
	sArrive = theForm.Date1.value;
	sDepart = theForm.Date2.value;
	
	if(!sArrive) { 
		sArrive = thisDay + "/" + (curMonth + 1) + "/" + curYear; 
	}
	if(!sDepart) { 
		sDepart = (thisDay + 1) + "/" + (curMonth + 1) + "/" + curYear;
	}
	
	document.location.href = sLoc + sArrive + "&depart=" + sDepart;
}
