
function popup(url) 
{
 var width  = 790;
 var height = 500;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

function popit(url) 
{
 var width  = 400;
 var height = 400;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

function checkKeycode(e) {
    var keycode;

    if (window.event) {
        e = window.event;
        keycode = window.event.keyCode;
    }
    else if (e) {
        keycode = e.which;
    }

    if (isNaN(String.fromCharCode(keycode)) && keycode != 8 && keycode != 9) {
        return false;
    }
}

function EnleverTexte(obj, texte) {
    if (obj.value == texte) {
        obj.value = '';
    }
}

function RemettreTexte(obj, texte) {
    if (obj.value == '') {
        obj.value = texte;
    }
}


