function zpopup(MyFile,MyWindow,MyWidth,MyHeight)
//MyFile :   nom du fichier contenant le code HTML du pop-up
//MyWindow :   nom de la fenêtre (ne pas mettre d'espace) 
//MyWidth :   entier indiquant la largeur de la fenêtre en pixels 
//MyHeight :   entier indiquant la hauteur de la fenêtre en pixels 

{    
var ns4 = (document.layers)? true:false;    //NS 4 
var ie4 = (document.all)? true:false;   //IE 4 
var dom = (document.getElementById)? true:false;   //DOM 
var xMax, yMax, xOffset, yOffset;;    

    if (ie4 || dom)
        {
        xMax = screen.width;
        yMax = screen.height;
        }
    else if (ns4)
        {
        xMax = window.outerWidth;
        yMax = window.outerHeight;
        }
    else
        {
        xMax = 1014;
        yMax = 748;
        }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;
    xOffset = xOffset - 5
    yOffset = yOffset - 28
    window.open(MyFile,MyWindow,'width='+MyWidth
+',height='+MyHeight
+',screenX='+xOffset
+',screenY='+yOffset
+',top='+yOffset
+',left='+xOffset
+',resizable=1,menubar=0,status=0,toolbar=0,location=0,scrollbars=1,directories=0');
    }


function popup(urlPage, nWidth, nHeight)
{
   var top=(screen.height - nHeight)/2 -28;
   var left=(screen.width - nWidth)/2 -5 ;
   
   var nPage2;
  nPage2 = window.open(urlPage, "","left="+left+",top="+top+",width="+nWidth+",height="+nHeight+",resizable=1,menubar=0,status=0,toolbar=0,location=0,scrollbars=1,directories=0");
}

function popup2(urlPage, nWidth, nHeight)
{
 var top=(screen.height-nHeight)/2;
 var left=(screen.width-nWidth)/2;
 var nPage2;
 nPage2 = window.open(urlPage, "","left="+left+",top="+top+",width="+nWidth+",height="+nHeight+",resizable=0,menubar=1,status=1,toolbar=1,location=1,scrollbars=1,directories=0");
}


