function popupImage(img,texte) {
	titre="intranet images";
	w=open("",'image','width=100,height=100,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE>");
	w.document.write("<style type='text/css'>");
	w.document.write("<!--");
	w.document.write("A:link { text-decoration: none;color: #003399;background-color: #FFFFFF;font-family: Verdana, Arial, Helvetica, PrimaSans BT,sans-serif;font-size: 11px;}");
	w.document.write("A:visited {text-decoration: none;color: #003399;background-color: #FFFFFF;font-family: Verdana, Arial, Helvetica, PrimaSans BT,sans-serif;font-size: 11px;}");
	w.document.write("A:hover {text-decoration: none;color: #FFFFFF;background-color: #003399;font-family: Verdana, Arial, Helvetica, PrimaSans BT,sans-serif;font-size: 11px;}");
	w.document.write("A:active {text-decoration: none;color: #003399;background-color: #FFFFFF;font-family: Verdana, Arial, Helvetica, PrimaSans BT,sans-serif;font-size: 11px;}");
	w.document.write(".txt {  font-size: 11px;  color: #000000; font-family: Verdana, Arial, Helvetica, sans-serif; }");
	w.document.write("-->");
	w.document.write("</style>");
	w.document.write("</HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+60); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY bgcolor='#FFFFFF' onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><CENTER><IMG src='"+img+"' border=0>");
	w.document.write("<br><span class='txt'>");
	w.document.write(texte);
	w.document.write("</span>");
	w.document.write("<br><a href=# onclick='javascript:window.close();'>Fermer</a>");
	w.document.write("</CENTER>");
	w.document.write("</BODY></HTML>");
	w.document.close();
}

var pop = null;
function openPop(myUrl,w, h, scroll) {
  if (pop) return false;
  var winl = (screen.width - w) / 2;
  var wint = (screen.height - h) / 2;
  winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
  pop = window.open(myUrl, 'pop', winprops);
  if (parseInt(navigator.appVersion) >= 4) { pop.window.focus(); }
}
function closePop(){
  if (pop) {
    if (!pop.closed) {
      pop.close();
    }
    pop = null;
}
}
