var MembershipService=function() {
MembershipService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MembershipService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MembershipService._staticInstance.get_path();},
CreateGuest:function(firstName,lastName,company,phone,email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateGuest',false,{firstName:firstName,lastName:lastName,company:company,phone:phone,email:email},succeededCallback,failedCallback,userContext); },
CreateUser:function(firstName,lastName,company,phone,username,password,email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'CreateUser',false,{firstName:firstName,lastName:lastName,company:company,phone:phone,username:username,password:password,email:email},succeededCallback,failedCallback,userContext); },
IsUserAvailable:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUserAvailable',false,{userName:userName},succeededCallback,failedCallback,userContext); },
IsUserAccountActive:function(userName,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUserAccountActive',false,{userName:userName},succeededCallback,failedCallback,userContext); }}
MembershipService.registerClass('MembershipService',Sys.Net.WebServiceProxy);
MembershipService._staticInstance = new MembershipService();
MembershipService.set_path = function(value) { MembershipService._staticInstance.set_path(value); }
MembershipService.get_path = function() { return MembershipService._staticInstance.get_path(); }
MembershipService.set_timeout = function(value) { MembershipService._staticInstance.set_timeout(value); }
MembershipService.get_timeout = function() { return MembershipService._staticInstance.get_timeout(); }
MembershipService.set_defaultUserContext = function(value) { MembershipService._staticInstance.set_defaultUserContext(value); }
MembershipService.get_defaultUserContext = function() { return MembershipService._staticInstance.get_defaultUserContext(); }
MembershipService.set_defaultSucceededCallback = function(value) { MembershipService._staticInstance.set_defaultSucceededCallback(value); }
MembershipService.get_defaultSucceededCallback = function() { return MembershipService._staticInstance.get_defaultSucceededCallback(); }
MembershipService.set_defaultFailedCallback = function(value) { MembershipService._staticInstance.set_defaultFailedCallback(value); }
MembershipService.get_defaultFailedCallback = function() { return MembershipService._staticInstance.get_defaultFailedCallback(); }
MembershipService.set_path("/services/MembershipService.asmx");
MembershipService.CreateGuest= function(firstName,lastName,company,phone,email,onSuccess,onFailed,userContext) {MembershipService._staticInstance.CreateGuest(firstName,lastName,company,phone,email,onSuccess,onFailed,userContext); }
MembershipService.CreateUser= function(firstName,lastName,company,phone,username,password,email,onSuccess,onFailed,userContext) {MembershipService._staticInstance.CreateUser(firstName,lastName,company,phone,username,password,email,onSuccess,onFailed,userContext); }
MembershipService.IsUserAvailable= function(userName,onSuccess,onFailed,userContext) {MembershipService._staticInstance.IsUserAvailable(userName,onSuccess,onFailed,userContext); }
MembershipService.IsUserAccountActive= function(userName,onSuccess,onFailed,userContext) {MembershipService._staticInstance.IsUserAccountActive(userName,onSuccess,onFailed,userContext); }
