// JavaScript Document
function Validator(theForm)
{		
	if (theForm.Nome.value == '')
	{
		alert("Inserire il Nome.");
		theForm.Nome.focus();
		return false;
	}
	
	if (theForm.Cognome.value == '')
	{
		alert("Inserire il Cognome.");
		theForm.Cognome.focus();
		return false;
	}
	
	if (theForm.Localita.value == '')
	{
		alert("Inserire la Localita'.");
		theForm.Localita.focus();
		return false;
	}
	
	if (theForm.Email.value == '')
	{
		alert("Inserire l'email.");
		theForm.Email.focus();
		return false;
	}
	
	if (theForm.Telefono.value == '')
	{
		alert("Inserire il Telefono.");
		theForm.Email.focus();
		return false;
	}

	
	if (!theForm.Accetto_privacy.checked)
	{
		alert("E' necessario accettare la normativa sulla privacy.");
		theForm.Accetto_privacy.focus();
		return false;
	}
	
	return true;
}


