function check(){
	if(document.TripPlanner.TripType.value=="select"){
	alert("Select Trip Type");
	document.TripPlanner.TripType.focus();
	return false;
	}
	
	if(document.TripPlanner.Type_of_Aircract.value==""){
	alert("Enter Type of Aircraft");
	document.TripPlanner.Type_of_Aircract.focus();
	return false;
	}

	if(document.TripPlanner.OriginCity.value==""){
	alert("Enter Origin City or Airport Code");
	document.TripPlanner.OriginCity.focus();
	return false;
	}

	if(document.TripPlanner.ArrivalCity.value==""){
	alert("Enter Arrival City or Airport Code");
	document.TripPlanner.ArrivalCity.focus();
	return false;
	}
	
	if(document.TripPlanner.FirstName.value==""){
	alert("Enter First Name");
	document.TripPlanner.FirstName.focus();
	return false;
	}

	if(document.TripPlanner.LastName.value==""){
	alert("Enter Last Name");
	document.TripPlanner.LastName.focus();
	return false;
	}
	
	if(document.TripPlanner.Email.value==""){
	alert("Enter Email Address");
	document.TripPlanner.Email.focus();
	return false;
	}

	var reg= /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;  
	if(reg.test(document.TripPlanner.Email.value)==false)
	{
	alert("Enter valid Email");
	document.TripPlanner.Email.select();
	return false;
	}

	if(document.TripPlanner.Phone.value==""){
	alert("Enter Phone Number");
	document.TripPlanner.Phone.focus();
	return false;
	}

}
