// JavaScript Document

function FrontPage_Form1_Validator(theForm) {
	

	var counter=0;
	var invalidChar = ":.;<>\"'|-_òàù+èé*§°ç@#[]!£$%&/()=?^ì";
	var invalidChar2 = "qwertyuioplkjhgfdsazxcvbnmMNBVCXZASDFGHJKLPOIUYTREWQ:.;<>\"'|-_òàù+èé*§°ç@#[]!£$%&/()=?^ì";
	var badChar;
	var espressione = /^[_a-z0-9+-]+(\.[_a-z0-9+-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$/;

   if (theForm.nome.value == "")
		{
		alert("Campo \"Nome\" e' obbligatorio");
    theForm.nome.focus();
		return (false);
    }
	
	  if (theForm.cognome.value == "")
		{
		alert("Campo \"Cognome\" e' obbligatorio");
    theForm.cognome.focus();
		return (false);
    }
	
		  if (theForm.indirizzo.value == "")
		{
		alert("Campo \"indirizzo\" e' obbligatorio");
    theForm.indirizzo.focus();
		return (false);
    }
	
	
	
   if (theForm.comune.value == "")
		{
		alert("Campo \"Comune\" e' obbligatorio");
    theForm.comune.focus();
		return (false);
    }
	
  if (theForm.provincia.value == "")
		{
		alert("Campo \"Provincia\" e' obbligatorio");
    theForm.provincia.focus();
		return (false);
    }

    
  if (theForm.cap.value == "")
		{
		alert("Campo \"Cap\" e' obbligatorio");
    theForm.cap.focus();
		return (false);
    }

  if (theForm.telefono.value == "")
		{
		alert("Campo \"Telefono\" e' obbligatorio");
    theForm.telefono.focus();
		return (false);
    }
	
	
	  if (theForm.email.value == "")
		{
		alert("Campo \"E-mail\" e' obbligatorio");
    theForm.email.focus();
		return (false);
    }
	
		  if (theForm.titolo.value == "")
		{
		alert("Campo \"Titolo\" e' obbligatorio");
    theForm.titolo.focus();
		return (false);
    }
	
	
		  if (theForm.foto.value == "")
		{
		alert("Campo \"Foto\" e' obbligatorio");
    theForm.foto.focus();
		return (false);
    }
	


    }
