//Même action que trim sous PHP
function trim (string){
    return string.replace(/^\s+/g,'').replace(/\s+$/g,'');
}


