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

