function checkFormRegistraUser() {
	with (document.registraUtente) {
		if (nome.value == "")
		{
			alert("Il campo NOME è obbligatorio.");
			nome.focus();
			return (false);
		}
	
		if (nome.value == "")
		{
			alert("Il campo NOME è obbligatorio.");
			nome.focus();
			return (false);
		}
	
		if (email.value == "")
		{
			alert("Il campo EMAIL è obbligatorio.");
			email.focus();
			return (false);
		}
	
		if (eta.value == "")
		{
			alert("Il campo ETA' è obbligatorio.");
			eta.focus();
			return (false);
		}
	
		if (citta.value == "")
		{
			alert("Il campo CITTA' è obbligatorio.");
			citta.focus();
			return (false);
		}
	
		if (password.value == "")
		{
			alert("Il campo PASSWORD è obbligatorio.");
			password.focus();
			return (false);
		}
	
		if (password2.value == "")
		{
			alert("Devi confermare la PASSWORD.");
			password2.focus();
			return (false);
		}
	
	
	// Check speciali //
	
		// Campo email //
			var checkEmail = "@.";
			var checkStr = email.value;
			var EmailValid = false;
			var EmailAt = false;
			var EmailPeriod = false;
			for (i = 0;  i < checkStr.length;  i++)
			{
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkEmail.length;  j++)
			{
			if (ch == checkEmail.charAt(j) && ch == "@")
			EmailAt = true;
			if (ch == checkEmail.charAt(j) && ch == ".")
			EmailPeriod = true;
				  if (EmailAt && EmailPeriod)
					break;
				  if (j == checkEmail.length)
					break;
				}
				// if both the @ and . were in the string
			if (EmailAt && EmailPeriod)
			{
					EmailValid = true
					break;
				}
			}
			if (!EmailValid)
			{
				alert("Email non valida");
				email.focus();
				return (false);
			}
		//
		
		// Campo età solo numeri //
			var checkOK = "0123456789";
			var checkStr = eta.value;
			var allValid = true;
			var allNum = "";
			for (i = 0;  i < checkStr.length;  i++)
			{
			ch = checkStr.charAt(i);
			for (j = 0;  j < checkOK.length;  j++)
			if (ch == checkOK.charAt(j))
			break;
			if (j == checkOK.length)
			{
			allValid = false;
			break;
			}
			if (ch != ",")
			allNum += ch;
			}
			if (!allValid)
			{
			alert("Sono ammessi solo numeri per il campo ETA'");
			eta.focus();
			return (false);
			}	
		//
	
		// Campi password identici //	
			if (password2.value != password.value)
			{
				alert("I campi password sono differenti");
				password.focus();
				return (false);
			}
		//
		
		submit();
	//
	}
}