function toggle(thediv) { 
document.getElementById("div_air").style.display = "none"; 
document.getElementById("div_hotel").style.display = "none"; 
document.getElementById("div_car").style.display = "none"; 
document.getElementById("div_cruise").style.display = "none"; 
document.getElementById(thediv).style.display = "block"; 
} 



		<!--  to hide script contents from old browsers
		var startDate;
		var endDate;

		function resetDates() {
			startDate = endDate = null;
		}

		function filterDates1(cal) {
			startDate = new Date(cal.date)
			startDate.setHours(0,0,0,0)	// used for compares without TIME
			/* If they haven't chosen an 
			end date before we'll set it to the same date as the start date This
			way if the user scrolls in the start date 5 months forward, they don't
			need to do it again for the end date.
			*/

			if (endDate == null) { 

			}
		}

		function filterDates2(cal) {
			var date = cal.date;
			endDate = new Date(cal.date)
			endDate.setHours(0,0,0,0)	// used for compares without TIME
		}

		/*
		* This functions return true to disallow a date
		* and false to allow it.
		*/


		/* 
		* Check-Out calendar allowed dates
		* Check-Out date can not be BEFORE Check-In date
		* Check-Out date can not be before today
		*/
		function disallowDateBefore(dateCheckOut) {
			dateCheckOut.setHours(0,0,0,0)
			if ((startDate != null) && startDate > dateCheckOut)
				// startDate is defined, make sure cal date is NOT before start date
				return true; 
			
			var now = new Date()
			now.setHours(0,0,0,0)
			if (dateCheckOut < now) 
				// check out date can not be befor today if startDate NOT defined
				return true;

			return false;
		}

		/* 
		* Check-In date checking
		* Check-In date can not be AFTER Check-Out date
		* Check-In date can not be before today
		*/
		function disallowDateAfter(dateCheckIn) {
			dateCheckIn.setHours(0,0,0,0)
			if ((endDate != null) && dateCheckIn > endDate)
				// endDate defined, calendar date can NOT be after endDate
				return true;

			var now = new Date()
			now.setHours(0,0,0,0)

			if (dateCheckIn < now)
				// endDate NOT defined, calendar date can not be before today
				return true;

			return false;
		}

		// end hiding contents from old browsers  -->
		



// code below seems to be needed to set the date  -->
	var	today =	new	Date()
	var	dateNow	 = today.getDate()
	var	monthNow = today.getMonth()
	var	yearNow	 = today.getYear()
	var	ie=document.all
	var	ns4=document.layers
	function init()	{
		if (!ns4)
		{
			if (!ie) { yearNow += 1900	}

		}
	}
// end of code to set the date  -->

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 SetDatesHotel()
{
//
// sets the departure date to today's date...
//
		document.frmBookingHotelResults.txtHotelSegment1CheckinDate.value = 
		DisplayDate();
		document.frmBookingHotelResults.txtHotelSegment1CheckoutDate.value = 
		DisplayDate();

}
function SetDatesCar()
{
//
// sets the departure date to today's date...
//
		document.frmSearchCarByPrice.txtCarSegment1PickupDate.value = 
		DisplayDate();
		document.frmSearchCarByPrice.txtCarSegment1DropoffDate.value = 
		DisplayDate();

}


function SyncDatesAir()
{
//
// change the second date to match the first...
//
		document.frmSearchByPrice.txtAirSegment2DepDate.value = 
document.frmSearchByPrice.txtAirSegment1DepDate.value;
}
function SyncDatesHotel()
{
//
// change the checkout date to match the checkin date...
//
		document.frmBookingHotelResults.txtHotelSegment1CheckoutDate.value = document.frmBookingHotelResults.txtHotelSegment1CheckinDate.value;
}
function SyncDatesCar()
{
//
// change the checkout date to match the checkin date...
//
		document.frmSearchCarByPrice.txtCarSegment1DropoffDate.value = document.frmSearchCarByPrice.txtCarSegment1PickupDate.value;
}


function InitPage()
{
		init();			// init for the calendar routine
		SetDatesAir();
		SetDatesCar();
		SetDatesHotel();
}