//*********************************************************************************
//*********************************************************************************
//    ATTENZIONE!!! QUESTI SCRIPT SONO DELLA CATEGORIA UGLQUADRI
//*********************************************************************************
//*********************************************************************************

	function InCostruzione()
	{
		document.formdefault.action= "page.asp?cat=costru";  
		document.formdefault.method = "post";
		document.formdefault.target = "_self"
		document.formdefault.submit();
	}
	function RichiestaServizi()
	{
		document.formdefault.action= "page.asp?cat=richiestaservizi";  
		document.formdefault.method = "post";
		document.formdefault.target = "_self"
		document.formdefault.submit();
	}
	function Formazione()
	{
		document.formdefault.action= "page.asp?cat=formazione";  
		document.formdefault.method = "post";
		document.formdefault.target = "_self"
		document.formdefault.submit();
	}
	function controllaServizi()
	{
		var esito = false;
		var msg;
		msg = "";
		msg = "Controllare il/i seguente/i campi:\n";	
		if (document.formdefault.txtcognome.value == "")
		{
			msg = msg + "    - Cognome\n";
			esito = true;
		}
		if (document.formdefault.txtnome.value == "")
		{
			msg = msg + "    - Nome\n";
			esito = true;
		}
		if (document.formdefault.txtcomune.value == "")
		{
			msg = msg + "    - Comune di residenza\n";
			esito = true;
		}
		if (document.formdefault.txtindirizzo.value == "")
		{
			msg = msg + "    - Indirizzo\n";
			esito = true;
		}
		if (document.formdefault.txtprovincia.value == "")
		{
			msg = msg + "    - Provincia\n";
			esito = true;
		}
		if (document.formdefault.txtcap.value == "")
		{
			msg = msg + "    - C.A.P.\n";
			esito = true;
		}
		if (isNaN(document.formdefault.txtcap.value))
		{
			msg = msg + "    - Il C.A.P. deve essere numerico\n";
			esito = true;
		}
		
		if (document.formdefault.txtazienda.value == "")
		{
			msg = msg + "    - Azienda\n";
			esito = true;
		}
		if (document.formdefault.txtfiliale.value == "")
		{
			msg = msg + "    - Filiale\n";
			esito = true;
		}
		if (document.formdefault.txttelefonoufficio.value == "")
		{
			msg = msg + "    - Telefono dell'ufficio\n";
			esito = true;
		}
		if (isNaN(document.formdefault.txttelefonoufficio.value))
		{
			msg = msg + "    - Il telefono Ufficio deve essere numerico\n";
			esito = true;
		}
		if (document.formdefault.txttelefonoabitazione.value == "")
		{
			msg = msg + "    - Telefono dell'abitazione\n";
			esito = true;
		}
		if (isNaN(document.formdefault.txttelefonoabitazione.value))
		{
			msg = msg + "    - Il telefono dell'abitazione deve essere numerico\n";
			esito = true;
		}
		if (document.formdefault.txttelefonocellulare.value == "")
		{
			msg = msg + "    - Telefono cellulare\n";
			esito = true;
		}
		if (isNaN(document.formdefault.txttelefonocellulare.value))
		{
			msg = msg + "    - Il telefono cellulare deve essere numerico\n";
			esito = true;
		}
		if (document.formdefault.txtemail.value == "")
		{
			msg = msg + "    - Indirizzo E-Mail\n";
			esito = true;
		}
		if (document.formdefault.cmbparere.value == "0")
		{
			msg = msg + "    - Parere richiesto\n";
			esito = true;
		}
		if (document.formdefault.txtcaso.value == "")
		{
			msg = msg + "    - Descrizione del caso\n";
			esito = true;
		}
		if (document.formdefault.Radio1.checked != true)
		{
			msg = msg + "    - Autorizza il trattamento dei dati\n";
			esito = true;
		}
		
		if (esito == true)
		{
			alert(msg);
			return false;	
		}	
		else
		{
			document.formdefault.action= "page.asp?cat=inviamailservizi";
			document.formdefault.method = "post";
			document.formdefault.target = "_self";
			document.formdefault.submit();
		}
		
	}

