<!--
function openWindow(url,w,h,t)
{
	var winName;
	if (url.lastIndexOf("D") != -1)
	{
		var nName = url.lastIndexOf("D")
		nName += 3;
		winName = url.substring(nName,url.length);
	}
	else
	{
		winName = "Nome";
	}
	var winOpts0 = "width=" + w + ",height=" + h + ",top=20,left=50,fullscreen=no,menubar=no,toolbar=no,location=no,status=no,copyhistory=no,directories=no,scrollbars=yes,resizable=yes";
	var winOpts01 = "width=" + w + ",height=" + h + ",top=10,left=150,fullscreen=no,menubar=no,toolbar=no,location=no,status=no,copyhistory=no,directories=no,scrollbars=yes,resizable=no";
	var winOpts10 = "width=" + w + ",height=" + h + ",top=295,left=182,fullscreen=no,menubar=no,toolbar=no,location=no,status=no,copyhistory=no,directories=no,scrollbars=yes,resizable=yes";
	var winOpts101 = "width=" + w + ",height=" + h + ",top=10,left=10,fullscreen=no,menubar=no,toolbar=no,location=no,status=no,copyhistory=no,directories=no,scrollbars=no,resizable=no";
	var winOpts = "width=" + w + ",height=" + h + ",top=" + ty + ",left=" + lx + ",fullscreen=no,menubar=no,toolbar=no,location=no,status=no,copyhistory=no,directories=no,scrollbars=no,resizable=no";
	if (t == 0)
	{
		winName = window.open(url,winName,winOpts0,'_blank');
		winName.focus();
	}
	else if (t == 01)
	{
		winName = window.open(url,winName,winOpts01,'_blank');
		winName.focus();
	}
	else if (t == 10)
	{
		winName = window.open(url,winName,winOpts10,'_blank');
		winName.focus();
	}
	else if (t == 101)
	{
		winName = window.open(url,winName,winOpts101,'_blank');
		winName.focus();
	}
	else
	{
		if (bw.isIE4)
		{
			var x = window.screenLeft;
			var y = window.screenTop;
			var w1 = window.document.body.offsetWidth;
			var h1 = window.document.body.offsetHeight;
		}
		else
		{
			var x = window.screenX;
			var y = window.screenY;
			var w1 = window.outerWidth;
			var h1 = window.outerHeight;
		}
		var lx = x + Math.round((w1 - w) / 2);
		var ty = y + Math.round((h1 - h) / 2);
		winName = window.open(url,winName,winOpts,'_blank');
		winName.focus();
	}
}
function loadExtUrl(url)
{
	newWindow = window.open(url,'Link','width=660,height=400,top=20,left=50,fullscreen=no,menubar=yes,toolbar=yes,location=yes,status=yes,copyhistory=no,directories=no,scrollbars=yes,resizable=yes');
}
function openBanner(url)
{
	newWindow = window.open(url,'Banner','width=470,height=62,top=250,left=400,fullscreen=no,menubar=no,toolbar=no,location=no,status=no,copyhistory=no,directories=no,scrollbars=no,resizable=no');
	// chiusura temporizzata
	var plop = setTimeout("newWindow.close()", 4000);
}
function redirectUrl(url)
{
	window.creator.location = url;
	window.close();
}
function autoRedirectUrl(url)
{
	self.location = url;
}
function bigImg(data)
{
	i1 = new Image;
	i1.src = data;
	html = '<html><head><title>Big Image</title></head>\n<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0">\n<center><img src="' + data + '" border="0" name="imageTest" onLoad="window.resizeTo(document.imageTest.width + 14,document.imageTest.height + 32)"></center>\n</body></html>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
}
function closeWindow()
{
	window.close()
}
//-->
