function muestraImagen(img){ img1= new Image(); img1.src=(img); espera(img); return false; } function espera(img){ if((img1.width!=0)&&(img1.height!=0)){ verImagen(img); } else{ f="espera('"+img+"')"; setTimeout(f,50); } } function verImagen(img){ w=img1.width+50; h=img1.height+80; x = Math.floor((screen.width-w)/2)-5; y = Math.floor((screen.height-h)/2)-25; handle=window.open(img,"imagen","width=" + w + ",height=" + h + ",left=" + x + ",top=" + y + ",scrollbars=1" ); d=handle.document; d.open(); d.write('