
<!-- This script handles the window pop up when clicking on an image -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->


function mikeotw(img){
  img1= new Image();
  img1.src=(img);
  calcimg(img);
}
function calcimg(img){
  if((img1.width!=0)&&(img1.height!=0)){
    viewimg(img);
  }
  else{
    funzione="calcimg('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}
function viewimg(img){
  widthnew=img1.width+20;
  heightnew=img1.height+20;
  newdim="width="+widthnew+",height="+heightnew;
  final=window.open(img,"",newdim);
}


