function openWindow(url,w,h,tb,stb,l,mb,sb,rs,x,y,center){
 // url - The URL of the page to open.
 // w - The width of the window in pixels. 
 // h - The height of the window in pixels (doesn't include menubars). 
 // tb - Toolbar visible? 1 = yes, 0 = no. 
 // stb - Status bar visible? 1 = yes, 0 = no. 
 // L - Linkbar visible? 1 = yes, 0 = no. 
 // mb - Menubar visible? 1 = yes, 0 = no. 
 // sb - Scrollbars visible? 1 = yes, 0 = no. 
 // rs - Resizable window? 1 = yes, 0 = no. 
 // x - The horizontal position of the window from the left of the screen. 
 // y - The vertical position of the window from the top of the screen. 
 // center - Window in the center of the screen? 1 = yes, 0 = no. 
  if (center) {
   x = Math.floor((screen.availWidth - w - 10)/2);
   y = Math.floor((screen.availHeight - h - 52)/2);
  }
  if (x<0) x=0;
  if (y<0) y=0;
  var t=(document.layers)? ',screenX='+x+',screenY='+y: ',left='+x+',top='+y; //A LITTLE CROSS-BROWSER CODE FOR WINDOW POSITIONING
  tb=(tb)?'yes':'no'; stb=(stb)?'yes':'no'; l=(l)?'yes':'no'; mb=(mb)?'yes':'no'; sb=(sb)?'yes':'no'; rs=(rs)?'yes':'no';
  var x=window.open(url, 'newWin'+new Date().getTime(), 'scrollbars='+sb+',width='+w+',height='+h+',toolbar='+tb+',status='+stb+',menubar='+mb+',links='+l+',resizable='+rs+t);
  x.focus();
  return x;
}
function visuImg(pathImg,width,height,langue) {
  var url = "visuImage.php?langue="+langue+"&pathImg="+pathImg;
  openWindow(url,width+20,height+40,0,0,0,0,0,0,0,0,1);
}

