var $UTIL=TGN.namespace("TGN.Util");if("undefined"==typeof _YDom){_YDom=YAHOO.util.Dom}$UTIL.AjaxRequest=function(c,b,d,a,e){this.HTTPmethod=c;this.path=b;this.params=d;this.callerCallback=a;this.postParams=e;this.connectionObject;this.mycallback={success:this.handleSuccess,failure:this.handleFailure,scope:this};if(typeof a.timeout=="undefined"){this.mycallback.timeout=5000}else{this.mycallback.timeout=a.timeout}};$UTIL.AjaxRequest.prototype={invoke:function(){if(null==this.params||this.params.length<1){this.params="requestType=async"}else{this.params+="&requestType=async"}if(typeof requestId!="undefined"&&requestId.length>0){this.params+="&pageRequestId="+requestId}this.path=this.path+"?"+this.params;if(typeof $DD!="undefined"){$DD.updateIconStatus("wait")}this.connectionObject=YAHOO.util.Connect.asyncRequest(this.HTTPmethod,this.path,this.mycallback,this.postParams)},handleSuccess:function(a){if(typeof $DD!="undefined"){$DD.refresh()}this.callerCallback.success(a,this.callerCallback.scope)},handleFailure:function(a){if(typeof $DD!="undefined"){$DD.refresh()}this.callerCallback.failure(a,this.callerCallback.scope)},abort:function(a){if(typeof $DD!="undefined"){$DD.refresh()}return YAHOO.util.Connect.abort(this.connectionObject,this.myCallBack,a)}};