// <!--
function validateForm(theForm)
{
     var isPhone = /[0-9]{3}-[0-9]{3}-[0-9]{4}/i;  //000-000-0000
     var s = theForm.DaytimePhone.value;
     var isEmail = /^[a-z][a-z0-9]*([.\-_][a-z][a-z0-9]*)*@([a-z][a-z0-9]*.)*([a-z]{2}|com|net|org|biz|gov|pro|int|mil|edu|info|name|aero|coop|museum)$/i;
     if(theForm.Name.value.split(" ").join("") == "")
     {
          alert("Please enter your Name.");
          theForm.Name.select();
          theForm.Name.focus();
          return (false);
     }
     if(theForm.Name.value.length > 70)
     {
          alert("Please enter at most 70 characters in the Name field.");
         theForm.Name.focus();
         return (false);
     }
     if(theForm.EmailAddress.value.split(" ").join("") == "")
     {
          alert("Please enter a Email Address.");
          theForm.EmailAddress.select();
          theForm.EmailAddress.focus();
          return (false);
     }
     if (!isEmail.test(theForm.EmailAddress.value))
     {
         alert("The Email Address is NOT in the corect format.");
         theForm.EmailAddress.focus();
         return (false);
     }
      if (theForm.EmailAddress.value.length > 35)
       {
         alert("Please enter at most 35 characters in the Email Address field.");
         theForm.EmailAddress.focus();
         return (false);
       }
     if (theForm.DaytimePhone.value.split(" ").join("") == "")
     {
          alert("Please enter a Daytime Phone Number.");
          theForm.DaytimePhone.select();
          theForm.DaytimePhone.focus();
          return (false);
     }
     if (isPhone.exec(s) > -1)
     {
          alert("The Phone Number is NOT in the correct format:\n...000-000-0000.");
          theForm.DaytimePhone.focus();
          return (false);
     }
     if (theForm.DaytimePhone.value.length > 14)
     {
          alert("Please enter at most 14 characters in the \"Daytime Phone\" field.");
          theForm.DaytimePhone.focus();
          return (false);
     }
     return (true);
}
// -->

