function popup(url, name, width, height, scrollbars, status) 
{ 
if (document.all) { 
var x = window.screenLeft; 
var y = window.screenTop; 
var w = window.document.body.offsetWidth; 
var h = window.document.body.offsetHeight; 
} 
else { 
var x = window.screenX; 
var y = window.screenY; 
var w = window.outerWidth; 
var h = window.outerHeight; 
} 
var cntx = x + Math.round((w - width) / 2); 
//var cnty = y + Math.round((h - height) / 2); 
var cnty = 100;

window.open (url, name, 'left=' + cntx + ', top=' + cnty + ', width=' + width + ', height=' + height + ', scrollbars='+scrollbars+', resizable=yes, status='+status+' +' ); 
} 

function chiudi() {
	window.self.close()
}

//codice menù

function mmenu(mID) {
	var menu = document.getElementById(mID);
	var display = menu.style.display;
	menu.style.display = (display == "block") ? "none" : "block";
	//menu.parentNode.style.listStyleImage = (display == "block") ? "url(cartellachiusa.gif)" : "url(cartellaaperta.gif)";
}

//altra funzione richiamata dall'evento load di windows nel file yadm.js
