<!--
function SetDates() {

//Set the Months
	var objDD1 = document.getElementById("iOutboundMonthYear");
	var objDD2 = document.getElementById("iReturnMonthYear");
	var nowDate = new Date();
	var iMonth = nowDate.getMonth();
	var iYear = nowDate.getFullYear();
	var month_name = new Array ("Jan ","Feb ","Mar ","Apr ","May ","Jun ","Jul ","Aug ","Sep ","Oct ","Nov ","Dec ");
	var sMonth, sMonthYear
	var iDaysThisMonth = 32 - new Date(iYear, iMonth, 32).getDate();
	for(i=0;i<12;i++)
	{
		iMonth = parseInt(iMonth + 1);
		if (iMonth > 12)
			{iYear = parseInt(iYear +1); iMonth = 1;}
		sMonth = String(iMonth) + String(iYear)
		if (sMonth.length < 6)
			{sMonth = "0" + sMonth;}
		sMonthYear = month_name[iMonth-1] + " " + iYear		

		var newOpt = new Option(sMonthYear, sMonth,false,false);
		objDD1.options[objDD1.options.length] = newOpt;
		var	newOpt = new Option(sMonthYear, sMonth,false,false);
		objDD2.options[objDD2.options.length] = newOpt;
	}
//Set the days for Flights
	var iDay = nowDate.getDate();
	iDay = addDays(nowDate,7);
	document.inputform.iOutboundDay.selectedIndex = iDay.getDate()-1;
//If the day is less than today then we've moved on to the next month for departures.		

if (parseInt(document.inputform.iOutboundDay.value) < parseInt(nowDate.getDate())){
	document.inputform.iOutboundMonthYear.selectedIndex = 1;}
//A three day stay is usually mandatory.
	var iTemp = parseInt(document.inputform.iOutboundDay.value) + 3
	if (iTemp > iDaysThisMonth - 1) {
		document.inputform.iReturnDay.selectedIndex = iTemp - iDaysThisMonth -1;}
	else {
		document.inputform.iReturnDay.selectedIndex = iTemp - 1;
	}
//If the day is less than today then we've moved on to the next month for returns.	
	if (parseInt(document.inputform.iReturnDay.value) < parseInt(nowDate.getDate())){
	document.inputform.iReturnMonthYear.selectedIndex = 1;}

}

function ValidateFlights(){
if (document.inputform.sDestinationCode.value == "") 
	{alert("Please enter a destination");
	document.inputform.sDestinationCode.focus();
	return false;}
}

function DateInThePast(dd,mmyy,days){
var x = new Date();
var y = new String(mmyy);
x.setDate(dd); x.setMonth(y.slice(0,2)-1); x.setFullYear(y.slice(2,6));
var nowDate = new Date();
strDate = new Date(addDays(nowDate,days));

if (x < strDate)
	return false;
else
	return true;
}

function addDays(myDate,days) {
    return new Date(myDate.getTime() + days*24*60*60*1000);
}

-->