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,20);	}}function verFoto(img){	ancho=foto1.width+20;	alto=foto1.height+20;	cadena="width="+ancho+",height="+alto;	ventana=window.open(img,"",cadena);}