// JavaScript Document
function Validator(theForm)
{		

	if (theForm.Azienda.value == '')
	{
		alert("Inserire la Azienda.");
		theForm.Azienda.focus();
		return false;
	}
	
	if (theForm.Email.value == '')
	{
		alert("Inserire l'email.");
		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;
}

function Validator_Prv(theForm)
{	
	if (theForm.Servizio.value == '')
	{
		alert("Scegliere il Servizio richiesto.");
		theForm.Servizio.focus();
		return false;
	}

	if (theForm.Nome.value == '')
	{
		alert("Inserire il Nome del referente.");
		theForm.Nome.focus();
		return false;
	}
	
	if (theForm.Cognome.value == '')
	{
		alert("Inserire il Cognome del referente.");
		theForm.Cognome.focus();
		return false;
	}
	
	if (theForm.Email.value == '')
	{
		alert("Inserire indirizzo Email.");
		theForm.Email.focus();
		return false;
	}
	
	if (theForm.Telefono.value == '')
	{
		alert("Inserire il Telefono.");
		theForm.Telefono.focus();
		return false;
	}

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

function Validator_Inf(theForm)
{	

	if (theForm.Nome.value == '')
	{
		alert("Inserire il Nome del referente.");
		theForm.Nome.focus();
		return false;
	}
	
	if (theForm.Email.value == '')
	{
		alert("Inserire indirizzo Email.");
		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;
}
