function isEmailAddr(Email)
{
  var result = false
  var theStr = new String(Email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}

function valRequest(theForm)
{

  if (theForm.Name.value == "" )
  {
    alert("Please enter your name");
    theForm.Name.focus();
    return (false);
  } 
  
  if (theForm.Phone.value == "" )
  {
    alert("Please enter your phone number");
    theForm.Phone.focus();
    return (false);
  }
  
 /*   if (theForm.Email.value == "" || !isEmailAddr(theForm.Email.value))
  {
    alert("Please enter a valid Email Address.");
    theForm.Email.focus();
    return (false);
  }
 */
 
  if (theForm.PUDate.value == "" )
  {
    alert("Please enter the pick up Date");
    theForm.PUDate.focus();
    return (false);
  }

if (theForm.PUTime.value == "" )
  {
    alert("Please enter the pick up time");
    theForm.PUTime.focus();
    return (false);
  }


/* if (theForm.Pick_Up_Hour.value == "" )
  {
    alert("Please enter the pick up hour");
    theForm.Pick_Up_Hour.focus();
    return (false);
  }
  
if (theForm.Pick_Up_Minute.value == "" )
  {
    alert("Please enter the pick up minute");
    theForm.Pick_Up_Minute.focus();
    return (false);
  }  
  
if (theForm.Pick_Up_AM_or_PM.value == "" )
  {
    alert("Please enter AM or PM");
    theForm.Pick_Up_AM_or_PM.focus();
    return (false);
  } */    
  
  	if (theForm.PULoc.value == "" )
  {
    alert("Please enter the pick up location");
    theForm.PULoc.focus();
    return (false);
  }
  
    	if (theForm.DOLoc.value == "" )
  {
    alert("Please enter the Drop Off Location");
    theForm.DOLoc.focus();
    return (false);
  }
  
	if (theForm.Passengers.value == "" )
  {
    alert("Please enter the number of passengers");
    theForm.Passengers.focus();
    return (false);
  }
  return (true);

}

