	orbotForm = document.carsearchform;
	var theForm = orbotForm;

	var radioV = "air";
	radioV = radioV.toLowerCase();
	setValue(orbotForm.searchMode,radioV);


	var dateDDs = new Array(theForm.elements["pickupMonth"],theForm.elements["pickupDay"],theForm.elements["dropoffMonth"],theForm.elements["dropoffDay"]);
	var airSearch = new orbotSearch("air",0);
	var hotelSearch = new orbotSearch("hotel",1);
	var carSearch = new orbotSearch("car",2);
	var airHotelSearch = new orbotSearch("airhotel",3);
	var hotelCarSearch = new orbotSearch("hotelcar",4);
	var allSearches = new Array(airSearch,hotelSearch,carSearch,airHotelSearch,hotelCarSearch);
	var sType = orbotForm.searchType.value;
	sType = "car";
	for (var i = 0; i < orbotForm.searchType.length; i ++ ) {
		if (orbotForm.searchType[i].checked) {
			sType = orbotForm.searchType[i].value;
			for (var s = 0; s < allSearches.length; s ++) {
				if (sType == allSearches[s].id) {
					sType = allSearches[s];
				}
			}
		}
	}

	if (getCookie(qsPage) != "") {
		for (var s = 0; s < allSearches.length; s ++) {
			if (getCookie(qsPage) == allSearches[s].id) {
				sType = allSearches[s];
			}
		}
	}

		previousType = carSearch;
		generateMonthDD();
		
		//generateSearch(sType);
		
		//function setDates(dates) {
		var puMonth = document.carsearchform.pickupMonth;
		var puDay = document.carsearchform.pickupDay;
		var doMonth = document.carsearchform.dropoffMonth;
		var doDay = document.carsearchform.dropoffDay;
		setValue(puMonth,carSearch.dates.m1);
		setValue(puDay,carSearch.dates.d1);
		setValue(doMonth,carSearch.dates.m2);
		setValue(doDay,carSearch.dates.d2);
