oboutGrid.prototype.validateColumnTypes=function(){for(var a=0;a<this.ColumnsCollection.length;a++)if(this.ColumnsCollection[a].DataField!=""&&this.ColumnsCollection[a].ReadOnly==false&&(this.ColumnsCollection[a].Visible==true||this.RowEditTemplateId)){var b="",d=null,c=false;if(this.RowEditTemplateId==""){if(this.ColumnsCollection[a].ControlID&&this.ColumnsCollection[a].ControlPropertyName)var b=this.getValueFromTemplateControl(this.ColumnsCollection[a].ControlID,this.ColumnsCollection[a].ControlPropertyName)}else if(this.ColumnsCollection[a].RowEditTemplateControlID&&this.ColumnsCollection[a].RowEditTemplateControlPropertyName)var b=this.getValueFromTemplateControl(this.ColumnsCollection[a].RowEditTemplateControlID,this.ColumnsCollection[a].RowEditTemplateControlPropertyName);if(c==false)try{if(this.TypeValidator.validate(this.ColumnsCollection[a].Type,b)==false||this.ColumnsCollection[a].AllowNulls==true&&b.length==0){this.Localization_TypeValidationError!=""&&alert(this.Localization_TypeValidationError.replace("XXXXX",this.ColumnsCollection[a].HeaderText));return false}else if(this.ColumnsCollection[a].MaxLength!=""&&this.ColumnsCollection[a].MaxLength!="0"&&this.ColumnsCollection[a].MaxLength!="-1"&&b.length>this.ColumnsCollection[a].MaxLength){this.Localization_MaxLengthValidationError!=""&&alert(this.Localization_MaxLengthValidationError.replace(/XXXXX/g,this.ColumnsCollection[a].HeaderText).replace(/YYYYY/g,this.ColumnsCollection[a].MaxLength));return false}}catch(f){}}return true};OboutGridType=function(d,a,c,b){this.Name=d;this.HandlingReg=a;this.MinValue=c;this.MaxValue=b};OboutGridTypeValidator=function(){var a=this;this.RegInteger=/^\d+$/;this.RegUnsignedInteger=/^(\+|-)?\d+$/;this.RegFloat=/^\d+(\.\d+)?$/;this.RegChar=/^[\w\-]+$/;this.RegBool=/^(true|false|True|False)$/;this.AvailableTypes=[new OboutGridType("Boolean",a.RegBool),new OboutGridType("Byte",a.RegInteger,0,255),new OboutGridType("Char",a.RegChar),new OboutGridType("DateTime",null),new OboutGridType("Decimal",null),new OboutGridType("Double",a.RegFloat),new OboutGridType("Int16",a.RegInteger,-32768,32767),new OboutGridType("Int32",a.RegInteger,-2147483648,2147483647),new OboutGridType("Int64",a.RegInteger,-9.2233720368547758e18,9.2233720368547758e18),new OboutGridType("SByte",a.RegInteger,-128,127),new OboutGridType("Single",null),new OboutGridType("String",null),new OboutGridType("TimeSpan",null),new OboutGridType("UInt16",a.RegUnsignedInteger,0,65535),new OboutGridType("UInt32",a.RegUnsignedInteger,0,4294967295),new OboutGridType("UInt64",a.RegUnsignedInteger,0,1.8446744073709552e19)]};OboutGridTypeValidator.prototype.validate=function(c,b){for(var a=0;a<this.AvailableTypes.length;a++)if(this.AvailableTypes[a].Name==c){if(this.AvailableTypes[a].HandlingReg!=null)try{return this.validateType(this.AvailableTypes[a].HandlingReg,b,this.AvailableTypes[a].MinValue,this.AvailableTypes[a].MaxValue)}catch(d){return true}break}return true};OboutGridTypeValidator.prototype.validateType=function(d,a,c,b){if(d==this.RegBool)a=a.toString().toLowerCase();if(!d.test(a))return false;if(c!=null)if(a<c)return false;if(b!=null)if(a>b)return false;return true};try{if(Sys)Sys.Application&&Sys.Application.notifyScriptLoaded()}catch(ex){};