	function controllaDati() {
		// controllo dei dati, se tutti i campi sono compilati
		var OK=0;		
		if (document.myForm.mittente.value=="") {
			alert("Immettere il campo mittente");
			OK=1;
		} else {
			if (document.myForm.soggetto.value=="") {
				alert("Immettere il soggetto");
				OK=1;
			} else {
				if (document.myForm.messaggio.value=="") {
					alert("Immettere il messaggio della mail");
					OK=1;
				}
				else {
					if (document.myForm.mail.value=="") {
						alert("Immettere la propria mail");
						OK=1;
					}
				}
			}
		}		
		if (OK == 0) {
			document.myForm.submit();
		}
	}
