+// coding: utf-8
// tout un tas d'améliorations de JavaScript ;)
String.prototype.trim = function() {
return jQuery.trim(this); // anciennement : this.replace(/^\s+|\s+$/g, "");
-}
+};
String.prototype.ltrim = function() {
return this.replace(/^\s+/, "");