function checkInput(theForm) {
	if ((theForm.nome.value==0) && (theForm.nome.value.length<=0)) {
		alert("First name missing !");
		theForm.nome.focus();
		return false
		}

	if ((theForm.cogno.value==0) && (theForm.cogno.value.length<=0)) {
		alert("Last name missing !");
		theForm.cogno.focus();
		return false
		}

	if ((theForm.email.value==0) && (theForm.email.value.length<=0)) {
		alert("E-mail missing !");
		theForm.email.focus();
		return false
		}

	if ((theForm.paswd.value==0) && (theForm.paswd.value.length<=0)) {
		alert("Password missing !");
		theForm.paswd.focus();
		return false
		}

	if (theForm.paswd.value.length<5) {
		alert("Password length should be of 5 characters !");
		theForm.paswd.focus();
		return false
		}

	if ((theForm.paswdck.value==0) && (theForm.paswdck.value.length<=0)) {
		alert("Password confirm missing !");
		theForm.paswdck.focus();
		return false
		}

	if (theForm.paswd.value!=theForm.paswdck.value) {
		alert("Password not correct !");
		theForm.paswd.focus();
		return false
		}

	if ((theForm.telef.value==0) && (theForm.telef.value.length<=0)) {
		alert("Phone number missing !");
		theForm.telef.focus();
		return false
		}

	if ((theForm.azienda.value==0) && (theForm.azienda.value.length<=0)) {
		alert("Company name missing !");
		theForm.azienda.focus();
		return false
		}

	if ((theForm.indir.value==0) && (theForm.indir.value.length<=0)) {
		alert("Address missing !");
		theForm.indir.focus();
		return false
		}

	if ((theForm.cap.value==0) && (theForm.cap.value.length<=0)) {
		alert("Postal code missing !");
		theForm.cap.focus();
		return false
		}

	if ((theForm.comun.value==0) && (theForm.comun.value.length<=0)) {
		alert("City missing !");
		theForm.comun.focus();
		return false
		}

	if (theForm.stato.value=="0"){
		alert("State not selected !");
		theForm.stato.focus();
		return false
	}

	if (!(theForm.privacy.checked)) {
		alert("Consent to Privacy Law not selected !");
		return false
		}

}