// JavaScript Document
function Validator(theForm)
{		
	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.Azienda.value == '')
	{
		alert("Inserire il nome dell'Azienda.");
		theForm.Azienda.focus();
		return false;
	}

	if (theForm.Email.value == '')
	{
		alert("Inserire indirizzo Email.");
		theForm.Email.focus();
		return false;
	}
	
	if (theForm.Sito.value == '')
	{
		alert("Inserire il Sito Internet.");
		theForm.Sito.focus();
		return false;
	}
	
	if (theForm.Keyword_1.value == '')
	{
		alert("Inserire almeno 3 keywords.");
		theForm.Keyword_1.focus();
		return false;
	}
	
	if (theForm.Keyword_2.value == '')
	{
		alert("Inserire almeno 3 keywords.");
		theForm.Keyword_2.focus();
		return false;
	}
	
	if (theForm.Keyword_3.value == '')
	{
		alert("Inserire almeno 3 keywords.");
		theForm.Keyword_3.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;
}
