function openpop(page,fenetre,width,height)
{
var left=(screen.width-width)/2;
var top=(screen.height-height-100)/2; 
window.open(page,fenetre,config='toolbar=no, menubar=no, scrollbars=yes, resizable=no, location=no, directories=no, status=yes,left='+left+',top='+top+', width='+width+', height='+height);
}

function refreshParent() {
window.opener.location.href = window.opener.location.href;
if (window.opener.progressWindow)
{
window.opener.progressWindow.close()
}
window.close();
}



function OpenPopUp(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 = 800;
        yMax = 600;
        }
    xOffset = (xMax - MyWidth)/2;
    yOffset = (yMax - MyHeight)/2;
    window.open(MyFile,MyWindow,'width='+MyWidth
+',height='+MyHeight
+',screenX='+xOffset
+',screenY='+yOffset
+',top='+yOffset
+',left='+xOffset
+',scrollbars=yes,resizable=yes');
    }
function OuvrirPop(url,nom,haut,Gauche,largeur,hauteur,options) {
 ouvpop=window.open(url,"top="+haut+",left="+Gauche+",width="+largeur+",height="+hauteur+","+options);
}