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();},
ValidateUser:function(email,pw,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ValidateUser',false,{email:email,pw:pw},succeededCallback,failedCallback,userContext); },
ChangePassword:function(oldpass,newpass,email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ChangePassword',false,{oldpass:oldpass,newpass:newpass,email:email},succeededCallback,failedCallback,userContext); },
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); },
UpdateProfile:function(firstName,lastName,company,phone,email,isGuest,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateProfile',false,{firstName:firstName,lastName:lastName,company:company,phone:phone,email:email,isGuest:isGuest},succeededCallback,failedCallback,userContext); },
RegisterUser:function(firstName,lastName,company,phone,username,password,email,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RegisterUser',false,{firstName:firstName,lastName:lastName,company:company,phone:phone,username:username,password:password,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.ValidateUser= function(email,pw,onSuccess,onFailed,userContext) {MembershipService._staticInstance.ValidateUser(email,pw,onSuccess,onFailed,userContext); }
MembershipService.ChangePassword= function(oldpass,newpass,email,onSuccess,onFailed,userContext) {MembershipService._staticInstance.ChangePassword(oldpass,newpass,email,onSuccess,onFailed,userContext); }
MembershipService.CreateGuest= function(firstName,lastName,company,phone,email,onSuccess,onFailed,userContext) {MembershipService._staticInstance.CreateGuest(firstName,lastName,company,phone,email,onSuccess,onFailed,userContext); }
MembershipService.UpdateProfile= function(firstName,lastName,company,phone,email,isGuest,onSuccess,onFailed,userContext) {MembershipService._staticInstance.UpdateProfile(firstName,lastName,company,phone,email,isGuest,onSuccess,onFailed,userContext); }
MembershipService.RegisterUser= function(firstName,lastName,company,phone,username,password,email,onSuccess,onFailed,userContext) {MembershipService._staticInstance.RegisterUser(firstName,lastName,company,phone,username,password,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); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
if (typeof(ValidationResult) === 'undefined') {
var ValidationResult=gtc("ValidationResult");
ValidationResult.registerClass('ValidationResult');
}

