// JavaScript Document
function Validator(theForm)
{		
	if (theForm.Nome_Societa.value == '')
	{
		alert("Inserire il Nome della Società.");
		theForm.Nome_Societa.focus();
		return false;
	}
	
	if (theForm.Nome_Referente.value == '')
	{
		alert("Inserire il Nome del Referente.");
		theForm.Nome_Referente.focus();
		return false;
	}
	
	if (theForm.Cognome_Referente.value == '')
	{
		alert("Inserire il Cognome del Referente.");
		theForm.Cognome_Referente.focus();
		return false;
	}
	
	if (theForm.Email_Referente.value == '')
	{
		alert("Inserire indirizzo Email.");
		theForm.Email_Referente.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;
}