function _bap_open_window (url, name, width, height, left, top, resizable, addCloseButton, scrollbars) {

   var auto = false;
   var _left = left;
   var _top = top;
   var _width = width;
   var _height = height;

   if (width == 'auto' && height == 'auto') {
     width = height = 100;
   }

   // Calcul de la position à l'écran
   switch (left) {
     case "center" :
     left = Math.round((screen.availWidth - width) / 2);
     break;
     case "right" :
     left = screen.availWidth - width;
     break;
   }
   switch (top) {
     case "center" :
     top  = Math.round((screen.availHeight - height) / 2);
     break;
     case "bottom" :
     top  = screen.availHeight - height;
     break;
   }

   if (_width == 'auto' && _height == 'auto') {
     url += '&autoresize=yes';
     if (_left == "right" || _left == "center") url += "&left="+left;
     if (_top == "center" || _top == "bottom") url += "&top="+top;
   }
   var features = 'width='+width+',height='+height+",top="+top+",left="+left;
   if (resizable) features += ',resizable='+resizable;
   if (scrollbars) features += ',scrollbars='+scrollbars;

   window.open(url, name, features);
}