

function newW( imgName, imgWidth, imgHeight, imgCaption) {
	
	textColor = "#000000";
	bgColor = "#ffffff";
	chars = imgCaption.length*10;
		
	w = window.open('','Ingrandimento','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=800,height=650');
	w.document.write( "<html><head><title>www.sicurlux.it</title>" );
	w.document.write( "<STYLE TYPE='text/css'>" );
	w.document.write( "A {font-family: verdana; font-size: 10px; color: "+textColor+"; text-decoration : none;}" );
	w.document.write( "A:Visited {font-family: verdana;font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Active { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "A:Hover { font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "BODY {font-family: verdana; font-size: 10px; color: "+textColor+"; }" );
	w.document.write( "</STYLE>" );
	w.document.write( "<script language='JavaScript'>\n");
	//w.document.write( "IE5=NN4=NN6=false\n");
	w.document.write( "if(document.all)IE5=true;\n");
	//w.document.write( "else if(document.getElementById)NN6=true\n");
	//w.document.write( "else if(document.layers)NN4=true\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( " imgH=document.images[0].height\n");
	w.document.write( " imgW=document.images[0].width\n");
        w.document.write( "	if(IE5 && (imgH<600)) { \n");
	w.document.write( " if ("+chars+">imgW) test= 17+18*("+chars+"/imgW)\n");
	w.document.write( "	else if("+chars+"!=0) test=30\n");
	w.document.write( "	else test=0\n");
	w.document.write( " self.resizeTo(document.images[0].width+28,document.images[0].height+110+test)\n");
	w.document.write( " }\n");
	w.document.write( " else { \n");
	w.document.write( " document.all['imgBody'].scroll='yes'; \n");
	w.document.write( " self.resizeTo(document.images[0].width+40,600)\n");
	w.document.write( " }\n");
	// w.document.write( "	else top.window.resizeTo(document.images[0].width,document.images[0].height+55+test)\n");
	w.document.write( "	self.focus()\n");
        w.document.write( "}\n</scr");
	w.document.write( "ipt>\n");
	w.document.write( "</head><body id='imgBody' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad=" );
	w.document.write( "'javascript:autoSize();'>" );
	w.document.write( "<table cellpadding=0 cellspacing=2 border=0 align='center' width='90%'><tr><td align='left' ><font size=2>www.sicurlux.it</font></td><td align='right' valign='top'><a href='javascript:top.window.close();'>[chiudi]</a></td></tr><tr><td colspan=2 align='center'><img src='"+imgName+"' border=0></td></tr>" );
	w.document.write( "<tr>" );
	w.document.write( "<td align='center' colspan='2'><b><a>"+imgCaption+"</a></b></td>" );
	w.document.write( "</tr>" );
	w.document.write( "</table>");
        w.document.write( "</body></html>" );
	w.document.close();
}
