function openNotFixedWindow (urlDest, width, height, target, blankPage)
{
    var dlg;
    var name = '_blank';
    if ( target != null && target != '' ) name = target;

    dlg = window.open(blankPage, name, 'resizable=yes,scrollbars=yes,width='+width+', height='+height);
    dlg.location.href = urlDest;
    dlg.opener = window;
}

function insertChar (c) { document.write('&'+c+';'); }

function espace () { insertChar('nbsp'); }

function loadFileName (filePath, num)
{
    var reg = /\\\\/g;
    var tableau = filePath.split(reg);
    document.all.item("CV_PIECES_JOINTES.CPJ_NOM_FILE."+num).value = tableau[tableau.length-1] ;
}