// JavaScript Document
function validate()
	{
	var theForm = document.resForm;
	if (theForm.name.value == '')
		{
		alert("Please enter the traveler's name\(s\).");
		theForm.name.focus();
		return false;
		}
	if ((theForm.phone_h.value == '') && (theForm.phone_c.value == ''))
		{
		alert("Please provide either a home phone or a cell phone number");
		theForm.phone_c.focus();
		return false;
		}
	if ((theForm.ptimeH.value == '') || (theForm.ptimeM.value == ''))
		{
		alert("Please enter the pickup time");
		if (theForm.ptimeH.value == '') theForm.ptimeH.focus();
		else theForm.ptimeM.focus();
		return false;
		}
	if ((!theForm.pampm[0].checked) && (!theForm.pampm[1].checked))
		{
		alert("Please select AM or PM");
		theForm.ptimeM.focus();
		return false;
		}
	if (theForm.pairport.selectedIndex == 0)
		{
		if ((theForm.street1.value == '') || (theForm.city1.value == '') || (theForm.state1.value == '') || (theForm.zip1.value == ''))
			{
			alert("Please select an airport for pickup, or provide a complete pickup address");
			theForm.street1.focus();
			return false;
			}
		}
	else if ((theForm.airline.value == '') || (theForm.flight.value == '') || (theForm.origin.value == ''))
		{
		alert("Please provide complete flight information");
		if (theForm.airline.value == '') theForm.airline.focus();
		else if (theForm.flight.value == '') theForm.flight.focus();
		else theForm.origin.focus();
		return false;
		}
	if (theForm.dairport.selectedIndex == 0)
		{
		if ((theForm.street2.value == '') || (theForm.city2.value == '') || (theForm.state2.value == '') || (theForm.zip2.value == ''))
			{
			alert("Please select an airport for dropoff, or provide a complete dropoff address");
			theForm.street2.focus();
			return false;
			}
		}
	if ((!theForm.payment[0].checked) && (!theForm.payment[1].checked) && (!theForm.payment[2].checked))
		{
		alert("Please indicate desired payment method");
		return false;
		}
	return true;
	}