var CompanyRegisterService=function() {
CompanyRegisterService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
CompanyRegisterService.prototype={
IsUserNameExists:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(CompanyRegisterService.get_path(), 'IsUserNameExists',false,{userName:userName},succeededCallback,failedCallback,userContext); }}
CompanyRegisterService.registerClass('CompanyRegisterService',Sys.Net.WebServiceProxy);
CompanyRegisterService._staticInstance = new CompanyRegisterService();
CompanyRegisterService.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; CompanyRegisterService._staticInstance._path = value; }
CompanyRegisterService.get_path = function() { return CompanyRegisterService._staticInstance._path; }
CompanyRegisterService.set_timeout = function(value) { var e = Function._validateParams(arguments, [{name: 'timeout', type: Number}]); if (e) throw e; if (value < 0) { throw Error.argumentOutOfRange('value', value, Sys.Res.invalidTimeout); }
CompanyRegisterService._staticInstance._timeout = value; }
CompanyRegisterService.get_timeout = function() { 
return CompanyRegisterService._staticInstance._timeout; }
CompanyRegisterService.set_defaultUserContext = function(value) { 
CompanyRegisterService._staticInstance._userContext = value; }
CompanyRegisterService.get_defaultUserContext = function() { 
return CompanyRegisterService._staticInstance._userContext; }
CompanyRegisterService.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; CompanyRegisterService._staticInstance._succeeded = value; }
CompanyRegisterService.get_defaultSucceededCallback = function() { 
return CompanyRegisterService._staticInstance._succeeded; }
CompanyRegisterService.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; CompanyRegisterService._staticInstance._failed = value; }
CompanyRegisterService.get_defaultFailedCallback = function() { 
return CompanyRegisterService._staticInstance._failed; }
CompanyRegisterService.set_path("/WebService/CompanyRegisterService.asmx");
CompanyRegisterService.IsUserNameExists= function(userName,onSuccess,onFailed,userContext) {CompanyRegisterService._staticInstance.IsUserNameExists(userName,onSuccess,onFailed,userContext); }

