
function popup(page,taillex,tailley) {
  window.open(page,'popup','width='+taillex+',height='+tailley+',toolbar=no,scrollbars=yes'); 
}

var popWin;
function PopupImage(img, largeur, hauteur, titre)
{ if(popWin && ! popWin.closed) popWin.close(); 
  popWin=open("",'image',"width="+largeur+",height="+hauteur+",toolbar=no,scrollbars=no,resizable=yes,status=no,location=no"); 

  var hh="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n";

  hh+= "<html><head><title>"+titre+"</title>\n";
  hh+='<script type="text/javascript">\n';
  hh+='function raise() { self.focus(); }\n';
  hh+='function decouple() { setTimeout("raise()",50); }\n';
  hh+='window.onload=decouple;<\/script>\n</head>\n';

  hh+= "<body bgcolor=\"white\" style=\"margin: 0 0 0 0;\">\n";
  hh+= "<a href=\"javascript:close();\"><img src=\""+img+"\" border=\"0\" alt=\"\" /></a>\n";
  hh+= "</body></html>\n"; 
  popWin.document.write(hh); 
  popWin.document.close(); 
}

/*
w=open("",'image','width='+largeur+',height='+hauteur+',toolbar=no,scrollbars=no,resizable=no,status=no,location=no'); 
w.document.write("<html><head><title>"+titre+"</title></head>"); 
w.document.write("<script language=\"javascript\">function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>"); 
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><A HREF='#' onClick='top.close()'><IMG src='"+img+"' border='0' alt='"+img+"' title='Cliquer pour fermer.'></A>"); 
w.document.write("</td></tr></table>");
w.document.write("</body></html>"); 
w.document.close(); 
*/
