	function ZoomIt( sImgFileName, nBorderInPixel, bOtherZoomWin ) {
		var d = new Date();
		var sPageName = 'ZoomPage';
		if (bOtherZoomWin) sPageName='Zoom'+d.getHours()+d.getMinutes()+d.getSeconds();

		wWin=window.open('',sPageName,'width=200, height=200,resizable=yes');
		wWin.document.write('<HTML><HEAD><TITLE>Zoom image</TITLE>\n');

		wWin.document.write('\n');
		wWin.document.write('\n');

		wWin.document.write('</HEAD><BODY bgcolor="#FFFFFF" onload="ResizeMe();" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n');
		wWin.document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle">\n');
		wWin.document.write('<IMG ID="IMMAGINE" SRC="'+ sImgFileName+ '" BORDER="0">\n');
		wWin.document.write('</td></tr></table>\n');

		wWin.document.write('<script language="javascript">\n');	//script = scri+pt per non avere problemi di visualizzazione codice in DW
		wWin.document.write('\n');

		wWin.document.write('var isNS4 = (navigator.appName.indexOf("Netscape") >= 0 && \n');
		wWin.document.write('                parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5) ? 1 : 0; \n');
		wWin.document.write('var isNS6 = (navigator.appName.indexOf("Netscape") >= 0 && \n');
		wWin.document.write('                parseFloat(navigator.appVersion) >= 5) ? 1 : 0; \n');
		wWin.document.write('var isIE4 = (document.all) ? 1 : 0; \n');
		wWin.document.write('\n');
		wWin.document.write('\n');
		wWin.document.write('function ResizeMe() { \n');

		wWin.document.write('if (isNS6) { \n');
		wWin.document.write('window.innerWidth = document.images[0].width+'+2*nBorderInPixel+'; \n');
		wWin.document.write('window.innerHeight = document.images[0].height+'+2*nBorderInPixel+'; \n');
		wWin.document.write('} \n');

		wWin.document.write('if (isNS4) { \n');
		wWin.document.write('window.innerWidth = document.images[0].width+'+2*nBorderInPixel+'; \n');
		wWin.document.write('window.innerHeight = document.images[0].height+'+2*nBorderInPixel+'; \n');
		wWin.document.write('} \n');

		wWin.document.write('if (isIE4) { \n');
		wWin.document.write('window.resizeTo(500, 500); \n');
		wWin.document.write('width = 500 - (document.body.clientWidth -  document.images[0].width) + '+2*nBorderInPixel+'; \n');
		wWin.document.write('height = 500 - (document.body.clientHeight -  document.images[0].height) + '+2*nBorderInPixel+'; \n');
		wWin.document.write('window.resizeTo(width, height); \n');
		wWin.document.write('} \n');

		wWin.document.write('} \n');
		wWin.document.write('\n');
		wWin.document.write('ResizeMe();');

		wWin.document.write('\n');
		wWin.document.write('</script>\n');	//script = scri+pt per non avere problemi di visualizzazione codice in DW

		wWin.document.write('</BODY></HTML>\n');

		wWin.document.close();

	}
	
	
