	// VERIFICA E-MAIL
function isEmail(what)
{
   var i=new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
   if(!i.test(what)) {return false};
   return true;
}
<!--
function controllamail(theForm)
{
if (theForm.email.value == "")
  {
	alert("Inserire un valore per il campo \"E-Mail\".");
	theForm.email.focus();
	return (false);
  }
if (!isEmail(theForm.email.value))
  {
	alert("L' \"E-Mail\" non è corretta.");
	theForm.email.focus();
	return (false);
  }
return (true);
}
<!--
function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}




 function MM_jumpMenu(targ,selObj,restore){ //v3.0
			   eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
			   if (restore) selObj.selectedIndex=0;
			 }



originalColorArray = new Array();

function changeBg(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='666666';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}


function changeBg2(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='607625';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}

function changeBg3(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='8C7625';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}

function changeBg4(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='FF9900';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}

function changeBg5(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='7F7F88';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}

function changeBg6(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='CCA300';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}

function changeBg7(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='99CC66';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}

function changeBg8(tr) {
	if (isTrMarked(tr)) return;
	var children = tr.childNodes;
	tmpArray = new Array();
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tmpArray[i] = tr.children[i].bgColor;
			tr.children[i].bgColor='386781';
		}
	}
	originalColorArray[tr.rowIndex] = tmpArray;
}



function resetBg(tr) {
	if (isTrMarked(tr)) return;
	tmpArray = originalColorArray[tr.rowIndex];
	var children = tr.childNodes;
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tr.children[i].bgColor=tmpArray[i];
		}
	}
}

function isTrMarked(tr) {

	if (tr.children && tr.children[0].bgColor=='#437ca7') {
		return true;
	}
	return false;
}

function markTr(tr) {
	var children = tr.childNodes;
	var doStyle = true;
	if (isTrMarked(tr)) {
		unMarkTr(tr);
	} else {
		tmpArray = new Array();
		if (tr.children) {
			for (var i=0;i < children.length; i++) {
				tr.children[i].bgColor='437CA7';
				if (tr.children[i].style.color == "red") {
					tr.children[i].style.color="ffff00";
				} else {
					tr.children[i].style.color="ffffff";
				}
				if (tr.children[i].childNodes[0] != null && tr.children[i].childNodes[0].nodeName == "A") {
					tr.children[i].childNodes[0].style.color="ffffff";
				}
			}
		}
	}
}

function unMarkTr(tr) {
	var children = tr.childNodes;
	tmpArray = originalColorArray[tr.rowIndex];
	if (tr.children) {
		for (var i=0;i < children.length; i++) {
			tr.children[i].bgColor=tmpArray[i];
			if (tr.children[i].style.color == "#ffff00") {
				tr.children[i].style.color="red";
			} else {
				tr.children[i].style.color="000000";
			}
			if (tr.children[i].childNodes[0].nodeName == "A") {
				tr.children[i].childNodes[0].style.color="305E80";
			}
		}
	}
}





//-->

<!--------------- Menù ad albero ------------------>

function aprichiudi(item) {
   elem=document.getElementById(item);
   visibile=(elem.style.display!="none")
   prefisso=document.getElementById("menu" + item);
   if (visibile) {
     elem.style.display="none";
     prefisso.innerHTML="<img src='/images/new/icon_m_sx.gif' hspace='0' vspace='0' border='0' style='vertical-align:middle;'>";
   } else {
      elem.style.display="block";
      prefisso.innerHTML="<img src='/images/new/icon_m_sx_over.gif' hspace='0' vspace='0' border='0' style='vertical-align:middle;'>";
   }
}

//  popup per legge //

function popup(url) 
{ 
 
var winl = (screen.width-575); 
var wint = (screen.height-300)/2; 
settings='height=400,width=570,top='+wint+',left='+winl+',scrollbars=yes,toolbar=0,location=0,status=0,menubar=0,resizable=0,dependent=0,copyhistory=0' 

{ 
MyPopUp = window.open(url,"scheda",settings);
MyPopUp.focus();
} 
}

function finestra(url,wt,ht) 
{ 
 
var winl = (screen.width-391); 
var wint = 100; 
settings='height=' + ht + ',width=' + wt +',top=' + wint + ',left=' + winl +',scrollbars=yes,toolbar=0,location=0,status=0,menubar=0,resizable=0,dependent=0,copyhistory=0' 

{ 
Myfin = window.open(url,"scheda",settings);
Myfin.focus();



} 
}




