function checkForm(theForm){

  if (theForm.Name.value == "")  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Email.value == "")  {
    alert("Please enter a value for the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  if (theForm.Email.value.length < 7)  {
    alert("Please enter at least 7 characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  var checkOK = "@";
  var checkStr = theForm.Email.value;
  var allValid = false;
  for (i = 0;  i < checkStr.length;  i++)  {
    ch = checkStr.charAt(i);
    if (ch == checkOK)    {
      allValid = true;
      break;
    }
  }
  
  if (!allValid)  {
    alert("Please include the \"@\" character in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  var checkOK = ".";
  var checkStr = theForm.Email.value;
  var allValid = false;
  for (i = 0;  i < checkStr.length;  i++)  {
    ch = checkStr.charAt(i);
    if (ch == checkOK)    {
      allValid = true;
      break;
    }
  }
  
  if (!allValid)  {
    alert("Please include \".\" characters in the \"Email\" field.");
    theForm.Email.focus();
    return (false);
  }

  
  if (theForm.Phone.value == "")  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.Phone.focus();
    return (false);
  }

  return (true);
}

