var Registration=function() {
Registration.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Registration.prototype={
UsernameAvailable:function(username,succeededCallback, failedCallback, userContext) {
return this._invoke(Registration.get_path(), 'UsernameAvailable',false,{username:username},succeededCallback,failedCallback,userContext); }}
Registration.registerClass('Registration',Sys.Net.WebServiceProxy);
Registration._staticInstance = new Registration();
Registration.set_path = function(value) { 
var e = Function._validateParams(arguments, [{name: 'path', type: String}]); if (e) throw e; Registration._staticInstance._path = value; }
Registration.get_path = function() { return Registration._staticInstance._path; }
Registration.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); }
Registration._staticInstance._timeout = value; }
Registration.get_timeout = function() { 
return Registration._staticInstance._timeout; }
Registration.set_defaultUserContext = function(value) { 
Registration._staticInstance._userContext = value; }
Registration.get_defaultUserContext = function() { 
return Registration._staticInstance._userContext; }
Registration.set_defaultSucceededCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultSucceededCallback', type: Function}]); if (e) throw e; Registration._staticInstance._succeeded = value; }
Registration.get_defaultSucceededCallback = function() { 
return Registration._staticInstance._succeeded; }
Registration.set_defaultFailedCallback = function(value) { 
var e = Function._validateParams(arguments, [{name: 'defaultFailedCallback', type: Function}]); if (e) throw e; Registration._staticInstance._failed = value; }
Registration.get_defaultFailedCallback = function() { 
return Registration._staticInstance._failed; }
Registration.set_path("/services/Registration.asmx");
Registration.UsernameAvailable= function(username,onSuccess,onFailed,userContext) {Registration._staticInstance.UsernameAvailable(username,onSuccess,onFailed,userContext); }
