function Validator(theForm)
{

  if (theForm.fname.value == "")
  {
    alert("Please enter your first name.");
    theForm.fname.focus();
    return (false);
  }
   if (theForm.dob.value == "")
  {
    alert("Please enter your Date of Birth.");
    theForm.dob.focus();
    return (false);
  }
  if (theForm.gender.value == "")
  {
    alert("Please enter your gender.");
    theForm.gender.focus();
    return (false);
  }
  if (theForm.phone.value == "")
  {
    alert("Please enter your phone number.");
    theForm.phone.focus();
    return (false);
  } 
    
   if (theForm.email.value == "")
  {
    alert("Please enter your email.");
    theForm.email.focus();
    return (false);
  }
if (theForm.state.value == "")
  {
    alert("Please enter the state in which you reside.");
    theForm.state.focus();
    return (false);
  }
   if (theForm.occupation.value == "")
  {
    alert("Please enter your occupation.");
    theForm.occupation.focus();
    return (false);
  }
   
   return (true);
}