<!--
function validate(form)
{

//****************************************************************************************  
//check the First Name for blank and characters

if (form.name.value.length < 1)
  {
    alert("Please enter your name.");
    form.name.select();
    form.name.focus();
    return false;
  }
  
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-, ";
  var checkStr = form.name.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
      if (j == checkOK.length)
      {
      allValid = false;
     break;
      }
  }
  if (!allValid)
  {
    alert("Please enter only letters, whitespace and \"-\" characters in the first name field.");
    form.name.select();
    form.name.focus();
    return false;
  }

//****************************************************************************************  
//check the Company for blank
if (form.company.value.length < 1)
  {
    alert("Please enter your company.");
    form.company.select();
    form.company.focus();
    return false;
  }

//****************************************************************************************  
//check the Title for blank
if (form.title.value.length < 1)
  {
    alert("Please enter your job title.");
    form.title.select();
    form.title.focus();
    return false;
  }

//****************************************************************************************  
//check the Phone for blank and characters

if (form.phone.value.length < 10)
  {
    alert("Please enter your 10-digit phone number.");
    form.phone.select();
    form.phone.focus();
    return false;
  }  

  var checkOK = "0123456789";
  var checkStr = form.phone.value;
  var allValid = true;
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
      if (j == checkOK.length)
      {
      allValid = false;
     break;
      }
  }
  if (!allValid)
  {
    alert("Please enter only numbers in the Phone Number field.");
    form.phone.select();
    form.phone.focus();
    return false;
  }  

//****************************************************************************************
//check the E-Mail Address

if (!(/^[\w-]+(\.[\w-]+)*@([\w-]+\.)+[a-zA-Z]{2,7}$/.test(form.email.value)))
  {
   alert("The e-mail address is blank or does not appear to be valid.  Please re-enter.");
   form.email.select();
   form.email.focus();
   return false;
  }

return true;
}
//-->
