function validator(theForm) 
	{
if 	(theForm.requiredPatientname.value == "")
		{
			alert("You must enter patient's name!");
			theForm.requiredPatientname.focus();
			return (false);
		}	

else if  (theForm.requiredDOBmonth.value == "")
		{
			alert("Please check patient's Month of Birth!");
			theForm.requiredDOBmonth.focus();
			return (false);
		}
else if  (theForm.requiredDOBday.value == "")
		{
			alert("Please check patient's Day of Birth!");
			theForm.requiredDOBday.focus();
			return (false);
		}
else if  (theForm.requiredDOByear.value == "")
		{
			alert("Please check patient's Month of Birth!");
			theForm.requiredDOByear.focus();
			return (false);
		}
else if  (theForm.requiredInsuredname.value == "")
		{
			alert("You must enter the name of the person insured. If the patient and the insured individual are the same, enter 'self'.");
			theForm.requiredInsuredname.focus();
			return (false);
		}
else if  (theForm.requiredinsuredDOBmonth.value == "")
		{
			alert("Please check insured individual's Month of Birth. If the patient and the insured individual are the same, enter '**'.");
			theForm.requiredinsuredDOBmonth.focus();
			return (false);
		}
else if  (theForm.requiredinsuredDOBday.value == "")
		{
			alert("Please check insured individual's Day of Birth. If the patient and the insured individual are the same, enter '**'.");
			theForm.requiredinsuredDOBday.focus();
			return (false);
		}
else if  (theForm.requiredinsuredDOByear.value == "")
		{
			alert("Please check insured individual's Year of Birth. If the patient and the insured individual are the same, enter '**'.");
			theForm.requiredinsuredDOByear.focus();
			return (false);
		}
else if  (theForm.requiredInsuredss1.value == "")
		{
			alert("Please check insured individual's SSN#!");
			theForm.requiredInsuredss1.focus();
			return (false);
		}
else if  (theForm.requiredInsuredss2.value == "")
		{
			alert("Please check insured individual's SSN#!");
			theForm.requiredInsuredss2.focus();
			return (false);
		}
else if  (theForm.requiredInsuredss3.value == "")
		{
			alert("Please check insured individual's SSN#!");
			theForm.requiredInsuredss3.focus();
			return (false);
		}
else if  (theForm.requiredPatientrelation.value == "")
		{
			alert("Please enter relationship with Patient. If you are the patient, enter 'self'.");
			theForm.requiredPatientrelation.focus();
			return (false);
		}
else if  (theForm.requiredInsurancename.value == "")
		{
			alert("You must enter Insurance Company's Name!");
			theForm.requiredInsurancename.focus();
			return (false);
		}
else if  (theForm.requiredInsurancephone.value == "")
		{
			alert("You must enter Insurance Company's Phone Number!");
			theForm.requiredInsurancephone.focus();
			return (false);
		}
else if  (theForm.requiredInsurancepolicy.value == "")
		{
			alert("You must enter Insurance Policy Number!");
			theForm.requiredInsurancepolicy.focus();
			return (false);
		}
else if  (theForm.email.value == "")
		{
			alert("You must enter patient's email!");
			theForm.email.focus();
			return (false);
		}
else if  (theForm.requiredTelephone.value == "")
		{
			alert("You must enter patient's Home Phone Number!");
			theForm.requiredTelephone.focus();
			return (false);
		}
else if  (theForm.requiredEmpname.value == "")
		{
			alert("You must enter Employers Name!");
			theForm.requiredEmpname.focus();
			return (false);
		}

	} 
