var Reg=function() {
Reg.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Reg.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Reg._staticInstance.get_path();},
CheckHaveObject:function(name,succeededCallback, failedCallback, userContext) {
/// <param name="name" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'CheckHaveObject',false,{name:name},succeededCallback,failedCallback,userContext); },
CheckCompanyName:function(name,succeededCallback, failedCallback, userContext) {
/// <param name="name" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'CheckCompanyName',false,{name:name},succeededCallback,failedCallback,userContext); }}
Reg.registerClass('Reg',Sys.Net.WebServiceProxy);
Reg._staticInstance = new Reg();
Reg.set_path = function(value) {
Reg._staticInstance.set_path(value); }
Reg.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Reg._staticInstance.get_path();}
Reg.set_timeout = function(value) {
Reg._staticInstance.set_timeout(value); }
Reg.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Reg._staticInstance.get_timeout(); }
Reg.set_defaultUserContext = function(value) { 
Reg._staticInstance.set_defaultUserContext(value); }
Reg.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Reg._staticInstance.get_defaultUserContext(); }
Reg.set_defaultSucceededCallback = function(value) { 
 Reg._staticInstance.set_defaultSucceededCallback(value); }
Reg.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Reg._staticInstance.get_defaultSucceededCallback(); }
Reg.set_defaultFailedCallback = function(value) { 
Reg._staticInstance.set_defaultFailedCallback(value); }
Reg.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Reg._staticInstance.get_defaultFailedCallback(); }
Reg.set_path("/cn/Reg.asmx");
Reg.CheckHaveObject= function(name,onSuccess,onFailed,userContext) {
/// <param name="name" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Reg._staticInstance.CheckHaveObject(name,onSuccess,onFailed,userContext); }
Reg.CheckCompanyName= function(name,onSuccess,onFailed,userContext) {
/// <param name="name" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Reg._staticInstance.CheckCompanyName(name,onSuccess,onFailed,userContext); }
