<!--
function Modulo() {
     // Variabili associate ai campi del modulo
	 var nome = document.getElementById('nome').value;
	 var cognome = document.getElementById('cognome').value;
	 var sociale = document.getElementById('sociale').value;
	 var tel = document.getElementById('tel').value;
	 var indirizzo = document.getElementById('indirizzo').value;
	 var comune = document.getElementById('comune').value;
	 var provincia = document.getElementById('provincia').value;
	 var email = document.getElementById('email').value;
	 var richiesta = document.getElementById('richiesta').value;	 

     // Espressione regolare dell'email
     var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;
	 
        //Effettua il controllo sul campo NOME
        if ((nome == "") || (nome == "undefined")) {
           alert("Il campo Nome' e' obbligatorio.");
           document.modulo.nome.focus();
           return false;
        }
        else if ((cognome == "") || (cognome == "undefined")) {
           alert("Il campo Cognome e' obbligatorio.");
           document.modulo.cognome.focus();
           return false;
        }
		else if ((sociale == "") || (sociale == "undefined")) {
           alert("Il campo Rag. Sociale e' obbligatorio.");
           document.modulo.sociale.focus();
           return false;
        }
		else if ((tel == "") || (tel == "undefined")) {
           alert("Il campo Telefono e' obbligatorio.");
           document.modulo.tel.focus();
           return false;
        }
		else if ((indirizzo == "") || (indirizzo == "undefined")) {
           alert("Il campo Indirizzo e' obbligatorio.");
           document.modulo.indirizzo.focus();
           return false;
        }
		else if ((comune == "") || (comune == "undefined")) {
           alert("Il campo Comune e' obbligatorio.");
           document.modulo.comune.focus();
           return false;
        }
		else if ((provincia == "") || (provincia == "undefined")) {
           alert("Il campo Provincia e' obbligatorio.");
           document.modulo.provincia.focus();
           return false;
        }
		else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
           alert("Il campo Email e' obbligatorio.");
           document.modulo.email.focus();
           return false;
        }
		else if ((richiesta == "") || (richiesta == "undefined")) {
           alert("Il campo Richiesta e' obbligatorio.");
           document.modulo.richiesta.focus();
           return false;
        }
        //INVIA IL MODULO
        else {
           document.modulo.action = "";
           document.modulo.submit();
        }
  } 
  
  
function invio_sms(selezionato){
	switch(selezionato){
		case 1:
			importo=1000;
			costo=70;
		break;
		case 2:
			importo=64000;
			costo=64;
		break;
		case 3:
			importo=140000;
			costo=56;
		break;
		case 4:
			importo=245000;
			costo=49;
		break;
		case 5:
			importo=460000;
			costo=46;
		break;
		case 6:
			importo=1050000;
			costo=42;
		break;
		case 7:
			importo=1900000;
			costo=38;
		break;
		case 8:
			importo=3600000;
			costo=36;
		break;
	}
	
	document.getElementById("amount").value=importo/1000;
	document.getElementById("os0").value=importo;
//	document.getElementById("os1").value=costo;
	document.getElementById("paypal_mod").submit();
}
//-->