  function Modulo() {
  
  
 var a=0;

  var tipo = document.modc.tipo.value;

  var nome = document.modc.nome.value;   

  var tel = document.modc.tel.value;

  var email= document.modc.email.value;

  var citta = document.modc.citta.value;





 var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

 	

	if ((tipo == "") || (tipo == "undefined")) {
           alert("Il campo 'tipo azienda' e' obbligatorio.");
           document.modc.tipo.focus();
           return false;
        }


	else if ((nome == "") || (nome == "undefined")) {
           alert("Il campo 'nome' e' obbligatorio.");
           document.modc.nome.focus();
           return false;
        }

	
	else if (((tel == "") || (isNaN(tel))) && ((tel == "") || (isNaN(tel)))) {
           alert("Il campo 'telefono' e' obbligatorio e deve essere inserito in formato numerico.");
           document.modc.tel.focus();
           return false;
        }
	

	else if ((email == "") || (email == "undefined")) {
           alert("Il campo 'email' e' obbligatorio.");
           document.modc.email.focus();
           return false;
        }

	else if (!email_reg_exp.test(email) ) {
		alert("l'indirizzo mail inserito non sembra un indirizzo mail corretto");
		document.modc.email.focus();
		return false;
	}
  	
	 
	else if ((citta == "") || (citta == "undefined")) {
           alert("Il campo 'provincia/citta\'' e' obbligatorio.");
           document.modc.citta.focus();
           return false;
        }

	

	
	else{

 		  document.modc.action = "cedere_invio.php";
   		  document.modc.submit();

	}
  
  
       }
     
	
	   
	   
	  
       
  

  
 
  
  
  
  
  
  
