// ===================================
// Check Input For Info.asp
// ===================================

	function CheckField()
	{
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo i Campi obbligatori contengono qualcosa !
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		if (IsEmpty (document.frmInfo.Nome, 'Name Surname')) return false;
		if (IsEmpty (document.frmInfo.Info, 'Information required')) return false;
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo che i Campi obbligatori non siano vuoti e contengano dei dati corretti
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		if (!FieldIsOK (document.frmInfo.EMail, 'E-mail', 4)) return false;
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo che i Campi NON obbligatori (ma compilati), contengano dei dati corretti
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		if (!CheckInput (document.frmInfo.Fax, 'Fax', 3))
		{
			document.frmInfo.Fax.select();
			document.frmInfo.Fax.focus();
			return false;
		}

		if (!CheckInput (document.frmInfo.Cap, 'ZIP code', 2))
		{
			document.frmInfo.Cap.select();
			document.frmInfo.Cap.focus();
			return false;
		}

		if (!CheckInput (document.frmInfo.Telefono, 'Telephone', 3))
		{
			document.frmInfo.Telefono.select();
			document.frmInfo.Telefono.focus();
			return false;
		}

		if (!CheckInput (document.frmInfo.DatiFiscali, 'Fiscal Code or Vat', 5))
		{
			document.frmInfo.DatiFiscali.select();
			document.frmInfo.DatiFiscali.focus();
			return false;
		}
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo la Validità dei valori inseriti nei Campi compilati !
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		if (!IsCAP (document.frmInfo.Cap))
		{ 
			alert("The field is not correct ZIP code.");
			document.frmInfo.Cap.select();
			document.frmInfo.Cap.focus();
			return false;
		}

		if (!IsCodiceFiscale (document.frmInfo.DatiFiscali) && !IsPartitaIVA (document.frmInfo.DatiFiscali))
		{
			alert("The field C.F. or VAT is not correct.");
			document.frmInfo.DatiFiscali.select();
			document.frmInfo.DatiFiscali.focus();
			return false;
		}

		if (!IsEmail (document.frmInfo.EMail))
		{
			alert("The field is not correct EMAIL.");
			document.frmInfo.EMail.select();
			document.frmInfo.EMail.focus();
			return false;
		}
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		return true;
	}

// ===================================
// EOF: RichiestaInfo.js
// ===================================
