AW.Formats.IPAccessRule=AW.Formats.XMLString.subclass();AW.Formats.IPAccessRule.create=function(){var glt=this.prototype;var lst=this.superclass.prototype;glt.init=function(){lst.init.call(this);};glt.dataToText=function(vycb,ckbb,hhj,bnj){var cjy="";if((ckbb!=undefined)&&(((cjy=ckbb.getCellData(4,bnj))!="")||((cjy=ckbb.getCellData(5,bnj))!="")))return(lst.dataToText(vycb)+" ("+lst.dataToText(cjy)+")");else return(lst.dataToText(vycb));};};AW.Formats.IPAccessAllow=AW.Formats.Number.subclass();AW.Formats.IPAccessAllow.create=function(){var glt=this.prototype;var lst=this.superclass.prototype;glt.init=function(){lst.init.call(this);};glt.dataToText=function(vycb){if(parseInt(vycb))return(zbf);else return(gyv);};};AW.Formats.IPAccessDuration=AW.System.Format.subclass();AW.Formats.IPAccessDuration.create=function(){var glt=this.prototype;var lst=this.superclass.prototype;glt.init=function(){lst.init.call(this);};glt.dataToText=function(vycb){vycb=parseInt(vycb);if(vycb==0)return("");else if(vycb==njsb)return(cnl);else if(vycb>0)return(wcx(vycb*1000));};};function nqlb(zhwb,bnt,hwkb,snnb){if(snnb==undefined)snnb=[325,60,70,100];var fnx=7;var ckbb=xhgb(zhwb,[hzm,wzx,tbjb,hlf],snnb,bnt,"rules","rule",fnx,hwkb);ckbb.setCellFormat([new AW.Formats.IPAccessRule,new AW.Formats.IPAccessAllow,new AW.Formats.IPAccessDuration,new AW.Formats.XMLString]);ckbb.getCellImage=function(hhj,bnj){return((this.getCellValue(1,bnj))?"RuleAllow":"RuleDeny");};ckbb.DisableSorting(spy);ckbb.setVirtualMode(false);return(ckbb);}function pvfb(mlk){if(mlk==undefined)mlk=0;gsv.setChecked(true,true);xlr.EnableSorting();xlr.sort(mlk,"ascending");}function csz(){setTimeout(function(){gsv.setChecked(false,true);});}function spy(mlk){cthb(kklb,pvfb,csz,mlk);}function jycb(Checkbox){if(Checkbox.getControlValue())spy();else{zskb=xlr.getSelectedRows();xlr.DisableSorting(spy);xlr.Reset(true);if(parseInt(zskb.length)>0)xlr.setSelectedRows([parseInt(zskb)]);}}