function checkInputReg(theForm) {
	if ((theForm.nome.value==0) && (theForm.nome.value.length<=0)) {
		alert("Inserire il nome !");
		theForm.nome.focus();
		return false
		}

	if ((theForm.cogno.value==0) && (theForm.cogno.value.length<=0)) {
		alert("Inserire il cognome !");
		theForm.cogno.focus();
		return false
		}

	if ((theForm.email.value==0) && (theForm.email.value.length<=0)) {
		alert("Inserire l'e-mail !");
		theForm.email.focus();
		return false
		}

	if ((theForm.paswd.value==0) && (theForm.paswd.value.length<=0)) {
		alert("Inserire la password !");
		theForm.paswd.focus();
		return false
		}

	if (theForm.paswd.value.length<5) {
		alert("La password deve essere di almeno 5 caratteri !");
		theForm.paswd.focus();
		return false
		}

	if ((theForm.paswdck.value==0) && (theForm.paswdck.value.length<=0)) {
		alert("Inserire la password di conferma !");
		theForm.paswdck.focus();
		return false
		}

	if (theForm.paswd.value!=theForm.paswdck.value) {
		alert("La password non č corretta !");
		theForm.paswd.focus();
		return false
		}

	if ((theForm.pariva.value==0) && (theForm.pariva.value.length<=0) && (theForm.codfisc.value==0) && (theForm.codfisc.value.length<=0)) {
		alert("Occorre inserire la partita IVA o il codice fiscale !");
		theForm.pariva.focus();
		return false
		}

	if ((theForm.telef.value==0) && (theForm.telef.value.length<=0)) {
		alert("Inserire il numero di telefono !");
		theForm.telef.focus();
		return false
		}

	if ((theForm.azienda.value==0) && (theForm.azienda.value.length<=0)) {
		alert("Inserire l'azienda !");
		theForm.azienda.focus();
		return false
		}

	if ((theForm.indir.value==0) && (theForm.indir.value.length<=0)) {
		alert("Inserire l'indirizzo !");
		theForm.indir.focus();
		return false
		}

	if ((theForm.cap.value==0) && (theForm.cap.value.length<=0)) {
		alert("Inserire il C.A.P. !");
		theForm.cap.focus();
		return false
		}

	if ((theForm.comun.value==0) && (theForm.comun.value.length<=0)) {
		alert("Inserire la cittā !");
		theForm.comun.focus();
		return false
		}

	if ((theForm.stato.value==0) && (theForm.stato.value.length<=0)) {
		alert("Inserire lo stato !");
		theForm.stato.focus();
		return false
		}

	if (!(theForm.privacy.checked)) {
		alert("Dare il consenso al trattamento dei dati !");
		return false
		}

}