function FrontPage_Form1_Validator(theForm)
{

  if (theForm.y_name.value == "")
  {
    alert("Please enter a value for the \"Your name\" field.");
    theForm.y_name.focus();
    return (false);
  }

  if (theForm.y_name.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"Your name\" field.");
    theForm.y_name.focus();
    return (false);
  }
  
  if (theForm.y_email.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.y_email.focus();
    return (false);
  }

  if (theForm.y_email.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"Email Address\" field.");
    theForm.y_email.focus();
    return (false);
  }
  
  if (theForm.y_email)
  {
  var filter = /^[A-Za-z0-9][A-Za-z0-9\_\-\.]*\@[A-Za-z0-9][A-Za-z0-9\_\-\.]*\.[A-Za-z]{2,3}$/;
  var filter2 = /^.*[\.\@\_\-][\.\@\_\-]+.*$/;
  if( (!filter.test( theForm.y_email.value ))  || ( filter2.test( theForm.y_email.value )) )
	{
	alert( "Please enter a valid Email address." )
	theForm.y_email.focus();
	return false;
    }
  }


  if (theForm.y_address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.y_address.focus();
    return (false);
  }

  if (theForm.y_address.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Address\" field.");
    theForm.y_address.focus();
    return (false);
  }
        

  if (theForm.y_zip.value == "")
  {
    alert("Please enter a value for the \"Zip / Post Code\" field.");
    theForm.y_zip.focus();
    return (false);
  }

  if (theForm.y_zip.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"Zip / Post Code\" field.");
    theForm.y_zip.focus();
    return (false);
  }
  
  if (theForm.y_country.value == "")
  {
    alert("Please enter a value for the \"Country\" field.");
    theForm.y_country.focus();
    return (false);
  }

  if (theForm.y_country.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"Country\" field.");
    theForm.y_country.focus();
    return (false);
  }
  
  if (theForm.s_domain.value == "")
  {
    alert("Please enter a value for the \"Domain name\" field.");
    theForm.s_domain.focus();
    return (false);
  }

  if (theForm.s_domain.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Domain name\" field.");
    theForm.s_domain.focus();
    return (false);
  }
  
  if (theForm.s_description.value == "")
  {
    alert("Please enter a value for the \"Site Description\" field.");
    theForm.s_description.focus();
    return (false);
  }

  if (theForm.s_description.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"Site Description\" field.");
    theForm.s_description.focus();
    return (false);
  }

  if (theForm.s_user.value == "")
  {
    alert("Please enter a value for the \"User Name\" field.");
    theForm.s_user.focus();
    return (false);
  }

  if (theForm.s_user.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"User Name\" field.");
    theForm.s_user.focus();
    return (false);
  }
  
  if (theForm.s_pass.value == "")
  {
    alert("Please enter a value for the \Password\" field.");
    theForm.s_pass.focus();
    return (false);
  }

  if (theForm.s_pass.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"Password\" field.");
    theForm.s_pass.focus();
    return (false);
  }

}