function Form1_Validator(theForm)

{

  if (theForm.FullName.value == "")
  {
    alert("Please insert a value for the \"Full Name/Company\" field");
    theForm.FullName.focus();
    return (false);
  }
  
  var re_not_all = /^([a-zA-Z\. '])+$/;

if (!re_not_all.test(theForm.FullName.value)) {
	alert("Pay attention: The field \"Full Name/Company\" can only contain text");
	theForm.FullName.focus();
	return (false);
}
  
       if (theForm.Email.value == "")
  {
    alert("Please insert a value for the \"E-mail\" field");
    theForm.Email.focus();
    return (false);
  }

	var stato=true;
	if(theForm.Email.value.indexOf(" ")!=-1) {
	theForm.Email.focus();
	stato=false;
	}
	var chiocciola=theForm.Email.value.indexOf("@");
	if(chiocciola<2) {
	theForm.Email.focus();
	stato=false;
	}
	var punto=theForm.Email.value.indexOf(".", chiocciola);
	if(punto<chiocciola+3) {
	theForm.Email.focus();
	stato=false;
	}
	var lung=theForm.Email.value.length;
	if(lung-punto<3) {
	theForm.Email.focus();
	stato=false;
	}

	if(stato==false) {
		alert("Pay attention: The field \"E-mail\" is not valid");
	return stato;
	}
  
      if (theForm.Message.value == "")
  {
    alert("Please insert a value for the \"Message\" field");
    theForm.Message.focus();
    return (false);
  }
     
	    if (theForm.securitycode.value == "")
  {
    alert("Please insert a value for the \"Security code Anti-Spam\" field");
    theForm.securitycode.focus();
    return (false);
  }
  
  var numero = theForm.securitycode.value;
  
if (isNaN(numero)) {
alert("Pay attention: The field \"Security code Anti-Spam\" can only contain number");
	theForm.securitycode.focus();
	return (false);
}
 
  
  if (theForm.check.checked == "0")
  {
    alert("Pay attention: Youn need to confirm that you have read and allow the law about Personal Data");
    theForm.check.focus();
    return (false);
  }

  return (true);
}






