function apri(img) {

finestra = open("","","width=10%,height=10%,toolbars=no,resizable=yes");
testo="<html><body style='margin:0px;'><table border=0 width=100% height=100% cellspacing=0 cellpadding=0><tr><td align=center><img src='" +img +"' onload='self.resizeTo(document.images[0].width+100, document.images[0].height+100); return true;'></td></tr></table></body></html>";
finestra.document.write(testo);
finestra.document.close();
}






