	function ZoomIt( sImgFileName, nBorderInPixel_UnUsed, bOtherZoomWin, bBiggestZoom ) {
		var nBorderInPixel = 0;
		var nSizeBase = 496;
		var d = new Date();
		var sPageName = 'ZoomPage';
		if (bOtherZoomWin) sPageName='Zoom'+d.getHours()+d.getMinutes()+d.getSeconds();
		wWin=window.open('../common/zoom.html?sImgFileName='+sImgFileName,sPageName,'width='+nSizeBase+', height=600,resizable=yes,scrollbars=yes');
	}
	
	function ZoomIt_QuasiOriginale( sImgFileName, nBorderInPixel_UnUsed, bOtherZoomWin, bBiggestZoom ) {
		var nBorderInPixel = 0;
		var nSizeBase = 496;
		var d = new Date();
		var sPageName = 'ZoomPage';
		if (bOtherZoomWin) sPageName='Zoom'+d.getHours()+d.getMinutes()+d.getSeconds();

		if (bBiggestZoom) {
				wWin = window;			
		} else {
				wWin=window.open('',sPageName,'width='+nSizeBase+', height=600,resizable=yes,scrollbars=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('<a href="javascript:ZoomIt(\''+sImgFileName+'\',10,true,true);"><IMG ID="IMMAGINE" SRC="'+ sImgFileName+ '" BORDER="0"><a>\n');
		wWin.document.write('</td></tr></table>\n');

		wWin.document.write('<script language="javascript" src="../scripts/zoom.js"></script>/n');	//script = scri+pt per non avere problemi di visualizzazione codice in DW
		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('+nSizeBase+', '+nSizeBase+'); \n');
		wWin.document.write('width = '+nSizeBase+' - (document.body.clientWidth -  document.images[0].width) + '+2*nBorderInPixel+'; \n');
		wWin.document.write('height = '+nSizeBase+' - (document.body.clientHeight -  document.images[0].height) + '+2*nBorderInPixel+'; \n');
		wWin.document.write('height = '+nSizeBase+'; \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();

	}
	
	

