// JavaScript Document

function Form_Validator(theForm)
{
	if (theForm.full_name.value == "")
  {
    alert("Please enter your full name.");
    theForm.full_name.focus();
    return (false);
  }

if (theForm.state.value == "")
  {
    alert("Please enter a state.");
    theForm.state.focus();
    return (false);
  }
  
  
  if (theForm.phone.value == "")
  {
    alert("Please enter a phone number.");
    theForm.phone.focus();
    return (false);
  }
	
	if ((theForm.email.value==null)||(theForm.email.value=="")){
		alert("Please enter your E-mail.");
		theForm.email.focus();
		return (false);
	}

  if (theForm.dob1.value == "")
  {
    alert("Please enter your month of birth (MM/DD/YYYY).");
    theForm.dob1.focus();
    return (false);
  }
  
  if (theForm.dob2.value == "")
  {
    alert("Please enter your day of birth (MM/DD/YYYY).");
    theForm.dob2.focus();
    return (false);
  }
  
  if (theForm.dob3.value == "")
  {
    alert("Please enter your year of birth (MM/DD/YYYY).");
    theForm.dob3.focus();
    return (false);
  }
  
  if (theForm.gender.value == "")
  {
    alert("Please specify your gender.");
    theForm.gender.focus();
    return (false);
  }
  
  if (theForm.height.value == "")
  {
    alert("Please enter your height.");
    theForm.height.focus();
    return (false);
  }
  
  if (theForm.weight.value == "")
  {
    alert("Please enter your weight.");
    theForm.weight.focus();
    return (false);
  }
  
  if (theForm.coverage.value == "")
  {
    alert("Please specify if you have coverage.");
    theForm.coverage.focus();
    return (false);
  }
  
  if (theForm.medical_problems.value == "Yes")
  {
    	if (theForm.medical_info.value == "")
  		{
    	alert("Please explain your medical problems to us.");
    	theForm.medical_info.focus();
    	return (false);
  		}
  }
  
  if (theForm.occupation.value == "")
  {
    alert("Please enter your occupation.");
    theForm.occupation.focus();
    return (false);
  }
  
  return (true);
}
