// JavaScript Document

<!-- 
function makevisible(cur,which){
strength=(which==0)? 1 : 0.7
if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}
// -->



function ControllaForm()
{
		var controllo=false;
		var conta = 0;
		var email=true;
		var emailuguali=true;
		var browserselezionato=true;
		var come=false;
		var uso=true;
		var testo = "ATTENZIONE - DATI OBBLIGATORI MANCANTI\n\n";

        if (document.form1.nome.value == "")
			{	controllo=true;
				testo = testo+"Indicare il NOME\n";
			}
		if (document.form1.cognome.value == "")
			{	controllo=true;
				testo = testo+"Indicare il COGNOME\n";
			}
		if ((document.form1.email.value.indexOf("@") == -1) || (document.form1.email.value.indexOf(".") == -1))
			{
				controllo=true;
				testo = testo+"E' necessario inserire un indirizzo EMAIL valido.\n";
			}
		if (document.form1.interessato.value == "-- Seleziona un Servizio -")
			{	controllo=true;
				testo = testo+"Indicare l'interesse\n";
			}
		if (!document.form1.informativa.checked)
			{	controllo=true;
				testo = testo+"Devi accettare il TRATTAMENTO DEI DATI.\n";
			}
		if (document.form1.mess.value == "")
			{	controllo=true;
				testo = testo+"Indicare un MESSAGGIO.\n";
			}

		
// Fine controllo

if (controllo){
	alert(testo);
	return false;}
else{return true}
}

function ControllaForm2()
{
		var controllo=false;
		var conta = 0;
		var email=true;
		var emailuguali=true;
		var browserselezionato=true;
		var come=false;
		var uso=true;
		var testo = "ATTENZIONE - DATI OBBLIGATORI MANCANTI\n\n";

        if (document.form1.nome.value == "")
			{	controllo=true;
				testo = testo+"Indicare il NOME\n";
			}
		if (document.form1.cognome.value == "")
			{	controllo=true;
				testo = testo+"Indicare il COGNOME\n";
			}
		if ((document.form1.email.value.indexOf("@") == -1) || (document.form1.email.value.indexOf(".") == -1))
			{
				controllo=true;
				testo = testo+"E' necessario inserire un indirizzo EMAIL valido.\n";
			}
		if (document.form1.interessato.value == "-- Seleziona un Servizio -")
			{	controllo=true;
				testo = testo+"Indicare l'interesse\n";
			}
		if (!document.form1.informativa.checked)
			{	controllo=true;
				testo = testo+"Devi accettare il TRATTAMENTO DEI DATI.\n";
			}
		/*if (document.form1.mess.value == "")
			{	controllo=true;
				testo = testo+"Indicare un MESSAGGIO.\n";
			}*/

		
// Fine controllo

if (controllo){
	alert(testo);
	return false;}
else{return true}
}

function ControllaForm3()
{
		var controllo=false;
		var conta = 0;
		var email=true;
		var emailuguali=true;
		var browserselezionato=true;
		var come=false;
		var uso=true;
		var testo = "ATTENZIONE - DATI OBBLIGATORI MANCANTI\n\n";

        if (document.form1.nome.value == "")
			{	controllo=true;
				testo = testo+"Indicare il NOME\n";
			}
		if (document.form1.cognome.value == "")
			{	controllo=true;
				testo = testo+"Indicare il COGNOME\n";
			}
		if ((document.form1.email.value.indexOf("@") == -1) || (document.form1.email.value.indexOf(".") == -1))
			{
				controllo=true;
				testo = testo+"E' necessario inserire un indirizzo EMAIL valido.\n";
			}
		if (!document.form1.informativa.checked)
			{	controllo=true;
				testo = testo+"Devi accettare il TRATTAMENTO DEI DATI.\n";
			}
		

		
// Fine controllo

if (controllo){
	alert(testo);
	return false;}
else{return true}
}

// blocco tasto destro

var message="tasto destro disabilitato";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")



<!-- Begin POPUP PER MANIFESTI VIDEOPRODUZIONI
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=900,height=900,left = 240,top = 112');");
}
// End -->
