// JavaScript Document

var n = (document.layers) ? 1:0; 
var ie = (document.all) ? 1:0;
var mac = (navigator.userAgent.indexOf('Mac')>-1) ? 1:0;
		
function allegatoWin ( dati, allegato_art7, wval, hval) {

// set general size vars
var w_val = wval;
var h_val = hval;
		
		
// if browser is ie mac
if (ie && mac) {
w_val -= 16;
h_val -= 16;
}

// open the browser
var nw=window.open( dati, allegato_art7, 'width='+w_val+',height='+h_val+', status=no,menubar=no,scrollable=no,resizable=no,location=no');
nw.focus();
			
// move it to the upper lefthand corner
nw.moveTo(50,50);
				
}
