// JavaScript Document
 function PopUp(img){
        foto1= new Image();
        foto1.src=(img);
        Control(img);
 }
  
function Control(img){
        if((foto1.width!=0)&&(foto1.height!=0)){
               verFoto(img);
        }
   else{
       funcion="Control('"+img+"')";
               intervalo=setTimeout(funcion,1);
       }
 }
 function verFoto(img){
        ancho=foto1.width+1;
        alto=foto1.height+1;
       cadena="width="+ancho+",height="+alto;
        ventana=window.open(img,"",cadena);
  }

