

bNavigatorName = navigator.appName;
bNavigatorVer = parseInt(navigator.appVersion);


/************************************************************
Nom : pu_Open
Fonction : Ouvre une page dans un pop-up
Variable : bUrl = URL de la page
           bName = nom de la pop-up
           bWidth = largeur de la pop-up
           bHeight = hauteur de la pop-up
Auteur : Xavier CANY
Date : 4 Avril 1997
**************************************************************/
function pu_Open(bUrl, bName, bWidth, bHeight)
{
  var viewerpop = window.open(bUrl,bName,'location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=auto,status=no,width='+bWidth+',height='+bHeight);
  if( bNavigatorName == "Netscape" && bNavigatorVer >= 3 )
    viewerpop.focus();
  else if( bNavigatorName=="Microsoft Internet Explorer" && bNavigatorVer > 3 )
    viewerpop.focus();
}

function pu_Open_Scroll(bUrl, bName, bWidth, bHeight)
{
  var viewerpop = window.open(bUrl,bName,'location=no,toolbar=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no,width='+bWidth+',height='+bHeight);
  if( bNavigatorName == "Netscape" && bNavigatorVer >= 3 )
    viewerpop.focus();
  else if( bNavigatorName=="Microsoft Internet Explorer" && bNavigatorVer > 3 )
    viewerpop.focus();
}

function Fermer()
 {
 self.close();
 }

function open_win(page)
 {
       var msie=false;
       var appName=navigator.appName;
       if(appName.indexOf("Microsoft")==0) msie=true;
       // ------ Apparence de la nouvelle fenêtre : on laisse la barre de menus -----
       my_win=window.open(page, "my_win", "width=570,height=480,resizable=no,menubar=yes,toolbar=no,location=no");
       if(!msie) my_win.focus();
 }