function get_data(obj) { if (typeof(obj) == "undefined") { return false ; } if (typeof(obj.text) == "undefined") return obj.textContent ; else return obj.text ; } function urlencode (ch) { ch = ch.replace("/[ ]/g","+"); return escape(ch); } function urldecode (ch) { ch = ch.replace(/[+]/g," "); return unescape(ch); } function ajaxRequestFromForm(id_form, callback, params) { ObjAJAX = new AjaxClassic(); ObjAJAX.setParamFromForm(document.getElementById(id_form)); ObjAJAX.setParam({onComplete : callback+"('"+params+"', response)", returnFormat:'xml'}); ObjAJAX.execute(); return false; } function ajaxRequest(urlTo, dataString) { ObjAJAX = new AjaxClassic(); ObjAJAX.setParam ({ url : urlTo, returnFormat : "txt", method : "POST", data : dataString, asynchronus : true, onComplete : "document.body.innerHTML = response" }); ObjAJAX.execute(); } function ajaxRequest2(urlTo) { ObjAJAX = new AjaxClassic(); ObjAJAX.setParam ( { url : urlTo, returnFormat : "txt", method : "POST", data : { val1 : "1", val2 : "2", val3 : "3" }, asynchronus : true, onComplete : function (response) { return true ;}, onFailure : function (errorCode) { return true ;} }); ObjAJAX.execute(); } function ErreurObj(txt) { // Variable // this.txt = txt; this.caller = getCaller(ErreurObj.caller); // Fonction // this.toString = function () { return "Erreur : " + this.txt + " Fonction : " + this.caller; } } function isset(toTest) { return (typeof toTest != "undefined"); } // Synthaxe : Array.inArray ([String ChercheQuoi]) Boolean // Chercher pour une chaine particuliere dans un tableau function inArray(text) { for (a=0; a