function tlimage(img){
  photo= new Image();
  photo.src=(img);
  Imagefunc(img);
}
function Imagefunc(img, name, width, height){
  if((photo.width!=0)&&(photo.height!=0)){
    Resizer(img);
  }
  else{
    noopener="Imagefunc('"+img+"')";
    interval=setTimeout(noopener,20);
  }
}
function Resizer(img){
  widthlgr=photo.width+20;
  heightlgr=photo.height+20;
  composite="width="+widthlgr+",height="+heightlgr;
  var finestra=window.open(img,"",composite);

}
