// JavaScript Document
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function Foto(img){
  foto1= new Image();
  foto1.src=(img);
  Check(img);
}
function Check(img){
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    func="Check('"+img+"')";
    interval=setTimeout(func,20);
  }
}
function viewFoto(img){
  winwidth=foto1.width+20;
  winheight=foto1.height+20;
  string="width="+winwidth+",height="+winheight;
  window=window.open(img,"",string);
}
//  End -->
