function Validator(theForm)
{
 
  if (theForm.No_Ad.value == "")
  {
    alert("Please enter a value for the \"No_Ad\" field.");
    theForm.No_Ad.focus();
    return (false);
  }
 
  if (theForm.No_Ad.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"No_Ad\" field.");
    theForm.No_Ad.focus();
    return (false);
  }
 
  if (theForm.No_Ad.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"No_Ad\" field.");
    theForm.No_Ad.focus();
    return (false);
  }
 
  if (theForm.No_Ch.value == "")
  {
    alert("Please enter a value for the \"No_Ch\" field.");
    theForm.No_Ch.focus();
    return (false);
  }
 
  if (theForm.No_Ch.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"No_Ch\" field.");
    theForm.No_Ch.focus();
    return (false);
  }
 
  if (theForm.No_Ch.value.length > 100)
  {
    alert("Please enter at most 100 characters in the \"No_Ch\" field.");
    theForm.No_Ch.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 < 1)
  {
    alert("Please enter at least 1 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 < 1)
  {
    alert("Please enter at least 1 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.Cell_no.value == "")
  {
    alert("Please enter a value for the \"Cell_no\" field.");
    theForm.Cell_no.focus();
    return (false);
  }
 
  if (theForm.Cell_no.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Cell_no\" field.");
    theForm.Cell_no.focus();
    return (false);
  }
 
  if (theForm.Cell_no.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"Cell_no\" field.");
    theForm.Cell_no.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 < 1)
  {
    alert("Please enter at least 1 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.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 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);
}


