
function showdiv(id) 
	{
	obj = document.getElementsByTagName("div");
	obj[id].style.visibility = 'visible';
	return true;
	} 

function hidediv(id) 
	{
	obj = document.getElementsByTagName("div");
	obj[id].style.visibility = 'hidden';
	return true;
	} 

function aggiornadiv (id,content)
	{
	document.getElementById(id).innerHTML=content;
	}

function ColorTr(t)
{t.style.background='#999999';
}

function DecolorTr(t)
{t.style.background='#7DAAC1';
}

// menu
startList = function() {
 	//code only for IE
	if(!document.body.currentStyle) return;
	var subs = document.getElementsByName('submenu');
	for(var i=0; i<subs.length; i++) {
		var li = subs[i].parentNode;
		if(li && li.lastChild.style) {
			li.onmouseover = function() {
				this.lastChild.style.visibility = 'visible';
			}
			li.onmouseout = function() {
				this.lastChild.style.visibility = 'hidden';
			}
		}
	}
}
window.onload=startList;

function ToggleRow(id1, id2) 
	{
	var obj1 = document.getElementById(id1);
	var obj2 = document.getElementById(id2);
	if (obj1.style.display!='none')
		{
		obj1.style.display='none';
		obj2.style.display='block';
		}
	else
		{
		obj1.style.display='block';
		obj2.style.display='none';
		}
	} 

function evidenzia(id,quanti)
	{
	for (i=0;i<quanti;i++)
		{
		document.getElementById("link"+i).style.border="";
		document.getElementById("nomelink"+i).style.color="";
		}
	document.getElementById("link"+id).style.border="3px solid #1A486C";
	document.getElementById("nomelink"+id).style.color="#666666";
	}

function evidenzialinkfoto(id,quanti)
	{
	for (i=0;i<quanti;i++)
		{
		document.getElementById("linkfoto"+i).style.border="1px solid #7F8D8D";
		document.getElementById("linkfoto"+i).style.color="#7F8D8D";
		}
	document.getElementById("linkfoto"+id).style.border="1px solid #F31222";
	document.getElementById("linkfoto"+id).style.color="#1A486C";
	}

function newWindow (url, width, height)
	{
	window.open (url,'new','width='+width+', height='+height+', toolbar=no, location=no, locationBar=no, left=10, top=10, scrollbars=1')
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	

