var PopUpWindow;
function PopUp(src,name,width, height, screenx, screeny, scrollbar, resize, toolbar, status, menubar, location, directories) {
    var size, pos;
    size = '';
    pos = '';
    if (width > 0)		size = ',width='+width;
    if (height > 0)		size = size + ',height='+height;
    if (screenx >= 0)	pos = ',screenX='+screenx+',left='+screenx;
    if (screeny >= 0)	pos = pos + ',screenY='+screeny+',top='+screeny;
    scrollbar = (scrollbar == 1)?'yes':'no';
    resize = (resize == 1)?'yes':'no';
    toolbar = (toolbar == 1)?'yes':'no';
    status = (status == 1)?'yes':'no';
    menubar = (menubar == 1)?'yes':'no';
    location = (location == 1)?'yes':'no';
    directories = (directories == 1)?'yes':'no';
    //Ouverture de la pop-up
    //PopUpWindow = 
    window.open(src, name,'scrollbars='+scrollbar+',resizable='+resize+',toolbar='+toolbar+',status='+status+',menubar='+menubar+',location='+location+',directories='+directories+size+pos);
    //if (PopUpWindow != null)
    //	PopUpWindow.focus();

}

