function checkAirForm(){
		var error_message="";
		if(document.forms.searchflights.origin.value=="")			error_message+="departure cant be blank<br>";
		if(document.forms.searchflights.dest.value=="")		error_message+="destination cant be blank<br>";
		if(document.forms.searchflights.departdate.value=="")		error_message+="please put a valid departure date cant be blank<br>";
		if(document.forms.searchflights.returndate.value=="")		error_message+="return date cant be blank<br>";
		
		if(error_message!=""){
			//document.getElementById("air_error").innerHTML="<font color=red size=-2>"+error_message+"<font>";
			return false;
		}else{	
			
			return true;
		}
}

function checkCarForm(){
		var error_message="";
		if(document.forms.searchcars.pickup.value=="")			error_message+="pickup city cant be blank<br>";
		if(document.forms.searchcars.dropoff.value=="")		error_message+="dropoff city cant be blank<br>";
		if(document.forms.searchcars.pickupdate.value=="")		error_message+="pickup date can be blank<br>";
		if(document.forms.searchcars.dropoffdate.value=="")		error_message+="drop off date cant be blank<br>";
		
		if(error_message!=""){
			//document.getElementById("car_error").innerHTML="<font color=red size=-2>"+error_message+"<font>";
			return false;
		}else{
			
			return true;
		}
}

function checkHotelForm(){
		var error_message="";
		if(document.forms.searchhotels.market.value=="")			error_message+="city cant be blank<br>";
		if(document.forms.searchhotels.checkin.value=="")		error_message+="check in date cant be blank<br>";
		if(document.forms.searchhotels.checkout.value=="")		error_message+="checkout date cant be blank<br>";
		if(error_message!=""){
			//document.getElementById("hotel_error").innerHTML="<font color=red size=-2>"+error_message+"<font>";
			return false;
		}else{
			return true;
		}
}
