function Validator(theForm)
{

  if (theForm.Name1.value == "")
  {
    alert("You need to enter your Name");
    theForm.Name1.focus();
    return (false);
  }

  if (theForm.Surname1.value == "")
  {
    alert("You need to enter your Surname");
    theForm.Surname1.focus();
    return (false);
  }

  
if (theForm.Email1.value.indexOf("@", 0) < 0)
{
    window.alert("Please enter a valid e-mail address.");
     theForm.Email1.focus();
    return false;
}


  if (theForm.SSTop.value == "")
  {
    alert("Incorrect value in the Spam filter");
    theForm.SSTop.focus();
    return (false);
  }

  if (theForm.SSTop.value.length < 6)
  {
    alert("Incorrect value in the Spam filter");
    theForm.SSTop.focus();
    return (false);
  }

  if (theForm.SSTop.value.length > 6)
  {
    alert("Incorrect value in the Spam filter");
    theForm.SSTop.focus();
    return (false);
  }

  var chkVal = theForm.SSTop.value;
  var prsVal = chkVal;
  if (chkVal != "" && !(prsVal == "148878"))
  {
    alert("Incorrect value in the Spam filter");
    theForm.SSTop.focus();
    return (false);
  }
  return (true);
}