function popImmagine(immagine,colore){ 
funzione = '<script language="javascript">function Adatta(){img=document.images[0];self.resizeTo(img.width+40,img.height+60); h=(img.width+40); w=(img.height+360); LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; TopPosition = (screen.height) ? (screen.height-h)/2 : 0; window.moveTo(LeftPosition, TopPosition);}</sc'+'ript>' 
	html = '<html><head><title></title>' + funzione + '</head>\n' 
	html+= '<body bgcolor="'+colore+'" LEFTMARGIN=10 TOPMARGIN=10 MARGINWIDTH=10 MARGINHEIGHT=10 onBlur="self.close()"><center><img src="'+immagine+'" onload="Adatta()"></center>' 
html+= '<!-- <div style="position: absolute; left: 75%; top: 80%; z-index:10"><FORM><input type="button" value="CHIUDI" class="form" onClick="window.close()"></FORM></div> -->'
	html+= '</body></html>'
pp = window.open('','popImmagine','toolbar=0') 
pp.document.open() 
pp.document.write(html) 
pp.document.close() 
pp.document.focus(); 
}

