function imageWindow(img){
  newImage = new Image();
  newImage.src = (img);
  chkImage(img);
}
function chkImage(img){
  if((newImage.width != 0) && (newImage.height != 0)){
    viewImage(img);
  }
  else{
    funzione="chkImage('"+img+"')";
    intervallo=setTimeout(funzione,0);
  }
}
function viewImage(img){
  imageWidth = newImage.width + 20;
  imageHeight = newImage.height + 25;
  parmString = "width = " + imageWidth + ",height = " + imageHeight;
  newWindow = window.open(img,'title',parmString);
  newWindow.document.title = "Eastern Trophies"
}
