function popUp(URL,WDT,HGT) {
day = new Date();
id = day.getTime();
var TOP = (screen.height-HGT)/2;
var LEFT = (screen.width-WDT)/2;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width='+WDT+',height='+HGT+',left='+LEFT+',top='+TOP);");
}

function popup_img(IMG,WDT,HGT) {
  var ww, wh;
  ww = WDT + 30;
  wh = HGT + 55;
  day = new Date();
  id = day.getTime();
  var TOP = (screen.height-wh)/2;
  var LEFT = (screen.width-ww)/2;
  wid = open('',id, 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+ww+',height='+wh+',left='+LEFT+',top='+TOP);
  wid.focus();
  wid.document.open();
  wid.document.write('<html><head><title>photo boutique</title></head>');
  wid.document.write('<body bgcolor="#ffffff" text="#666666" ');
  wid.document.write('leftmargin=10 topmargin=10 ');
  wid.document.write('marginwidth=10 marginheight=10>');
  wid.document.write('<img src="'+IMG+'" width='+WDT+' height='+HGT+' ');
  wid.document.write('border=0 alt="photo boutique">');
  wid.document.write('<br>&nbsp;<br><div align="right">');
  wid.document.write('<a href="/" onclick="window.close();return false;">');
  wid.document.write('<img src="/images/popup_butt_close.gif" width=20 ');
  wid.document.write('height=18 border=0 alt="Fermer le popup"></a></div>');
  wid.document.write('</body></html>');
  wid.document.close();
} 

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0 && parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
