<!-- Funzione per l'apertura delle finestre popup. //-->

function apri(url,nome,mnbar,tlbar,lcbar,stbar,scbar,rsbar,wdt,hgt,drbar)
{
	window.open(url,nome,"menubar=" + mnbar + ",toolbar=" + tlbar + ",location=" + lcbar + ",status=" + stbar + ",scrollbars=" + scbar + ",resizable=" + rsbar + ",width=" + wdt + ",height=" + hgt + ",directories=" + drbar);
}

<!-- Variabili per i colori delle righe dell'iframe contenente gli articoli. //-->

var cMover = "#c2d3ef";  // Colore al passaggio del mouse.
var cMdown = "#ffff00";  // Colore al click del mouse.
var cMout;  // Variabile generica per reimpostare il colore normale della riga.

var sR = ['','','','','','','','','','']; // variabile utilizzata dai programmi per selezionare la riga
sR_old = 'nessuna_riga';

<!-- Funzione per il controllo della riga al passaggio del mouse. //-->

function sR_onmouseover(i)
{
	if (document.getElementById(i).bgColor!=cMdown)
	{
		return cMover;
	}
	else
	{
		return cMdown;
	}
}

<!-- Funzione per il ripristino del colore normale della riga. //-->

function sR_onmouseout(i)
{
	if (document.getElementById(i).bgColor==cMdown)
	{
		return cMdown;
	}
	else
	{
		cMout = (i % 2==1)? "#eeeeee" : "#ffffff";
		return cMout;
	}
}

<!-- Funzione per il controllo delle righe selezionate. //-->

function sR_onclick(i)
{
//	if (document.getElementById(i).bgColor==cMdown)
//	{
//		sR_old = 'nessuna_riga';
//		cMout = (i % 2==1)? "#eeeeee" : "#ffffff";
//		return cMout;
//	}
//	else
//	{
		if (sR_old>=0)
		{
			cMout = (sR_old % 2==1)? "#eeeeee" : "#ffffff";
			document.getElementById(sR_old).bgColor = cMout;
		}

		sR_old = i;
        	window.document.forms[0].artriga.value = i;
		return cMdown;
//	}
}

function mmenu(ID)
{
  	var objBranch = document.getElementById('u' + ID);
  	if (objBranch)
	{
   		if (objBranch.style.display=="block")
		{
      			objBranch.style.display = "none";
    		}
		else
		{
      			objBranch.style.display = "block";
    		}
  	}
}

function popup(obj) {
    window.open(obj.href,'','menubar=1,toolbar=1,location=1,status=1,directories=1,scrollbars=1,resizable=1,width=960,height=700');
    return false;
}
