// Title: Form Validation
// URL: http://www.ihost.ws
// Date: 10/29/2004 (mm/dd/yyyy)
// Feedback: admin@ihost.ws (specify product title in the subject)
// Note: Permission given to use this script in ANY kind of applications if
//    header lines are left unchanged.
// About us: Our company provides web consulting and development services. 
//           As well as Full Computer Graphic Design and Name Branding.
//           Business Presentation and Business Stationery Package and Promotional Design and Printing.
//    Contact us at support@nobtech.com if you have any programming task you
//    want to be handled by professionals. 





function ValidateCommercial() {

 if (document.Commercial.Applicant_Name.value == "") {
    alert("Please fill in the Applicant's Name field!");
    document.Commercial.Applicant_Name.focus();
    return (false);
 } else {
    document.Commercial.realname.value = document.Commercial.Applicant_Name.value;
 }


 if (document.Commercial.email.value == "") {
	alert("Please enter your Email address!");
	document.Commercial.email.focus();
	return (false);
 }
	
 var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@.-_";
 var checkStr = document.Commercial.email.value;
 var allValid = true;
 var Valid_email = false;
 for (i = 0;  i < checkStr.length;  i++) {
   ch = checkStr.charAt(i);
   for (j = 0;  j < checkOK.length;  j++)
     if (ch == checkOK.charAt(j)) {
       if (ch == '@') Valid_email = true;
//       alert("Valid_email="+Valid_email+'    checkOK.length='+checkOK.length+'    ch='+ch+'      checkStr.length='+checkStr.length);
       }
     }
     if (!Valid_email) allValid = false;
     if (!allValid) {
       alert("Please enter a VALID email address. (only letter, digit and \" @ . - _ \" characters).");
       document.Commercial.email.focus();
       return (false);
     }
     if (document.Commercial.Email_Confirmation.value == "") {
       alert("Please Confirm your Email address!");
       document.Commercial.Email_Confirmation.focus();
       return (false);
     }
     if (document.Commercial.email.value != document.Commercial.Email_Confirmation.value) {
       alert("Email Mismatch! Please double check your Email and the Email Confirmation!");
       document.Commercial.email.focus();
       return (false);
     }


     if (document.Commercial.Applicant_Home_Phone.value == "" && document.Commercial.Applicant_Work_Phone.value == "") {
       alert("Please submit a Home or Work Phone Number!");
       document.Commercial.Applicant_Home_Phone.focus();
       return (false);
     }

 
// Contact Information

 var Contact_me_by = false;
 for (var r = 0; r < document.all.Contact_me_by.length; r++)
   if (document.all.Contact_me_by(r).checked) { Contact_me_by = true }; 
 if (!Contact_me_by) { alert( "Please specify how do you want us to contact you!" ); return false;} 
 else if (document.all.Contact_me_by(0).checked) { 
         if (document.all.Contact_Address.value == "") {
           alert("Please fill in your Contact Address field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Address.focus();
           return (false);
         }
         if (document.all.Contact_City.value == "") {
           alert("Please fill in your Contact City field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_City.focus();
           return (false);
         }
         if (document.all.Contact_State.value == "") {
           alert("Please select your Contact State or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_State.focus();
           return (false);
         }
         if (document.all.Contact_Zip.value == "") {
           alert("Please fill in your Contact Zip Code field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Zip.focus();
           return (false);
         }
      }

if (document.all.Contact_me_by(1).checked) {
  if (document.all.Contact_email.value == "") {
    alert("Please fill in your Contact email address or Un-Check the Contact me by email checkbox!");
    document.all.Contact_email.focus();
    return (false);
  }
}

if (document.all.Contact_me_by(2).checked) {

  if (document.all.Home_Phone_Details.checked) { 
    if (document.all.Contact_Home_Phone.value == "") {
      alert("Please fill in the Home Phone Number to contact you or Un-Check the Home Phone checkbox!");
      document.all.Contact_Home_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_home.value == "") {
      alert("Please fill in the Best Day to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_day_to_call_home.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_home.value == "") {
      alert("Please fill in the Best Time to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_time_to_call_home.focus();
      return (false);
    }
  }
  if (document.all.Work_Phone_Details.checked) { 
    if (document.all.Contact_Work_Phone.value == "") {
      alert("Please fill in a Work Phone Number to contact you or Un-Check the Work Phone checkbox!");
      document.all.Contact_Work_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_work.value == "") {
      alert("Please fill in the Best Day to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_day_to_call_work.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_work.value == "") {
      alert("Please fill in the Best Time to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_time_to_call_work.focus();
      return (false);
    }
  }
  if (document.all.Other_Phone_Details.checked) { 
    if (document.all.Contact_Other_Phone.value == "") {
      alert("Please fill in the Other Phone Number to contact you or Un-Check the Other Phone checkbox!");
      document.all.Contact_Other_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_other.value == "") {
      alert("Please fill in the Best Day to Call you at the other phone number or Un-Check the Other Phone checkbox!");
      document.all.Best_day_to_call_other.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_other.value == "") {
      alert("Please fill in the Best Time to Call you at the other phone number field or Un-Check the Other Phone checkbox!");
      document.all.Best_time_to_call_other.focus();
      return (false);
    }
  }
}


}





function ValidateMortgage() {

 if (document.Mortgage.Applicant_Name.value == "") {
    alert("Please fill in the Applicant's Name field!");
    document.Mortgage.Applicant_Name.focus();
    return (false);
 } else {
    document.Mortgage.realname.value = document.Mortgage.Applicant_Name.value;
 }


 if (document.Mortgage.email.value == "") {
	alert("Please enter your Email address!");
	document.Mortgage.email.focus();
	return (false);
 }
	
 var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@.-_";
 var checkStr = document.Mortgage.email.value;
 var allValid = true;
 var Valid_email = false;
 for (i = 0;  i < checkStr.length;  i++) {
   ch = checkStr.charAt(i);
   for (j = 0;  j < checkOK.length;  j++)
     if (ch == checkOK.charAt(j)) {
       if (ch == '@') Valid_email = true;
//       alert("Valid_email="+Valid_email+'    checkOK.length='+checkOK.length+'    ch='+ch+'      checkStr.length='+checkStr.length);
       }
     }
     if (!Valid_email) allValid = false;
     if (!allValid) {
       alert("Please enter a VALID email address. (only letter, digit and \" @ . - _ \" characters).");
       document.Mortgage.email.focus();
       return (false);
     }
     if (document.Mortgage.Email_Confirmation.value == "") {
       alert("Please Confirm your Email address!");
       document.Mortgage.Email_Confirmation.focus();
       return (false);
     }
     if (document.Mortgage.email.value != document.Mortgage.Email_Confirmation.value) {
       alert("Email Mismatch! Please double check your Email and the Email Confirmation!");
       document.Mortgage.email.focus();
       return (false);
     }


     if (document.Mortgage.Applicant_Zip.value == "") {
       alert("Please fill in the Applicant's Zip field!");
       document.Mortgage.Applicant_Zip.focus();
       return (false);
     }

     if (document.Mortgage.Applicant_Home_Phone.value == "" && document.Mortgage.Applicant_Work_Phone.value == "") {
       alert("Please submit a Home or Work Phone Number!");
       document.Mortgage.Applicant_Home_Phone.focus();
       return (false);
     }


     if (document.Mortgage.Personal_information_Gender.value == "") {
       alert("Please fill in your Gender!");
       document.Mortgage.Personal_information_Gender.focus();
       return (false);
     }

     if (document.Mortgage.Personal_information_BirthDate.value == "") {
       alert("Please fill in your Birth Date!");
       document.Mortgage.Personal_information_BirthDate.focus();
       return (false);
     }

     if (document.Mortgage.Personal_information_Height_ft.value == "") {
       alert("Please fill in the feets of your Height!");
       document.Mortgage.Personal_information_Height_ft.focus();
       return (false);
     }

     if (document.Mortgage.Personal_information_Height_in.value == "") {
       alert("Please fill in the inches of your Height!");
       document.Mortgage.Personal_information_Height_in.focus();
       return (false);
     }

     if (document.Mortgage.Personal_information_Weight_lb.value == "") {
       alert("Please fill in your Weight!");
       document.Mortgage.Personal_information_Weight_lb.focus();
       return (false);
     }

     if (document.Mortgage.Personal_information_State.value == "") {
       alert("Please fill in your State!");
       document.Mortgage.Personal_information_State.focus();
       return (false);
     }

 var Personal_information_Smoked = false;
 for (var r = 0; r < document.Mortgage.Personal_information_Smoked.length; r++)
   if (document.Mortgage.Personal_information_Smoked(r).checked) { Personal_information_Smoked = true }; 
 if (!Personal_information_Smoked) { alert("Please specify if in the past 12 months, have you smoked cigarettes, cigars, pipes or used tobacco or nicotine in any form including snuff, dip, chew, nicotine patch, gum or other substitutes"); 
                                     return false;} 

     if (document.Mortgage.Personal_information_Mortgage_amount.value == "") {
       alert("Please fill in your Mortgage Balance to pay off!");
       document.Mortgage.Personal_information_Mortgage_amount.focus();
       return (false);
     }

     if (document.Mortgage.Personal_information_Mortgage_years_left.value == "") {
       alert("Please fill in your Mortgage years left!");
       document.Mortgage.Personal_information_Mortgage_years_left.focus();
       return (false);
     }
     
 
// Contact Information

 var Contact_me_by = false;
 for (var r = 0; r < document.all.Contact_me_by.length; r++)
   if (document.all.Contact_me_by(r).checked) { Contact_me_by = true }; 
 if (!Contact_me_by) { alert( "Please specify how do you want us to contact you!" ); return false;} 
 else if (document.all.Contact_me_by(0).checked) { 
         if (document.all.Contact_Address.value == "") {
           alert("Please fill in your Contact Address field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Address.focus();
           return (false);
         }
         if (document.all.Contact_City.value == "") {
           alert("Please fill in your Contact City field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_City.focus();
           return (false);
         }
         if (document.all.Contact_State.value == "") {
           alert("Please select your Contact State or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_State.focus();
           return (false);
         }
         if (document.all.Contact_Zip.value == "") {
           alert("Please fill in your Contact Zip Code field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Zip.focus();
           return (false);
         }
      }

if (document.all.Contact_me_by(1).checked) {
  if (document.all.Contact_email.value == "") {
    alert("Please fill in your Contact email address or Un-Check the Contact me by email checkbox!");
    document.all.Contact_email.focus();
    return (false);
  }
}

if (document.all.Contact_me_by(2).checked) {

  if (document.all.Home_Phone_Details.checked) { 
    if (document.all.Contact_Home_Phone.value == "") {
      alert("Please fill in the Home Phone Number to contact you or Un-Check the Home Phone checkbox!");
      document.all.Contact_Home_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_home.value == "") {
      alert("Please fill in the Best Day to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_day_to_call_home.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_home.value == "") {
      alert("Please fill in the Best Time to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_time_to_call_home.focus();
      return (false);
    }
  }
  if (document.all.Work_Phone_Details.checked) { 
    if (document.all.Contact_Work_Phone.value == "") {
      alert("Please fill in a Work Phone Number to contact you or Un-Check the Work Phone checkbox!");
      document.all.Contact_Work_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_work.value == "") {
      alert("Please fill in the Best Day to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_day_to_call_work.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_work.value == "") {
      alert("Please fill in the Best Time to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_time_to_call_work.focus();
      return (false);
    }
  }
  if (document.all.Other_Phone_Details.checked) { 
    if (document.all.Contact_Other_Phone.value == "") {
      alert("Please fill in the Other Phone Number to contact you or Un-Check the Other Phone checkbox!");
      document.all.Contact_Other_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_other.value == "") {
      alert("Please fill in the Best Day to Call you at the other phone number or Un-Check the Other Phone checkbox!");
      document.all.Best_day_to_call_other.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_other.value == "") {
      alert("Please fill in the Best Time to Call you at the other phone number field or Un-Check the Other Phone checkbox!");
      document.all.Best_time_to_call_other.focus();
      return (false);
    }
  }
}


}



function ValidateHealth() {

 if (document.Health_Quote.Applicant_Name.value == "") {
    alert("Please fill in the Applicant's Name field!");
    document.Health_Quote.Applicant_Name.focus();
    return (false);
 } else {
    document.Health_Quote.realname.value = document.Health_Quote.Applicant_Name.value;
 }


 if (document.Health_Quote.email.value == "") {
	alert("Please enter your Email address!");
	document.Health_Quote.email.focus();
	return (false);
 }
	
 var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@.-_";
 var checkStr = document.Health_Quote.email.value;
 var allValid = true;
 var Valid_email = false;
 for (i = 0;  i < checkStr.length;  i++) {
   ch = checkStr.charAt(i);
   for (j = 0;  j < checkOK.length;  j++)
     if (ch == checkOK.charAt(j)) {
       if (ch == '@') Valid_email = true;
//       alert("Valid_email="+Valid_email+'    checkOK.length='+checkOK.length+'    ch='+ch+'      checkStr.length='+checkStr.length);
       }
     }
     if (!Valid_email) allValid = false;
     if (!allValid) {
       alert("Please enter a VALID email address. (only letter, digit and \" @ . - _ \" characters).");
       document.Health_Quote.email.focus();
       return (false);
     }
     if (document.Health_Quote.Email_Confirmation.value == "") {
       alert("Please Confirm your Email address!");
       document.Health_Quote.Email_Confirmation.focus();
       return (false);
     }
     if (document.Health_Quote.email.value != document.Health_Quote.Email_Confirmation.value) {
       alert("Email Mismatch! Please double check your Email and the Email Confirmation!");
       document.Health_Quote.email.focus();
       return (false);
     }


     if (document.Health_Quote.Applicant_Address.value == "") {
       alert("Please fill in the Applicant's Address field!");
       document.Health_Quote.Applicant_Address.focus();
       return (false);
     }

     if (document.Health_Quote.Applicant_City.value == "") {
       alert("Please fill in the Applicant's City field!");
       document.Health_Quote.Applicant_City.focus();
       return (false);
     }

     if (document.Health_Quote.Applicant_State.value == "") {
       alert("Please select the Applicant's State!");
       document.Health_Quote.Applicant_State.focus();
       return (false);
     }

     if (document.Health_Quote.Applicant_Zip.value == "") {
       alert("Please fill in the Applicant's Zip field!");
       document.Health_Quote.Applicant_Zip.focus();
       return (false);
     }

     if (document.Health_Quote.Applicant_Home_Phone.value == "" && document.Health_Quote.Applicant_Work_Phone.value == "") {
       alert("Please submit a Home or Work Phone Number!");
       document.Health_Quote.Applicant_Home_Phone.focus();
       return (false);
     }

 var Currently_insured = false;
 for (var r = 0; r < document.Health_Quote.Applicant_Currently_insured.length; r++)
   if (document.Health_Quote.Applicant_Currently_insured(r).checked) { Currently_insured = true }; 
 if (!Currently_insured) { alert("Please specify if the Applicant is currently insured" ); return false;} 
 else if (document.Health_Quote.Applicant_Currently_insured(0).checked) { 
        if (document.Health_Quote.Applicant_Current_insurance_company.value == '') {
          alert("Please fill in the 'Applicant's Current insurance company' field!");
          document.Health_Quote.Applicant_Current_insurance_company.focus();
          return (false);
        }
        if (document.Health_Quote.Applicant_Current_policy_expiration_date.value == "") {
          alert("Please fill in the 'Applicant's Current policy expiration date' field!");
          document.Health_Quote.Applicant_Current_policy_expiration_date.focus();
          return (false);
        }
      }
  
if (document.Health_Quote.Additional_information_Zip.value == "") {
   alert("Please ZIP Code within 'Additional Information'.");
   document.Health_Quote.Additional_information_Zip.focus();
   return (false);
}

if (document.Health_Quote.Health_Coverage_for.value == "" && document.Health_Quote.Dental_Coverage_for.value == "") {
   alert("Please select at least one of 'Health Coverage' or 'Dental Coverage' options");
   document.Health_Quote.Health_Coverage_for.focus();
   return (false);
}
   

// Contact Information

 var Contact_me_by = false;
 for (var r = 0; r < document.all.Contact_me_by.length; r++)
   if (document.all.Contact_me_by(r).checked) { Contact_me_by = true }; 
 if (!Contact_me_by) { alert( "Please specify how do you want us to contact you!" ); return false;} 
 else if (document.all.Contact_me_by(0).checked) { 
         if (document.all.Contact_Address.value == "") {
           alert("Please fill in your Contact Address field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Address.focus();
           return (false);
         }
         if (document.all.Contact_City.value == "") {
           alert("Please fill in your Contact City field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_City.focus();
           return (false);
         }
         if (document.all.Contact_State.value == "") {
           alert("Please select your Contact State or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_State.focus();
           return (false);
         }
         if (document.all.Contact_Zip.value == "") {
           alert("Please fill in your Contact Zip Code field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Zip.focus();
           return (false);
         }
      }

if (document.all.Contact_me_by(1).checked) {
  if (document.all.Contact_email.value == "") {
    alert("Please fill in your Contact email address or Un-Check the Contact me by email checkbox!");
    document.all.Contact_email.focus();
    return (false);
  }
}

if (document.all.Contact_me_by(2).checked) {

  if (document.all.Home_Phone_Details.checked) { 
    if (document.all.Contact_Home_Phone.value == "") {
      alert("Please fill in the Home Phone Number to contact you or Un-Check the Home Phone checkbox!");
      document.all.Contact_Home_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_home.value == "") {
      alert("Please fill in the Best Day to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_day_to_call_home.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_home.value == "") {
      alert("Please fill in the Best Time to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_time_to_call_home.focus();
      return (false);
    }
  }
  if (document.all.Work_Phone_Details.checked) { 
    if (document.all.Contact_Work_Phone.value == "") {
      alert("Please fill in a Work Phone Number to contact you or Un-Check the Work Phone checkbox!");
      document.all.Contact_Work_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_work.value == "") {
      alert("Please fill in the Best Day to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_day_to_call_work.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_work.value == "") {
      alert("Please fill in the Best Time to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_time_to_call_work.focus();
      return (false);
    }
  }
  if (document.all.Other_Phone_Details.checked) { 
    if (document.all.Contact_Other_Phone.value == "") {
      alert("Please fill in the Other Phone Number to contact you or Un-Check the Other Phone checkbox!");
      document.all.Contact_Other_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_other.value == "") {
      alert("Please fill in the Best Day to Call you at the other phone number or Un-Check the Other Phone checkbox!");
      document.all.Best_day_to_call_other.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_other.value == "") {
      alert("Please fill in the Best Time to Call you at the other phone number field or Un-Check the Other Phone checkbox!");
      document.all.Best_time_to_call_other.focus();
      return (false);
    }
  }
}

}





function Validate_Employment() {


 if (document.Employment.Name.value == "") {
    alert("Please fill in the Your Name!");
    document.Employment.Name.focus();
    return (false);
 } else {
    document.Employment.realname.value = document.Employment.Name.value;
 }


 if (document.Employment.email.value == "") {
	alert("Please enter your Email address!");
	document.Employment.email.focus();
	return (false);
 }
	
 var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@.-_";
 var checkStr = document.Employment.email.value;
 var allValid = true;
 var Valid_email = false;
 for (i = 0;  i < checkStr.length;  i++) {
   ch = checkStr.charAt(i);
   for (j = 0;  j < checkOK.length;  j++)
     if (ch == checkOK.charAt(j)) {
       if (ch == '@') Valid_email = true;
//       alert("Valid_email="+Valid_email+'    checkOK.length='+checkOK.length+'    ch='+ch+'      checkStr.length='+checkStr.length);
       }
     }
     if (!Valid_email) allValid = false;
     if (!allValid) {
       alert("Please enter a VALID email address. (only letter, digit and \" @ . - _ \" characters).");
       document.Employment.email.focus();
       return (false);
     }
     if (document.Employment.Email_Confirmation.value == "") {
       alert("Please Confirm your Email address!");
       document.Employment.Email_Confirmation.focus();
       return (false);
     }
     if (document.Employment.email.value != document.Employment.Email_Confirmation.value) {
       alert("Email Mismatch! Please double check your Email and the Email Confirmation!");
       document.Employment.email.focus();
       return (false);
     }


     if (document.Employment.Address.value == "") {
       alert("Please fill in your Address!");
       document.Employment.Address.focus();
       return (false);
     }

     if (document.Employment.City.value == "") {
       alert("Please fill in your City!");
       document.Employment.City.focus();
       return (false);
     }

     if (document.Employment.State.value == "") {
       alert("Please select your State!");
       document.Employment.State.focus();
       return (false);
     }

     if (document.Employment.Zip.value == "") {
       alert("Please fill in your Zip code!");
       document.Employment.Zip.focus();
       return (false);
     }

     if (document.Employment.Home_Phone.value == "") {
       alert("Please fill in your Home Phone Number!");
       document.Employment.Home_Phone.focus();
       return (false);
     }

     if (document.Employment.Desired_Position.value == "") {
       alert("Please fill in your Desired Position!");
       document.Employment.Desired_Position.focus();
       return (false);
     }

     if (document.Employment.Intended_Start_Date.value == "") {
       alert("Please fill in your Intended Start Date!");
       document.Employment.Intended_Start_Date.focus();
       return (false);
     }

     if (document.Employment.Salary_Range.value == "") {
       alert("Please fill in the interested Salary Range!");
       document.Employment.Salary_Range.focus();
       return (false);
     }

 var Have_Fire_n_Casualty_insurance = false;
 for (var r = 0; r < document.Employment.Have_Fire_n_Casualty_insurance.length; r++)
   if (document.Employment.Have_Fire_n_Casualty_insurance(r).checked) { Have_Fire_n_Casualty_insurance = true }; 
 if (!Have_Fire_n_Casualty_insurance) { alert("Please specify if you have 'Fire and Casualty' insurance"); return false;} 

     if (document.Employment.SSN.value == "") {
       alert("Please fill in your Social Security Number (for verification porposes)!");
       document.Employment.SSN.focus();
       return (false);
     }

 var Have_applied_before = false;
 for (var r = 0; r < document.Employment.Have_applied_before.length; r++)
   if (document.Employment.Have_applied_before(r).checked) { Have_applied_before = true }; 
 if (!Have_applied_before) { alert("Please specify if you have Have applied before"); return false;} 

     if (document.Employment.Education.value == "") {
       alert("Please tell us about your Education!");
       document.Employment.Education.focus();
       return (false);
     }

     if (document.Employment.Total_years_of_school.value == "") {
       alert("Please tell us about your Total years of school!");
       document.Employment.Total_years_of_school.focus();
       return (false);
     }

     if (document.Employment.Last_school.value == "") {
       alert("Please fill in your Last school name!");
       document.Employment.Last_school.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Company.value == "") {
       alert("Please fill in your Last Employer Company Name!");
       document.Employment.Last_Employer_Company.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Contact_Name.value == "") {
       alert("Please tell us your Last Employer's Contact Name!");
       document.Employment.Last_Employer_Contact_Name.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Address.value == "") {
       alert("Please fill in your Last Employer's Address!");
       document.Employment.Last_Employer_Address.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Salary.value == "") {
       alert("Please tell us about your Salary with your Last Employer!");
       document.Employment.Last_Employer_Salary.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Start_Date.value == "") {
       alert("Please fill in your Last Employer Start Date!");
       document.Employment.Last_Employer_Start_Date.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Leaving_Date.value == "") {
       alert("Please give us the date you intend to leave your Last Employer!");
       document.Employment.Last_Employer_Leaving_Date.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Job_Title.value == "") {
       alert("Please tell us about your Job Title with your Last Employer!");
       document.Employment.Last_Employer_Job_Title.focus();
       return (false);
     }

     if (document.Employment.Last_Employer_Reason_for_leaving.value == "") {
       alert("Please tell us about the reason you leave your Last Employer!");
       document.Employment.Last_Employer_Reason_for_leaving.focus();
       return (false);
     }

}






function ModifyMotorcycles() {

  if (document.Quote.Applicant_Number_of_Motorcycles.value == "1") {
       document.Quote.Motorcycle2_Principle_Rider.value = "";
       document.Quote.Motorcycle2_Principle_Rider.disabled = true;
       document.Quote.Motorcycle2_Year.value = "";
       document.Quote.Motorcycle2_Year.disabled = true;
       document.Quote.Motorcycle2_Make.value = "";
       document.Quote.Motorcycle2_Make.disabled = true;
       document.Quote.Motorcycle2_Model.value = "";
       document.Quote.Motorcycle2_Model.disabled = true;
       document.Quote.Motorcycle2_CC.value = "";
       document.Quote.Motorcycle2_CC.disabled = true;
       document.Quote.Motorcycle2_Usage.value = "";
       document.Quote.Motorcycle2_Usage.disabled = true;
       document.Quote.Motorcycle2_Annual_Mileage.value = "";
       document.Quote.Motorcycle2_Annual_Mileage.disabled = true;
       document.Quote.Motorcycle2_OneWay_Miles.value = "";
       document.Quote.Motorcycle2_OneWay_Miles.disabled = true;
       document.Quote.Motorcycle2_Anti_Teft.value = "";
       for (var r = 0; r < document.Quote.Driver2_License_Ever_Suspended.length; r++) {
          document.Quote.Motorcycle2_Anti_Teft(r).checked = false; 
          document.Quote.Motorcycle2_Anti_Teft(r).disabled = true; }
       document.Quote.Motorcycle2_Parked_on.value = "";
       document.Quote.Motorcycle2_Parked_on.disabled = true;
       document.Quote.Motorcycle2_Lease_Company.value = "";
       document.Quote.Motorcycle2_Lease_Company.disabled = true;
  }
  if (document.Quote.Applicant_Number_of_Motorcycles.value == "2") {
       document.Quote.Motorcycle2_Principle_Rider.disabled = false;
       document.Quote.Motorcycle2_Year.disabled = false;
       document.Quote.Motorcycle2_Make.disabled = false;
       document.Quote.Motorcycle2_Model.disabled = false;
       document.Quote.Motorcycle2_CC.disabled = false;
       document.Quote.Motorcycle2_Usage.disabled = false;
       document.Quote.Motorcycle2_Annual_Mileage.disabled = false;
       document.Quote.Motorcycle2_OneWay_Miles.disabled = false;
       for (var r = 0; r < document.Quote.Driver2_License_Ever_Suspended.length; r++) 
          document.Quote.Motorcycle2_Anti_Teft(r).disabled = false; 
       document.Quote.Motorcycle2_Parked_on.disabled = false;
       document.Quote.Motorcycle2_Lease_Company.disabled = false;
  }
}


function ModifyDrivers() {

     if (document.Quote.Applicant_Number_of_Drivers.value == "1") {
       
       // Disable Second Driver   
       document.Quote.Driver2_First_Name.value = "";
       document.Quote.Driver2_First_Name.disabled = true;
       document.Quote.Driver2_Last_Name.value = "";
       document.Quote.Driver2_Last_Name.disabled = true;
       document.Quote.Driver2_Relationship_to_Applicant.value = "";
       document.Quote.Driver2_Relationship_to_Applicant.disabled = true;
       document.Quote.Driver2_BirthDate.value = "";
       document.Quote.Driver2_BirthDate.disabled = true;
       document.Quote.Driver2_Gender.value = "";
       document.Quote.Driver2_Gender.disabled = true;
       document.Quote.Driver2_Marital_Status.value = "";
       document.Quote.Driver2_Marital_Status.disabled = true;
       for (var r = 0; r < document.Quote.Driver2_in_Military.length; r++) {
         document.Quote.Driver2_in_Military(r).checked = false; 
         document.Quote.Driver2_in_Military(r).disabled = true; }
       document.Quote.Driver2_Occupation.value = "";
       document.Quote.Driver2_Occupation.disabled = true;
        for (var r = 0; r < document.Quote.Driver2_State_Licensed.length; r++) {
          document.Quote.Driver2_State_Licensed(r).checked = false; 
          document.Quote.Driver2_State_Licensed(r).disabled = true; }
        for (var r = 0; r < document.Quote.Driver2_License_Ever_Suspended.length; r++) {
           document.Quote.Driver2_License_Ever_Suspended(r).checked = false; 
           document.Quote.Driver2_License_Ever_Suspended(r).disabled = true; }
       document.Quote.Driver2_License_Suspended_Date.value = "";
       document.Quote.Driver2_License_Suspended_Date.disabled = true;
       document.Quote.Driver2_License_Reinstated_Date.value = "";
       document.Quote.Driver2_License_Reinstated_Date.disabled = true;
        for (var r = 0; r < document.Quote.Driver2_SR22_Needed.length; r++) {
          document.Quote.Driver2_SR22_Needed(r).checked = false; 
          document.Quote.Driver2_SR22_Needed(r).disabled = true; }
       document.Quote.Driver2_Tickets.value = "";
       document.Quote.Driver2_Tickets.disabled = true;
       document.Quote.Driver2_Accidents.value = "";
       document.Quote.Driver2_Accidents.disabled = true;
       document.Quote.Driver2_Major_Violations.value = "";
       document.Quote.Driver2_Major_Violations.disabled = true;
       document.Quote.Driver2_Comments.value = "";
       document.Quote.Driver2_Comments.disabled = true;

     } else if (document.Quote.Applicant_Number_of_Drivers.value == "2") {
     
       // Enable Second Driver   
       document.Quote.Driver2_First_Name.disabled = false;
       document.Quote.Driver2_Last_Name.disabled = false;
       document.Quote.Driver2_Relationship_to_Applicant.disabled = false;
       document.Quote.Driver2_BirthDate.disabled = false;
       document.Quote.Driver2_Gender.disabled = false;
       document.Quote.Driver2_Marital_Status.disabled = false;
       for (var r = 0; r < document.Quote.Driver2_in_Military.length; r++) 
         document.Quote.Driver2_in_Military(r).disabled = false; 
       document.Quote.Driver2_Occupation.disabled = false;
        for (var r = 0; r < document.Quote.Driver2_State_Licensed.length; r++) 
          document.Quote.Driver2_State_Licensed(r).disabled = false; 
        for (var r = 0; r < document.Quote.Driver2_License_Ever_Suspended.length; r++) 
           document.Quote.Driver2_License_Ever_Suspended(r).disabled = false; 
       document.Quote.Driver2_License_Suspended_Date.disabled = false;
       document.Quote.Driver2_License_Reinstated_Date.disabled = false;
        for (var r = 0; r < document.Quote.Driver2_SR22_Needed.length; r++) 
          document.Quote.Driver2_SR22_Needed(r).disabled = false; 
       document.Quote.Driver2_Tickets.disabled = false;
       document.Quote.Driver2_Accidents.disabled = false;
       document.Quote.Driver2_Major_Violations.disabled = false;
       document.Quote.Driver2_Comments.disabled = false;

     } 

}



function ValidateForm() {

 if (document.Quote.Applicant_Name.value == "") {
    alert("Please fill in the Applicant's Name field!");
    document.Quote.Applicant_Name.focus();
    return (false);
 } else {
    document.Quote.realname.value = document.Quote.Applicant_Name.value;
 }


 if (document.Quote.email.value == "") {
	alert("Please enter your Email address!");
	document.Quote.email.focus();
	return (false);
 }
	
 var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@.-_";
 var checkStr = document.Quote.email.value;
 var allValid = true;
 var Valid_email = false;
 for (i = 0;  i < checkStr.length;  i++) {
   ch = checkStr.charAt(i);
   for (j = 0;  j < checkOK.length;  j++)
     if (ch == checkOK.charAt(j)) {
       if (ch == '@') Valid_email = true;
//       alert("Valid_email="+Valid_email+'    checkOK.length='+checkOK.length+'    ch='+ch+'      checkStr.length='+checkStr.length);
       }
     }
     if (!Valid_email) allValid = false;
     if (!allValid) {
       alert("Please enter a VALID email address. (only letter, digit and \" @ . - _ \" characters).");
       document.Quote.email.focus();
       return (false);
     }
     if (document.Quote.Email_Confirmation.value == "") {
       alert("Please Confirm your Email address!");
       document.Quote.Email_Confirmation.focus();
       return (false);
     }
     if (document.Quote.email.value != document.Quote.Email_Confirmation.value) {
       alert("Email Mismatch! Please double check your Email and the Email Confirmation!");
       document.Quote.email.focus();
       return (false);
     }


     if (document.Quote.Applicant_Address.value == "") {
       alert("Please fill in the Applicant's Address field!");
       document.Quote.Applicant_Address.focus();
       return (false);
     }

     if (document.Quote.Applicant_City.value == "") {
       alert("Please fill in the Applicant's City field!");
       document.Quote.Applicant_City.focus();
       return (false);
     }

     if (document.Quote.Applicant_State.value == "") {
       alert("Please select the Applicant's State!");
       document.Quote.Applicant_State.focus();
       return (false);
     }

     if (document.Quote.Applicant_Zip.value == "") {
       alert("Please fill in the Applicant's Zip field!");
       document.Quote.Applicant_Zip.focus();
       return (false);
     }

     if (document.Quote.Applicant_Home_Phone.value == "" && document.Quote.Applicant_Work_Phone.value == "") {
       alert("Please submit a Home or Work Phone Number!");
       document.Quote.Applicant_Home_Phone.focus();
       return (false);
     }


 var Currently_insured = false;
 for (var r = 0; r < document.Quote.Applicant_Currently_insured.length; r++)
   if (document.Quote.Applicant_Currently_insured(r).checked) { Currently_insured = true }; 
 if (!Currently_insured) { alert("Please specify if the Applicant is currently insured" ); return false;} 
 else if (document.Quote.Applicant_Currently_insured(0).checked) { 
        if (document.Quote.Applicant_Current_insurance_company.value == '') {
          alert("Please fill in the 'Applicant's Current insurance company' field!");
          document.Quote.Applicant_Current_insurance_company.focus();
          return (false);
        }
        if (document.Quote.Applicant_Current_policy_expiration_date.value == "") {
          alert("Please fill in the 'Applicant's Current policy expiration date' field!");
          document.Quote.Applicant_Current_policy_expiration_date.focus();
          return (false);
        }
      }
     
     if (document.Quote.Applicant_Number_of_Drivers.value == "") {
       alert("Please select the Number of Drivers!");
       document.Quote.Applicant_Number_of_Drivers.focus();
       return (false);
     }
     
     if (document.Quote.Applicant_Number_of_Motorcycles.value == "") {
       alert("Please select the Number of Motorcycles!");
       document.Quote.Applicant_Number_of_Motorcycles.focus();
       return (false);
     }

// First Driver   

     if (document.Quote.Driver1_First_Name.value == "") {
       alert("Please fill in the First Name of the First Rider!");
       document.Quote.Driver1_First_Name.focus();
       return (false);
     }
     
     if (document.Quote.Driver1_Last_Name.value == "") {
       alert("Please fill in the Last Name of the First Rider!");
       document.Quote.Driver1_Last_Name.focus();
       return (false);
     }
     
     if (document.Quote.Driver1_Relationship_to_Applicant.value == "") {
       alert("Please fill in the First Rider's Relationship to the Applicant!");
       document.Quote.Driver1_Relationship_to_Applicant.focus();
       return (false);
     }
     
     if (document.Quote.Driver1_BirthDate.value == "") {
       alert("Please fill in the First Rider's Birth Date!");
       document.Quote.Driver1_BirthDate.focus();
       return (false);
     }
     
     if (document.Quote.Driver1_Gender.value == "") {
       alert("Please fill in the First Rider's Gender!");
       document.Quote.Driver1_Gender.focus();
       return (false);
     }
     
     if (document.Quote.Driver1_Marital_Status.value == "") {
       alert("Please specify First Rider's Marital Status!");
       document.Quote.Driver1_Marital_Status.focus();
       return (false);
     }
     
 var in_Military = false;
 for (var r = 0; r < document.Quote.Driver1_in_Military.length; r++)
   if (document.Quote.Driver1_in_Military(r).checked) { in_Military = true }; 
 if (!in_Military) { alert( "Please specify if the First Rider is in Military!" ); return false;} 
   
     if (document.Quote.Driver1_Occupation.value == "") {
       alert("Please specify the First Rider's Occupation!");
       document.Quote.Driver1_Occupation.focus();
       return (false);
     }
     
 var State_Licensed = false;
 for (var r = 0; r < document.Quote.Driver1_State_Licensed.length; r++)
   if (document.Quote.Driver1_State_Licensed(r).checked) { State_Licensed = true }; 
 if (!State_Licensed) { alert( "Please specify if the First Rider is State Licensed!" ); return false;} 

 if (document.Quote.Driver1_State_Licensed(0).checked) {   
  var Ever_Suspended = false;
  for (var r = 0; r < document.Quote.Driver1_License_Ever_Suspended.length; r++)
    if (document.Quote.Driver1_License_Ever_Suspended(r).checked) { Ever_Suspended = true }; 
  if (!Ever_Suspended) { alert( "Please specify if the First Rider's License has Ever been Suspended!" ); return false;} 
  else if (document.Quote.Driver1_License_Ever_Suspended(0).checked) { 
         if (document.Quote.Driver1_License_Suspended_Date.value == "") {
           alert("Please fill in the First Rider's License Suspended Date!");
           document.Quote.Driver1_License_Suspended_Date.focus();
           return (false);
         }
         if (document.Quote.Driver1_License_Reinstated_Date.value == "") {
           alert("Please fill in the First Rider's License Reinstated Date!");
           document.Quote.Driver1_License_Reinstated_Date.focus();
           return (false);
         }
       }
 }
   
 var SR22_Needed = false;
 for (var r = 0; r < document.Quote.Driver1_SR22_Needed.length; r++)
   if (document.Quote.Driver1_SR22_Needed(r).checked) { SR22_Needed = true }; 
 if (!SR22_Needed) { alert( "Please specify if the First Rider needs an SR22!" ); return false;} 
          
     
// Motorcycle Information
   
   
   
     if (document.Quote.Principle_Rider.value == "") {
       alert("Please select the Principle Rider!");
       document.Quote.Principle_Rider.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_Year.value == "") {
       alert("Please fill in the Year of the Motorcycle field!");
       document.Quote.Motorcycle_Year.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_Make.value == "") {
       alert("Please fill in the Make of the Motorcycle field!");
       document.Quote.Motorcycle_Make.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_Model.value == "") {
       alert("Please fill in the Model of the Motorcycle field!");
       document.Quote.Motorcycle_Model.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_CC.value == "") {
       alert("Please fill in the CC of the Motorcycle field!");
       document.Quote.Motorcycle_CC.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_Usage.value == "") {
       alert("Please fill in the Usage of the Motorcycle field!");
       document.Quote.Motorcycle_Usage.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_Annual_Mileage.value == "") {
       alert("Please fill in the Annual Mileage of the Motorcycle field!");
       document.Quote.Motorcycle_Annual_Mileage.focus();
       return (false);
     }
     if (document.Quote.Motorcycle_OneWay_Miles.value == "") {
       alert("Please fill in the OneWay Miles of the Motorcycle field!");
       document.Quote.Motorcycle_OneWay_Miles.focus();
       return (false);
     }

 var Anti_Teft = false;
 for (var r = 0; r < document.Quote.Motorcycle_Anti_Teft.length; r++)
   if (document.Quote.Motorcycle_Anti_Teft(r).checked) { Anti_Teft = true }; 
 if (!Anti_Teft) { alert( "Please specify if the Motorcycle has an Anti Teft Alarm!" ); return false;} 

     if (document.Quote.Motorcycle_Parked_on.value == "") {
       alert("Please specify where is the Motorcycle parked overnight!");
       document.Quote.Motorcycle_Parked_on.focus();
       return (false);
     }


// Insurance Information

 var Insurance_Coverage = false;
 for (var r = 0; r < document.Quote.Insurance_Coverage.length; r++)
   if (document.Quote.Insurance_Coverage(r).checked) { Insurance_Coverage = true }; 
 if (!Insurance_Coverage) { alert( "Please specify the Insurance Coverage you need!" ); return false;} 
 else if (document.Quote.Insurance_Coverage(0).checked) { 
        if (document.Quote.Insurance_AJ_Smart_Quote.value == "") {
          alert("Please make a selection from AJ Smart Quotes Options!");
          document.Quote.Insurance_AJ_Smart_Quote.focus();
          return (false);
        }
      } else {
         if (document.Quote.Insurance_LBI.value == "") {
           alert("Please fill in the Liability Insurance field!");
           document.Quote.Insurance_LBI.focus();
           return (false);
         }
         if (document.Quote.Insurance_LPD.value == "") {
           alert("Please fill in the Liability Property Damage Insurance field!");
           document.Quote.Insurance_LPD.focus();
           return (false);
         }
         if (document.Quote.Insurance_MC.value == "") {
           alert("Please fill in the Medical Coverage field!");
           document.Quote.Insurance_MC.focus();
           return (false);
         }
         if (document.Quote.Insurance_UMBI.value == "") {
           alert("Please fill in the Uninsure Motorist Bodily Insurance field!");
           document.Quote.Insurance_UMBI.focus();
           return (false);
         }
         var Insurance_UMPD = false;
          for (var r = 0; r < document.Quote.Insurance_UMPD.length; r++)
            if (document.Quote.Insurance_UMPD(r).checked) { Insurance_UMPD = true }; 
          if (!Insurance_UMPD) { alert( "Please specify if you need Uninsure Motorist Property Damage!" ); return false;} 
         
              if (document.Quote.Insurance_Comprehensive_Deductable.value == "") {
                alert("Please fill in the Comprehensive Deductable field!");
                document.Quote.Insurance_Comprehensive_Deductable.focus();
                return (false);
              }
              if (document.Quote.Insurance_Collision_Deductable.value == "") {
                alert("Please fill in the Collision Deductable field!");
                document.Quote.Insurance_Collision_Deductable.focus();
                return (false);
              }
      }


// Contact Information

 var Contact_me_by = false;
 for (var r = 0; r < document.all.Contact_me_by.length; r++)
   if (document.all.Contact_me_by(r).checked) { Contact_me_by = true }; 
 if (!Contact_me_by) { alert( "Please specify how do you want us to contact you!" ); return false;} 
 else if (document.all.Contact_me_by(0).checked) { 
         if (document.all.Contact_Address.value == "") {
           alert("Please fill in your Contact Address field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Address.focus();
           return (false);
         }
         if (document.all.Contact_City.value == "") {
           alert("Please fill in your Contact City field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_City.focus();
           return (false);
         }
         if (document.all.Contact_State.value == "") {
           alert("Please select your Contact State or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_State.focus();
           return (false);
         }
         if (document.all.Contact_Zip.value == "") {
           alert("Please fill in your Contact Zip Code field or Un-Check the Contact me by Mail checkbox!");
           document.all.Contact_Zip.focus();
           return (false);
         }
      }

if (document.all.Contact_me_by(1).checked) {
  if (document.all.Contact_email.value == "") {
    alert("Please fill in your Contact email address or Un-Check the Contact me by email checkbox!");
    document.all.Contact_email.focus();
    return (false);
  }
}

if (document.all.Contact_me_by(2).checked) {

  if (document.all.Home_Phone_Details.checked) { 
    if (document.all.Contact_Home_Phone.value == "") {
      alert("Please fill in the Home Phone Number to contact you or Un-Check the Home Phone checkbox!");
      document.all.Contact_Home_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_home.value == "") {
      alert("Please fill in the Best Day to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_day_to_call_home.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_home.value == "") {
      alert("Please fill in the Best Time to Call Home field or Un-Check the Home Phone checkbox!");
      document.all.Best_time_to_call_home.focus();
      return (false);
    }
  }
  if (document.all.Work_Phone_Details.checked) { 
    if (document.all.Contact_Work_Phone.value == "") {
      alert("Please fill in a Work Phone Number to contact you or Un-Check the Work Phone checkbox!");
      document.all.Contact_Work_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_work.value == "") {
      alert("Please fill in the Best Day to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_day_to_call_work.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_work.value == "") {
      alert("Please fill in the Best Time to Call Work field or Un-Check the Work Phone checkbox!");
      document.all.Best_time_to_call_work.focus();
      return (false);
    }
  }
  if (document.all.Other_Phone_Details.checked) { 
    if (document.all.Contact_Other_Phone.value == "") {
      alert("Please fill in the Other Phone Number to contact you or Un-Check the Other Phone checkbox!");
      document.all.Contact_Other_Phone.focus();
      return (false);
    }
    if (document.all.Best_day_to_call_other.value == "") {
      alert("Please fill in the Best Day to Call you at the other phone number or Un-Check the Other Phone checkbox!");
      document.all.Best_day_to_call_other.focus();
      return (false);
    }
    if (document.all.Best_time_to_call_other.value == "") {
      alert("Please fill in the Best Time to Call you at the other phone number field or Un-Check the Other Phone checkbox!");
      document.all.Best_time_to_call_other.focus();
      return (false);
    }
  }
}

 return (true);

}


