// JavaScript Document

function ApriFinestra(url,ref,wdt,hgt,top,lft,tool) { 
	var hb = (screen.width - wdt) / 2;
	var vb = (screen.height - hgt) / 2;
	window.open(url,ref,"toolbar=" + tool + ",location=no,directories=no,menubar=no,scrollbars=yes,resizable=yes,width=" + wdt + ",height=" + hgt + ",top=" + vb + ",left=" + hb); 
} 

function selection(url_path,name,w,h) {
	agent = navigator.userAgent;
	if (agent.toUpperCase().indexOf("MOZILLA/3.01 (MAC") > -1) 		location = url_path;
	else {
		max =window.open(url_path,name,'width=' + w +' ,height=' + h +' ,top=100,left=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no');
		max.focus()
	}
}

function showLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"'); 	
} 	

function hideLayer(layerName) {
	eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"'); 	
} 

function hideLayers() {
	hideLayer('layer2');
}
