function checkInput(theForm) {
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

	if ((theForm.nome.value==0) && (theForm.nome.value.length<=0)) {
		alert("Non hai inserito il nome !");
		theForm.nome.focus();
		return false
	}

	if ((theForm.cognome.value==0) && (theForm.cognome.value.length<=0)) {
		alert("Non hai inserito il cognome !");
		theForm.cognome.focus();
		return false
	}
	
/*	if ((theForm.azienda.value==0) && (theForm.azienda.value.length<=0)) {
		alert("Non hai inserito l'azienda !");
		theForm.azienda.focus();
		return false
	}
*/	
	if ((theForm.telefono.value==0) && (theForm.telefono.value.length<=0)) {
		alert("Non hai inserito il telefono !");
		theForm.telefono.focus();
		return false
	}
	
	if ((theForm.email.value==0) && (theForm.email.value.length<=0)) {
		alert("Non hai inserito l'e-mail !");
		theForm.email.focus();
		return false
		}

	else if (!email_reg_exp.test(theForm.email.value)){
		alert("E-mail non corretta !");
		return false
		}

	if ((theForm.richiesta.value==0) && (theForm.richiesta.value.length<=0)) {
		alert("Non hai inserito la richiesta !");
		theForm.richiesta.focus();
		return false
	}
	
	if (!theForm.privacy.checked) {
		alert("Non hai dato il consenso per la privacy !");
		return false
		}
}
