function checkLog(theForm) {
	var email_reg_exp = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;

	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.paswd.value==0) && (theForm.paswd.value.length<=0)) {
		alert("Non hai inserito 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
		}

}