// ===================================
// Check Input For Info.asp
// ===================================

	function CheckField()
	{
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo che i Campi obbligatori non siano vuoti, indipendentemente da cosa contengono !
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// if (IsEmpty (document.frmInfo.txtNome, 'Nome e Cognome')) return false;
		// if (IsEmpty (document.frmInfo.txtInfo, 'Informazioni richieste')) return false;
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo che i Campi obbligatori non siano vuoti e contengano dei dati corretti
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// if (!FieldIsOK (document.frmInfo.txtEMail, 'E-mail', 4)) return false;
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo che i Campi NON obbligatori (ma compilati), contengano dei dati corretti
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		
		if (!CheckInput (document.frmInfo.txtFax, 'Fax', 3))
		{
			document.frmInfo.txtFax.select();
			document.frmInfo.txtFax.focus();
			return false;
		}

		if (!CheckInput (document.frmInfo.txtCap, 'C.A.P.', 2))
		{
			document.frmInfo.txtCap.select();
			document.frmInfo.txtCap.focus();
			return false;
		}

		if (!CheckInput (document.frmInfo.txtTelefono, 'Telefono', 3))
		{
			document.frmInfo.txtTelefono.select();
			document.frmInfo.txtTelefono.focus();
			return false;
		}
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		// Controllo la Validità dei valori inseriti nei Campi compilati !
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
		if (!IsCAP (document.frmInfo.txtCap))
		{ 
			alert("Il campo CAP non è corretto.");
			document.frmInfo.txtCap.select();
			document.frmInfo.txtCap.focus();
			return false;
		}

		if (!IsEmail (document.frmInfo.txtEMail))
		{
			alert("Il campo EMAIL non è corretto.");
			document.frmInfo.txtEMail.select();
			document.frmInfo.txtEMail.focus();
			return false;
		}
		// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

		return true;
	}

// ===================================
// EOF: RichiestaInfo.js
// ===================================