function mostra_condizione(controllo,valore,id,modo,modo_else) {
	el =document.getElementById(id);
	if (document.getElementById(controllo).value==valore) {
		el.style.display = modo;
	} else {
		el.style.display = modo_else;
	}
}
function onloadfunction(){
/*	if (typeof document.getElementById != "undefined"){
		visualizza_menu();
		//controlla_form();
	}
*/
}
/*function visualizza_menu() {
	var links = document.getElementById("menu").getElementsByTagName("a");
	for (i=0;i<links.length; i++) {
		links[i].onmouseover=function() {
			//alert (this.id);
			var menus=document.getElementById("barra_menu").getElementsByTagName("ul")
			var numero=this.id;
			numero=numero.charAt(1);
			var nome='menu_'+numero;
			for (y=0;y<menus.length; y++) {
				menus[y].className="nascosto";
			}
			document.getElementById(nome).className="drop_menu";
		}
	}
}*/
function controlla_form() {
	myform=document.getElementsByTagName('form');
	myform.onsubmit=Validate();
}
	
function mostra_nascondi(id_mostra,id_nascondi) {
	var el = document.getElementById(id_mostra);
	el.style.display = 'block';
	var el = document.getElementById(id_nascondi);
	el.style.display = 'none';
}

function mostra_dettaglio(id,valore) {
	var el = document.getElementById(id);
	el.style.display = valore;
}

if (window.addEventListener)
	window.addEventListener("load", onloadfunction, false)
else if (window.attachEvent)
	window.attachEvent("onload", onloadfunction)
else if (document.getElementById)
	window.onload=onloadfunction