function __JScriptURLEncode(clearString){                    var output = ''; var x = 0; clearString = clearString.toString(); var regex = /(^[a-zA-Z0-9_.]*)/; while (x < clearString.length) {   var match = regex.exec(clearString.substr(x));   if (match != null && match.length > 1 && match[1] != '') {   	output += match[1];     x += match[1].length;   } else {     if (clearString[x] == ' ')      output += '+';    else {      var charCode = clearString.charCodeAt(x);       var hexVal = charCode.toString(16);      output += '%' + ( hexVal.length < 2 ? '0' : '' ) + hexVal.toUpperCase();    }    x++;  }} return output;};function MainClientMethods(_r, u){this.R = _r;this.F = u;    this.U = "/js/JavascriptProxy.ashx";};MainClientMethods.prototype.set_Page = function(value){    var s = new Array();    s.push("<root><data>");    s.push("<className><![CDATA[");    s.push("Ypuh20XxijCVIDtNPO3RqfEGYhBMkQ%2bKL2L09q0jHNLEnNiMjA3Zpbo6fN30Mcnr");    s.push("]]></className>");    s.push("<functionName><![CDATA[");    s.push("ThUQ7jB5cI10%2f66cdzL2JA%3d%3d");    s.push("]]></functionName>");    s.push("<params>");    s.push("<value type=\"System.Web.UI.Page\" ><![CDATA["+__JScriptURLEncode(value)+"]]></value>");    s.push("</params>");    s.push("</data></root>");    var p = new Array();    p["xmlData"] = s.join("");    var a = new AJAXObj(this.U, this.R, true, p, this.F, (this.F != null), false, null, false);    a.Send();};MainClientMethods.prototype.InsertGuestBook = function(strXml){    var s = new Array();    s.push("<root><data>");    s.push("<className><![CDATA[");    s.push("Ypuh20XxijCVIDtNPO3RqfEGYhBMkQ%2bKL2L09q0jHNLEnNiMjA3Zpbo6fN30Mcnr");    s.push("]]></className>");    s.push("<functionName><![CDATA[");    s.push("kWJZkfy0MhvN9PT5N94Vuw%3d%3d");    s.push("]]></functionName>");    s.push("<params>");    s.push("<strXml type=\"System.String\" ><![CDATA["+__JScriptURLEncode(strXml)+"]]></strXml>");    s.push("</params>");    s.push("</data></root>");    var p = new Array();    p["xmlData"] = s.join("");    var a = new AJAXObj(this.U, this.R, true, p, this.F, (this.F != null), false, null, false);    a.Send();};MainClientMethods.prototype.GetAddGuestBookControl = function(){    var s = new Array();    s.push("<root><data>");    s.push("<className><![CDATA[");    s.push("Ypuh20XxijCVIDtNPO3RqfEGYhBMkQ%2bKL2L09q0jHNLEnNiMjA3Zpbo6fN30Mcnr");    s.push("]]></className>");    s.push("<functionName><![CDATA[");    s.push("IVAFBRTXkHoYYyLVK1YdX4kBvmozcVfpd3YG8n4Vvh4%3d");    s.push("]]></functionName>");    s.push("</data></root>");    var p = new Array();    p["xmlData"] = s.join("");    var a = new AJAXObj(this.U, this.R, true, p, this.F, (this.F != null), false, null, false);    a.Send();};MainClientMethods.prototype.GetGuestBookControl = function(){    var s = new Array();    s.push("<root><data>");    s.push("<className><![CDATA[");    s.push("Ypuh20XxijCVIDtNPO3RqfEGYhBMkQ%2bKL2L09q0jHNLEnNiMjA3Zpbo6fN30Mcnr");    s.push("]]></className>");    s.push("<functionName><![CDATA[");    s.push("iUA3iUfii2xRhl1U6JztSb9dq%2bfzJIDc5YFM5uxdQlg%3d");    s.push("]]></functionName>");    s.push("</data></root>");    var p = new Array();    p["xmlData"] = s.join("");    var a = new AJAXObj(this.U, this.R, true, p, this.F, (this.F != null), false, null, false);    a.Send();};MainClientMethods.prototype.Roles = function(){    var s = new Array();    s.push("<root><data>");    s.push("<className><![CDATA[");    s.push("Ypuh20XxijCVIDtNPO3RqfEGYhBMkQ%2bKL2L09q0jHNLEnNiMjA3Zpbo6fN30Mcnr");    s.push("]]></className>");    s.push("<functionName><![CDATA[");    s.push("cmOd0W3%2fByWLDx7Tvr7FhA%3d%3d");    s.push("]]></functionName>");    s.push("</data></root>");    var p = new Array();    p["xmlData"] = s.join("");    var a = new AJAXObj(this.U, this.R, true, p, this.F, (this.F != null), false, null, false);    a.Send();};