function AfficherImage(img) { Image1= new Image();  Image1.src=(img);  Control(img); } 
function Control(img) {  if((Image1.width!=0)&&(Image1.height!=0)) {    VoirImage(img);  }  else {    fonction="Control('"+img+"')";    intervalle=setTimeout(fonction,20);  } } 
function VoirImage(img) {  
largeur=Image1.width+20;  hauteur=Image1.height+20;  
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
proprietes="width="+ largeur +",height="+ hauteur+",top="+top+",left="+left;  
win=window.open(img,"",proprietes); }

