function Controlla()
{
	var nome = document.modulo.nome.value;
	var cognome = document.modulo.cognome.value;
	var azienda = document.modulo.azienda.value;
	var telefono = document.modulo.telefono.value;
	var email = document.modulo.email.value;
	var chk1 = document.modulo.chkConsulenza.checked;
	var chk2 = document.modulo.chkFormazione.checked;
	var chk3 = document.modulo.chkQualita.checked;
	var chk4 = document.modulo.chkSicurezza.checked;
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

	//if ((azienda == "") || (azienda == "undefined"))	{
	//	alert("Il campo Azienda è obbligatorio.");
	//	document.modulo.azienda.focus();
	//	return false;
	//}

	if ((cognome == "") || (cognome == "undefined"))	{
		alert("Il campo Cognome è obbligatorio.");
		document.modulo.cognome.focus();
		return false;
	}

	if ((nome == "") || (nome == "undefined"))	{
		alert("Il campo Nome è obbligatorio.");
		document.modulo.nome.focus();
		return false;
	}
		
	if ((telefono == "") || (telefono == "undefined"))	{
		alert("Il numero di telefono è obbligatorio.");
		document.modulo.telefono.focus();
		return false;
	}

	//else if (!email_reg_exp.test(email) || (email == "") || (email == "undefined")) {
   	//alert("Inserire un indirizzo email corretto.");
   	//document.modulo.email.select();
   	//return false;
	//}	
	
	if ((chk1 == false) && (chk2 == false) && (chk3 == false) && (chk4 == false))	{
		alert("Il campo tipo di informazione è obbligatorio.");
		document.modulo.chkConsulenza.focus();
		return false;
	}
	
	else {
	document.modulo.recipient.value="info@anteaca.com";
   	document.modulo.action = "http://www.tiscali.it/cgi-bin/formmail.cgi";
   	document.modulo.submit();
	}
}

function cancella() {
	document.modulo.reset();
	document.modulo.azienda.focus();
}

