function Validator(theForm)
{

  if (theForm.Message.value == "")
  {
    alert("Please enter a value for the \"Message\" field.");
    theForm.Message.focus();
    return (false);
  }

  if (theForm.SName.value == "")
  {
    alert("Please enter a value for the \"SName\" field.");
    theForm.SName.focus();
    return (false);
  }

  if (theForm.SName.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"SName\" field.");
    theForm.SName.focus();
    return (false);
  }

  if (theForm.SName.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"SName\" field.");
    theForm.SName.focus();
    return (false);
  }

  if (theForm.FName.value == "")
  {
    alert("Please enter a value for the \"FName\" field.");
    theForm.FName.focus();
    return (false);
  }

  if (theForm.FName.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"FName\" field.");
    theForm.FName.focus();
    return (false);
  }

  if (theForm.FName.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"FName\" field.");
    theForm.FName.focus();
    return (false);
  }

  if (theForm.Emailadd.value == "")
  {
    alert("Please enter a value for the \"Emailadd\" field.");
    theForm.Emailadd.focus();
    return (false);
  }

  if (theForm.Emailadd.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Emailadd\" field.");
    theForm.Emailadd.focus();
    return (false);
  }

  if (theForm.Emailadd.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"Emailadd\" field.");
    theForm.Emailadd.focus();
    return (false);
  }

  if (theForm.Telephone.value == "")
  {
    alert("Please enter a value for the \"Telephone\" field.");
    theForm.Telephone.focus();
    return (false);
  }

  if (theForm.Telephone.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Telephone\" field.");
    theForm.Telephone.focus();
    return (false);
  }

  if (theForm.Telephone.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Telephone\" field.");
    theForm.Telephone.focus();
    return (false);
  }

  if (theForm.Sspam.value == "")
  {
    alert("Please enter a value for the \"Sspam\" field.");
    theForm.Sspam.focus();
    return (false);
  }

  if (theForm.Sspam.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Sspam\" field.");
    theForm.Sspam.focus();
    return (false);
  }

  if (theForm.Sspam.value.length > 5)
  {
    alert("Please enter at most 5 characters in the \"Sspam\" field.");
    theForm.Sspam.focus();
    return (false);
  }

  var chkVal = theForm.Sspam.value;
  var prsVal = chkVal;
  if (chkVal != "" && !(prsVal == "21476"))
  {
    alert("Please enter a value equal to \"21476\" in the \"Sspam\" field.");
    theForm.Sspam.focus();
    return (false);
  }
  return (true);
}
