Type.registerNamespace('com.realprosystems.agentsystem.AjaxServices');
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService=function() {
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.get_path();},
SendAgentReferral:function(systemid,name,company,city,state,site,email,phone,linktitle,description,location,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SendAgentReferral',false,{systemid:systemid,name:name,company:company,city:city,state:state,site:site,email:email,phone:phone,linktitle:linktitle,description:description,location:location},succeededCallback,failedCallback,userContext); }}
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.registerClass('com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService',Sys.Net.WebServiceProxy);
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance = new com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService();
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.set_path = function(value) { com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.set_path(value); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.get_path = function() { return com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.get_path(); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.set_timeout = function(value) { com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.set_timeout(value); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.get_timeout = function() { return com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.get_timeout(); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.set_defaultUserContext = function(value) { com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.set_defaultUserContext(value); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.get_defaultUserContext = function() { return com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.get_defaultUserContext(); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.set_defaultSucceededCallback = function(value) { com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.set_defaultSucceededCallback(value); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.get_defaultSucceededCallback = function() { return com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.get_defaultSucceededCallback(); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.set_defaultFailedCallback = function(value) { com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.set_defaultFailedCallback(value); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.get_defaultFailedCallback = function() { return com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.get_defaultFailedCallback(); }
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.set_path("/AgentReferralWebService.asmx");
com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService.SendAgentReferral= function(systemid,name,company,city,state,site,email,phone,linktitle,description,location,onSuccess,onFailed,userContext) {com.realprosystems.agentsystem.AjaxServices.AgentReferralWebService._staticInstance.SendAgentReferral(systemid,name,company,city,state,site,email,phone,linktitle,description,location,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('com.realprosystems.web.agentsystem');
if (typeof(com.realprosystems.web.agentsystem.AjaxResult) === 'undefined') {
com.realprosystems.web.agentsystem.AjaxResult=gtc("com.realprosystems.web.agentsystem.AjaxResult");
com.realprosystems.web.agentsystem.AjaxResult.registerClass('com.realprosystems.web.agentsystem.AjaxResult');
}
