<!-- Calendar Code Follows -->

<!--
addHoliday(25,12,0, "Christmas Day")
addHoliday(1,1,0, "New Year's Day")
addHoliday(12,2,2002, "Chinese New Year")
//-->

	  
function roundTrip()
{
	if ((document.frmSearchByPrice.rbtOneWay != null) 
//		&& (document.frmSearchByPrice.rbtMultiCity != null)
		&& (document.frmSearchByPrice.rbtRoundTrip != null))
	{
		if (document.frmSearchByPrice.rbtRoundTrip.checked)
		{
		//
		// it is a round trip, 
		//
			document.frmSearchByPrice.txtAirSegment2DepCity.value = document.frmSearchByPrice.txtAirSegment1ArrCity.value;
			document.frmSearchByPrice.txtAirSegment2ArrCity.value = document.frmSearchByPrice.txtAirSegment1DepCity.value;
		}
		else if (document.frmSearchByPrice.rbtOneWay.checked)
		{
		//
		// one way, only
		//
			document.frmSearchByPrice.txtAirSegment2DepCity.value = "";
			document.frmSearchByPrice.txtAirSegment2ArrCity.value = "";
		}
		else
		{
		//
		// multi city - do nothing
		//
		}
	}
	//
	// else, the page isn't configured properly
	//
}	  

function DisplayDate() 
{
	var now = new Date();
	var day = now.getDate();
	var month = (now.getMonth() + 1);
	var year = now.getYear();
	if (year < 1000)
	{
		year += 1900;
	}

	return(month + "/" + day + "/" + year);
}

function SetDatesAir()
{
//
// sets the departure date to today's date...
//
		document.frmSearchByPrice.txtAirSegment1DepDate.value = DisplayDate();
		document.frmSearchByPrice.txtAirSegment2DepDate.value = DisplayDate();
}
  function SyncDates()
{
//
// change the second date to match the first...
//
		document.frmSearchByPrice.txtAirSegment2DepDate.value = document.frmSearchByPrice.txtAirSegment1DepDate.value;
} 
   
   
function InitPage()
{
		init();			// init for the calendar routine
		SetDatesAir();

}

