GetDataJSON=function(a){bindMethods(this);this.ss=a;this.er=[{status:0,result:0}]};GetDataJSON.prototype={getDataJSON:function(d,a){var b="?ss="+this.ss;for(var c in d){b+="&"+encodeURIComponent(c)+"="+urlEncode(d[c])}this.getCommentsJson=loadJSONDoc(a+b);this.getCommentsJson.addCallbacks(this.callbackRPC,this.metadataFetchFailed)},setCallbackJSON:function(b,a){this.callback=bind(b,a)},callbackRPC:function(a){this.callback(a)},metadataFetchFailedJSON:function(a){this.callback(a)},callbackPOST:function(){if(this.http.readyState==4){var res=eval("("+this.http.responseText+")");if(res){this.callbackRPC(res)}}},postDataJSON:function(d,a){this.http=this.getXHTTP();var b="ss="+this.ss;for(var c in d){b+="&"+encodeURIComponent(c)+"="+urlEncode(d[c])}this.http.open("POST",a,true);this.http.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.http.setRequestHeader("Accept-Encoding","gzip, deflate");this.http.setRequestHeader("Content-length",b.length);this.http.setRequestHeader("Connection","close");this.http.onreadystatechange=this.callbackPOST;this.http.send(b)},getXHTTP:function(){var d;try{d=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{d=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){try{d=new XMLHttpRequest()}catch(a){d=false}}}return d}};
