// JavaScript Document
function filterLoad(){
			var optionCounter; 
			//Make
			var theMakeElement = window.document.vehicle_filter.make_filter;
			for (optionCounter = 0; optionCounter < theMakeElement.length; optionCounter++){
				if(theMakeElement.options[optionCounter].value==filtArray[0]){
					theMakeElement.selectedIndex=optionCounter;
				}
			}
			optionCounter=0;
			//Model
			var theModelElement = window.document.vehicle_filter.model_filter;
			for (optionCounter = 0; optionCounter < theModelElement.length; optionCounter++){
				if(theModelElement.options[optionCounter].value==filtArray[1]){
					theModelElement.selectedIndex=optionCounter;
				}
			}
			optionCounter=0;
			//Year
			var theYearElement = window.document.vehicle_filter.year_filter;
			for (optionCounter = 0; optionCounter < theYearElement.length; optionCounter++){
				if(theYearElement.options[optionCounter].value==filtArray[2]){
					theYearElement.selectedIndex=optionCounter;
				}
			}
			optionCounter=0;
			//Body
			var theBodyElement = window.document.vehicle_filter.body_filter;
			for (optionCounter = 0; optionCounter < theBodyElement.length; optionCounter++){
				if(theBodyElement.options[optionCounter].value==filtArray[3]){
					theBodyElement.selectedIndex=optionCounter;
				}
			}
			optionCounter=0;
			//Mileage
			var theKMElement = window.document.vehicle_filter.km_filter;
			for (optionCounter = 0; optionCounter < theKMElement.length; optionCounter++){
				if(theKMElement.options[optionCounter].value==filtArray[4]){
					theKMElement.selectedIndex=optionCounter;
				}
			}
			optionCounter=0;
			//Price
			var thePriceElement = window.document.vehicle_filter.price_filter;
			for (optionCounter = 0; optionCounter < thePriceElement.length; optionCounter++){
				if(thePriceElement.options[optionCounter].value==filtArray[5]){
					thePriceElement.selectedIndex=optionCounter;
				}
			}
			optionCounter=0;
		
		}
		function filterChange(make,pageNUM){
			var locoFilt=""
			if(vehicle_filter.make_filter.value!=""){
				if(locoFilt==""){
					locoFilt="make="+vehicle_filter.make_filter.value;
				} else {
					locoFilt="&make="+vehicle_filter.make_filter.value;
				}
			}
			if(vehicle_filter.model_filter.value!=""){
				if(locoFilt==""){
					locoFilt="model="+vehicle_filter.model_filter.value;
				} else {
					locoFilt=locoFilt+"&model="+vehicle_filter.model_filter.value;
				}
			}
			if(vehicle_filter.year_filter.value!=""){
				if(locoFilt==""){
					locoFilt="year="+vehicle_filter.year_filter.value;
				} else {
					locoFilt=locoFilt+"&year="+vehicle_filter.year_filter.value;
				}
			}
			if(vehicle_filter.body_filter.value!=""){
				if(locoFilt==""){
					locoFilt="body="+vehicle_filter.body_filter.value;
				} else {
					locoFilt=locoFilt+"&body="+vehicle_filter.body_filter.value;
				}
			}
			if(vehicle_filter.price_filter.value!=""){
				if(locoFilt==""){
					locoFilt="price="+vehicle_filter.price_filter.value;
				} else {
					locoFilt=locoFilt+"&price="+vehicle_filter.price_filter.value;
				}
			}
			if(vehicle_filter.km_filter.value!=""){
				if(locoFilt==""){
					locoFilt="mile="+vehicle_filter.km_filter.value;
				} else {
					locoFilt=locoFilt+"&mile="+vehicle_filter.km_filter.value;
				}
			}
			if(make=="true"){
				locoFilt="make="+vehicle_filter.make_filter.value;
			}
			if(pageNUM!=null){
				if(locoFilt==""){
					locoFilt=locoFilt+"page="+pageNUM;
				} else {
					locoFilt=locoFilt+"&page="+pageNUM;
				}
			}
			location="http://www.wholesaledivision.com/inventory.asp?"+locoFilt;
		}
		
		function myCheckForm(FormData){
				var checkedVeh=0;
				for(var i=0; i<compareVeh.compare_veh.length; i++){
					if(FormData.compare_veh[i].checked){
						checkedVeh++;
					}
				}
					if(checkedVeh>1){
						return true;
					} else {
						alert("You must select more than one vehicle");
						return false;
					}
			}