function pop(url,wdw,w,h,s) {
	if (s==1){w+=16}
	var winleft=(screen.width - w)/2;
	var wintop=(screen.height - h)/2;
	winPop=window.open(url, wdw, 'width='+w+',height='+h+',left='+winleft+',top='+wintop+',screenX=0,screenY=0,directories=0,location=0,menubar=0,scrollbars='+s+',status=0,toolbar=0,resizable=1');
	winPop.focus();
}

function pop_etude() {
	newpage=open("",'newpopup','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');
	newpage.document.write("<? $url = $_GET['url']; include($url); ?>");
}

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;
  proprietes="width="+ largeur +",height="+ hauteur;
  win=window.open(img,"",proprietes);
}
