// JavaScript Document
function Form_Validator(theForm)
{
	
if (theForm.sur.value == "")
  {
    alert("Please enter a value for the \"Family name\" field.");
    theForm.sur.focus();
    return (false);
  }

  if (theForm.e_mail.value == "")
  {
    alert("Please enter a value for the \"E-mail\" field.");
    theForm.e_mail.focus();
    return (false);
  }

  var pattern = /.+@.+(\.).+/; 
  if (theForm.e_mail.value.search(pattern) == -1) 
  { 
    alert("Please enter a valid E-mail address."); 
    theForm.e_mail.focus(); 
    return (false); 
  }


  return (true); 
}
