if(typeof Ajax=="undefined"){Ajax={}}if(typeof Ajax.Web=="undefined"){Ajax.Web={}}Ajax.Web.NameValueCollection=function(a){this.__type="System.Collections.Specialized.NameValueCollection";this.keys=[];this.values=[];if(a!=null&&!isNaN(a.length)){for(var b=0;b<a.length;b++){this.add(a[b][0],a[b][1])}}};Object.extend(Ajax.Web.NameValueCollection.prototype,{add:function(b,a){if(b==null||b.constructor!=String||a==null||a.constructor!=String){return -1}this.keys.push(b);this.values.push(a);return this.values.length-1},containsKey:function(b){for(var a=0;a<this.keys.length;a++){if(this.keys[a]==b){return true}}return false},getKeys:function(){return this.keys},getValue:function(a){for(var b=0;b<this.keys.length&&b<this.values.length;b++){if(this.keys[b]==a){return this.values[b]}}return null},setValue:function(b,a){if(b==null||b.constructor!=String||a==null||a.constructor!=String){return -1}for(var c=0;c<this.keys.length&&c<this.values.length;c++){if(this.keys[c]==b){this.values[c]=a}return c}return this.add(b,a)},toJSON:function(){return AjaxPro.toJSON({__type:this.__type,keys:this.keys,values:this.values})}},true);if(typeof Ajax=="undefined"){Ajax={}}if(typeof Ajax.Web=="undefined"){Ajax.Web={}}Ajax.Web.DataSet=function(b){this.__type="System.Data.DataSet,System.Data";this.Tables=[];this.addTable=function(c){this.Tables.push(c)};if(b!=null){for(var a=0;a<b.length;a++){this.addTable(b[a])}}};if(typeof Ajax=="undefined"){Ajax={}}if(typeof Ajax.Web=="undefined"){Ajax.Web={}}Ajax.Web.Profile=function(){this.toJSON=function(){throw"Ajax.Web.Profile cannot be converted to JSON format."};this.setProperty_callback=function(a){};this.setProperty=function(b,a){this[b]=a;AjaxPro.Services.Profile.SetProfile({name:o},this.setProperty_callback.bind(this))}};if(typeof Ajax=="undefined"){Ajax={}}if(typeof Ajax.Web=="undefined"){Ajax.Web={}}Ajax.Web.Dictionary=function(c,a){this.__type=c;this.keys=[];this.values=[];if(a!=null&&!isNaN(a.length)){for(var b=0;b<a.length;b++){this.add(a[b][0],a[b][1])}}};Object.extend(Ajax.Web.Dictionary.prototype,{add:function(b,a){this.keys.push(b);this.values.push(a);return this.values.length-1},containsKey:function(b){for(var a=0;a<this.keys.length;a++){if(this.keys[a]==b){return true}}return false},getKeys:function(){return this.keys},getValue:function(b){for(var a=0;a<this.keys.length&&a<this.values.length;a++){if(this.keys[a]==b){return this.values[a]}}return null},setValue:function(b,a){for(var c=0;c<this.keys.length&&c<this.values.length;c++){if(this.keys[c]==b){this.values[c]=a}return c}return this.add(b,a)},toJSON:function(){return AjaxPro.toJSON({__type:this.__type,keys:this.keys,values:this.values})}},true);

