// HACK PER IE NELLA GESTISCE I MENU A CASCATA UTILIZZA LISTE E CSS
sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// GESTISCE L'OPACITA' DELLE FOTO AL PASSAGGIO DEL MOUSE
function mostra_img(elemento,opacita){
	elemento.style.opacity=opacita;
	elemento.filters.alpha.opacity=opacita*100;
}
//--><!]]>
function checkRows(textArea){
	while (
		textArea.rows > 1 && 
		textArea.scrollHeight < textArea.offsetHeight
	){
		textArea.rows--;
	}
	while (textArea.scrollHeight > textArea.offsetHeight)
	{
		textArea.rows++;
	}
	return;
}

// ALERT PRIMA DI CANCELLARE UN ELEMENTO
function conferma(del) {                
	if (confirm("Attenzione stai per cancellare un DATO")) document.location=del; 
	
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}