AW.Formats.IPAccessRule=AW.Formats.XMLString.subclass();AW.Formats.IPAccessRule.create=function(){var bsb=this.prototype;var nkq=this.superclass.prototype;bsb.init=function(){nkq.init.call(this);};bsb.dataToText=function(llz,bhbb,mgnb,xrx){var dby="";if((bhbb!=undefined)&&(((dby=bhbb.getCellData(4,xrx))!="")||((dby=bhbb.getCellData(5,xrx))!="")))return(nkq.dataToText(llz)+" ("+nkq.dataToText(dby)+")");else return(nkq.dataToText(llz));};};AW.Formats.IPAccessAllow=AW.Formats.Number.subclass();AW.Formats.IPAccessAllow.create=function(){var bsb=this.prototype;var nkq=this.superclass.prototype;bsb.init=function(){nkq.init.call(this);};bsb.dataToText=function(llz){if(parseInt(llz))return(crrb);else return(jzlb);};};AW.Formats.IPAccessDuration=AW.System.Format.subclass();AW.Formats.IPAccessDuration.create=function(){var bsb=this.prototype;var nkq=this.superclass.prototype;bsb.init=function(){nkq.init.call(this);};bsb.dataToText=function(llz){llz=parseInt(llz);if(llz==0)return("");else if(llz==brcb)return(syp);else if(llz>0)return(sdtb(llz*1000));};};function qbq(tklb,mpq,zchb,gldb){if(gldb==undefined)gldb=[325,60,65,100];var kyb=7;var bhbb=jdw(tklb,[ghrb,gjp,dxfb,kcfb],gldb,mpq,"rules","rule",kyb,zchb);bhbb.setCellFormat([new AW.Formats.IPAccessRule,new AW.Formats.IPAccessAllow,new AW.Formats.IPAccessDuration,new AW.Formats.XMLString]);bhbb.getCellImage=function(mgnb,xrx){return((this.getCellValue(1,xrx))?"RuleAllow":"RuleDeny");};bhbb.DisableSorting(wbc);return(bhbb);}function ctfb(csgb){if(csgb==undefined)csgb=0;skb.setChecked(true,true);xvmb.EnableSorting();xvmb.sort(csgb,"ascending");}function cnp(){setTimeout(function(){skb.setChecked(false,true);});}function wbc(csgb){ndvb(ndn,ctfb,cnp,csgb);}function nzk(Checkbox){if(Checkbox.getControlValue())wbc();else{wmd=xvmb.getSelectedRows();xvmb.DisableSorting(wbc);xvmb.Reset(true);if(parseInt(wmd.length)>0)xvmb.setSelectedRows([parseInt(wmd)]);}}