function toggleLayer(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = style2.display? "":"block";
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = style2.display? "":"block";
	} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = style2.display? "":"block";
	}
}

function selEdiz() {
	ns = document.rassegna_sel.edizioni.selectedIndex;
	document.location = "index.php?" + document.rassegna_sel.edizioni[ ns ].value;
}
function selData() {
	ns = document.rassegna_sel.rassegna.selectedIndex;
	document.location = "index.php?" + document.rassegna_sel.rassegna[ ns ].value;
	return false;
}

function test(whichLayer) {
//	alert( whichLayer );
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		if( style2.display == "block" )
			style2.display = "";
//		style2.display = style2.display? "":"block";
	} else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
//		style2.display = style2.display? "":"block";
		if( style2.display == "block" )
			style2.display = "";

} else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
//		style2.display = style2.display? "":"block";
		if( style2.display == "block" )
			style2.display = "";

}

	return false;
}

// this function determines whether the event is the equivalent of the microsoft
// mouseleave or mouseenter events.
function isMouseLeaveOrEnter(e, handler)
{		
	if (e.type != 'mouseout' && e.type != 'mouseover') return false;
	var reltg = e.relatedTarget ? e.relatedTarget :
	e.type == 'mouseout' ? e.toElement : e.fromElement;
	while (reltg && reltg != handler) reltg = reltg.parentNode;
	return (reltg != handler);
}