function validate(theForm)
{
  if (theForm.firstname.value == "")
  {
	alert("Please enter your first name.");
	theForm.firstname.focus();
	return (false);
  }
  
  if (theForm.lastname.value == "")
  {
	alert("Please enter your last name.");
	theForm.lastname.focus();
	return (false);
  }
  
  if (theForm.date.value == "")
  {
	alert("Please enter your date of desired booking.");
	theForm.date.focus();
	return (false);
  }
  
    if (theForm.phone.value == "")
  {
	alert("Please enter your phone number.");
	theForm.phone.focus();
	return (false);
  }
  
    if (theForm.people.value == "")
  {
	alert("Please enter the number of people for this booking.");
	theForm.people.focus();
	return (false);
  }
  
}