
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/11/2009 3:13:46 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
var WGUI = { CM: function() { wg91c62.mcc684(); }, MU: function() { wg91c62.m5ce30(); }, MM: function() { wg91c62.m5735(); }, DBLCL: function() { wg91c62.mac218(); }, CL: function() { wg91c62.m9c532(); event.cancelBubble =true; }, MD: function() { wg91c62.m11247(); }, KD: function() { wg91c62.me0e41(); }, MOV: function() { },  MOU: function() { wg91c62.mc248(); }, GH: function(v82457) { return wg91c62.m3c335(v82457); }, GW: function(vb5257) { return wg91c62.me7f18(vb5257); }, GBBCL: function(v02a57) { wg91c62.m9c532(v02a57); }, GBBMM: function() { wg91c62.m5735(); }, GBBMD: function() { wg91c62.m85031(); }, TBGH: function(v8ac57) { return wg91c62.m72b72(v8ac57); }, TBRS: function(vd0157) { return wg4a378.mbe463(vd0157); }, TBKD: function() { return wgdee10.m93043(); }, TBKP: function() { return wgdee10.m0ca69(); }, TBDBLCL: function(v57557) { return wgdee10.ma3f55(v57557); }, TBKDMZ: function() { return wgd2488.mbe92(); }, TBKPMZ: function() { return wgd2488.m10140(); }, TBKU: function() { return wgdee10.m47e6(); }, TGROW: function(v4a757) { return wg91c62.mdd07(v4a757); }, WCIS: function(v7de41,v33f38) { return wg2f128.m3af4(v7de41,v33f38); },  WCIC: function(v94541,vd2238) { return wg2f128.m48457(v94541,vd2238); }, TGCALDD: function(va4441,vbad38) { return wg2f128.m1a684(va4441,vbad38); }, TGCEDD: function(v6ed76,v4e47,v26a50) { return wg2f128.mc3c66(v6ed76,v4e47,v26a50); }, TGPR: function(v24e76) { return wg91c62.mbab91(v24e76); }, TGHIER: function(v93476) { return wga3c88.m6aa31(v93476); }, TGSRR: function(v3ad76) { return wg91c62.m89518(v3ad76); } };var wg91c62 = { mae622:function(v6b53,v12d18) { var v04020 =ISGetObject(v6b53); if (!v04020.Get("Visible")&&!v04020.NeedAutoFitOnLoad) return; if (v04020.LastAutoFitWidth !=-1 &&v04020.LastAutoFitWidth ==v04020.FrameObj.offsetWidth) return; if (v12d18) v04020.NeedAutoFitOnLoad =true; for (tableName in v04020.Tables) { var v15b78 =v04020.Tables[tableName]; if (v15b78.IsRootTable) { if (v04020.NeedAutoFitOnLoad) v04020.FrameObj.style.display ="none"; wg91c62.m0d26(v15b78); } else { if (v15b78.SubTableIds.length ==0) { wg91c62.m0d26(v15b78); } else { for (tableId in v15b78.SubTableIds) wg91c62.m0d26(v15b78,"SubTable",null,null,null,v15b78.SubTableIds[tableId]); } } } v04020.LastAutoFitWidth =v04020.FrameObj.offsetWidth; v04020.TempResizeID =0; }, m02781:function(v63c95,ve6e67) { var v23959 =v63c95.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); v63c95.NeedHeightResize =true; v63c95.FrameObj.style.height =ve6e67;  if (IS.ie) v63c95.FrameObj.parentElement.style.height =ve6e67;  var vd8a97 =wg91c62.m72b72(v23959);  if (!isNaN(vd8a97)) v23959.style.height =vd8a97;  if (IS.moz) { wgd2488.md9058(v63c95); wgd2488.m5d797(v63c95); } }, md6b94:function(v35d50) { if (!v35d50) v35d50 =this;  if (v35d50.NeedHeightResize ||v35d50.NeedWidthResize) { var v72078 =v35d50.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); v35d50.CacheTBodyHeight =null; var v34c7 =wg91c62.m72b72(v72078); if (!isNaN(v34c7)&&v34c7 >0) v72078.style.height =v34c7 +"px"; } },  me0511:function(vbb770) {  var ve1770 =vbb770.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV);  if (IS.ie) { if (IS.GetIEVersion()<8 ||!IS.IsXHTMLDocType()) { try { ve1770.style.setExpression("height","WGUI.TBGH(this)"); } catch (e) { vbb770.NeedHeightResize =true; wg91c62.md6b94(vbb770); } } else { vbb770.NeedHeightResize =true; wg91c62.md6b94(vbb770); } } }, m72b72:function(vb4b80,v83b13) { var vb135; var v9a125 =false; if (vb4b80.childNodes.length ==0) return; var v29497 =ISGetObject(vb4b80.childNodes[0].gridId); if (!v29497) return; if (v83b13) { v29497.CacheTBodyHeight =null; v9a125 =true; } if (v29497.CacheTBodyHeight !=null) { if (v29497.NeedHeightResize) { v29497.CacheTBodyHeight =null; return; } vb135 =v29497.CacheTBodyHeight; } else { var v22277 =v29497.FrameObj.parentElement;  if (!IS.ie) v22277 =v29497.FrameObj; if (vb4b80.style.display =="none" &&v29497.CurrentViewMode =="GridView") vb4b80.style.display ="block"; vb135 =parseFloat(v22277.style.height);  if (v22277.gridHeight) vb135 =v22277.gridHeight; if (v22277.style.height !="") { if (v22277.style.height.indexOf("%")>0) { if (!v29497.IsLoaded) return;  vb4b80.style.height =10; vb135 =parseFloat(v22277.offsetHeight);  if (IS.moz &&vb135 ==0) return 0;  v9a125 =true; } } if (ISPosLib.getTop(vb4b80)<0 ||isNaN(vb135)) { if (v29497.CurrentViewMode =="PivotChartView") { v29497.NeedHeightResize =false; v29497.CacheTBodyHeight =vb135; wg8e489.m16324(v29497,vb135); return; }  if (isNaN(vb135)) return; } vb135 -=ISPosLib.getTop(vb4b80)-ISPosLib.getTop(v29497.FrameObj)+2; if (v29497.LayoutSettings.StatusBarVisible) vb135 -=document.getElementById("dvStatus_" +v29497.Name).offsetHeight; if (v29497.GetRootTable().Get("ColumnFooters")=="Yes") vb135 -=v29497.GetRootTable().GetElement(WG40.COLFOOTER,WG40.HTMLDIV).offsetHeight;  if (v29497.LayoutSettings.AllowColumnFreezing =="Yes") vb135 -=19;  v29497.CacheTBodyHeight =vb135; v29497.NeedHeightResize =false; } if (isNaN(vb135)||vb135<=0) v29497.NeedHeightResize =true; if (v9a125 &&vb135>0) vb4b80.style.height =parseFloat(vb135)+"px"; return vb135; }, m3c335:function(vc9719) { if (IS.ie) vc9719 =vc9719.children[0];  if (!vc9719 ||typeof(vc9719)=="undefined") return;  var v38e80; var v80813 =ISGetObject(vc9719.id.substring(0,vc9719.id.length -2)); if (!v80813) return; if (v80813.CacheFrameHeight !=null) { if (v80813.NeedHeightResize) { v80813.CacheFrameHeight =null; return; } v38e80 =v80813.CacheFrameHeight; } else { var v73449 =Number(parseFloat(vc9719.currentStyle.borderTopWidth)); if (isNaN(v73449)) v73449 =0; v38e80 =document.body.clientHeight -ISPosLib.getTop(vc9719)+v80813.LayoutSettings.SizeHeightBy -(v73449 *2); v80813.CacheFrameHeight =v38e80; } if (v38e80<=0) v80813.NeedHeightResize =true; return v38e80; }, me7f18:function(v09f39) { if (IS.ie) v09f39 =v09f39.children[0]; if (!v09f39 ||typeof(v09f39)=="undefined") return; var v88519; var vc1a33 =ISGetObject(v09f39.id.substring(0,v09f39.id.length -2)); if (!vc1a33) return; if (vc1a33.CacheFrameWidth !=null) { if (vc1a33.NeedWidthResize) { vc1a33.CacheFrameWidth =null; return; } v88519 =vc1a33.CacheFrameWidth; } else { v88519 =document.body.clientWidth -ISPosLib.getLeft(v09f39)+vc1a33.LayoutSettings.SizeWidthBy -wg91c62.ma2377();  vc1a33.CacheFrameWidth =v88519; vc1a33.NeedWidthResize =false; } return v88519; }, GetPaddingWidth: function(v52494) { var vce211 =parseFloat(v52494.currentStyle.paddingLeft); var vf9381 =parseFloat(v52494.currentStyle.paddingRight); var v37887 =vce211 +vf9381; if (isNaN(v37887)) v37887 =0; return v37887; }, ma2377:function() { if (document.body.style.overflow =="hidden" ||document.body.scroll =="no" ||IS.moz) return 0; else return 0; }, me1076:function(v06986) { if (v06986 &&(v06986.tagName =="TD" ||v06986.tagName =="SPAN" ||v06986.tagName =="NOBR")&&!v06986.hasTooltip) { if (v06986.tagName =="NOBR") { v06986 =wg4a378.m5e484(v06986); if (!v06986) { wg_Global.TTId =0; return; } } if (v06986.hasTooltip ||(IS.moz &&v06986.attributes["hasTooltip"] !=null)) return; var vdac66 =false; if (v06986.innerText !="" &&v06986.innerText !=" " &&v06986.scrollWidth>v06986.offsetWidth &&v06986.childNodes.length<3) vdac66 =true; else if (v06986.tagName =="SPAN" &&typeof (v06986.content)!="undefined") { if (v06986.scrollHeight>v06986.offsetHeight) vdac66 =true; else { var ve0060 =wg4a378.m2c14(v06986); if (!ve0060) return; if (ve0060.innerText !="" &&ve0060.scrollWidth>ve0060.offsetWidth) vdac66 =true; } } if (IS.moz) vdac66 =true; if (vdac66) v06986.title =v06986.innerText; else v06986.title =""; } wg_Global.TTId =0; }, m59373:function(v0da25) { var v1065 =v0da25.GetRootTable().GetElement(WG40.BODY,WG40.HTMLDIV); var vb8079 =document.getElementById(v0da25.Name +"_ND"); if (!vb8079) { vb8079 =document.createElement("DIV"); vb8079.id =v0da25.Name +"_ND"; vb8079.className =v0da25.RowClass; vb8079.style.cssText ="position:relative; width:100%; text-align: center; background: transparent"; v1065.insertAdjacentElement("beforeEnd",vb8079); } var vb2a6 =v1065.offsetHeight; if (vb2a6 ==0) vb2a6 =v0da25.FrameObj.offsetHeight; if (vb2a6 ==0) { if (v0da25.FrameObj.offsetWidth ==0 &&v0da25.ShowNoDataBoxTryCount ==5) return;  if (typeof(v0da25.ShowNoDataBoxTryCount)=="undefined") v0da25.ShowNoDataBoxTryCount =0; else v0da25.ShowNoDataBoxTryCount++; setTimeout(function() { wg91c62.m59373(v0da25); },100); return; } var vc9836 =""; try { vc9836 =v0da25.GetString("CommonText/NoData"); } catch (e) { setTimeout(function() { wg91c62.m59373(v0da25); },100); return; } vb8079.innerText =vc9836; vb8079.style.top ="40%"; vb8079.style.display =""; }, m3b85:function(v3ef80) { var vf3696 =document.getElementById(v3ef80.Name +"_ND"); if (vf3696) vf3696.style.display ="none"; }, mfb815:function(v6c280) { var v55980 =v6c280.childNodes[1]; v55980.innerHTML =""; wg91c62.me8115(v6c280); }, m71c28:function(vbc316) { return vbc316.parentElement.parentElement.parentElement.parentElement.removeNode(true); }, mcd61:function(vb2e16) { return vb2e16.parentElement.parentElement.parentElement.parentElement.previousSibling.removeNode(true); }, mf5693:function(v31d55,v2dd57) { var v97216 =v31d55.Grid; var v35238 =v97216.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (!v31d55.IsRootTable) { if (v2dd57) tr =v35238.insertRow(v2dd57); else tr =v35238.insertRow(); tr.id ="trGBBRowSep_" +v97216.Id +"_" +v31d55.Name; var v94776 =tr.insertCell(-1); v94776.innerHTML ="<table tblName='" +v31d55.Name +"' gridId='" +v97216.Id +"' cellSpacing=0 cellPadding=1 border=0 style='cursor: default'" +(IS.moz ? ";table-layout:fixed" : "") +"><tbody><tr></tr></tbody></table>"; var vb0043 =v94776.childNodes[0].childNodes[0].childNodes[0]; var v04a59 =v31d55.GetParentTreeStructure(); for (var v14a6=1; v14a6<=parseFloat(v31d55.TableLevel); v14a6++) { var v75441 =vb0043.insertCell(-1); v75441.style.cssText ="width:25px; height: 3px; margin: 0; padding:0"; if (v14a6 ==parseFloat(v31d55.TableLevel)||v04a59[v14a6] =="Continuos") { v75441.innerHTML =wga3c88.maf284(v97216,"I"); } } } }, m21890:function(vc0757,vb3e63) { var vbdd27 =vc0757.Grid; var v00596 =vbdd27.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); if (vb3e63) tr =v00596.insertRow(vb3e63); else tr =v00596.insertRow(); tr.id ="trGBB_" +vbdd27.Id +"_" +vc0757.Name; var v45a47 =tr.insertCell(-1); v45a47.innerHTML ="<table tblName='" +vc0757.Name +"' gridId='" +vbdd27.Id +"' cellSpacing=0 cellPadding=1 border=0 style='cursor: default" +(IS.moz ? ";table-layout:fixed" : "")+"'><tbody><tr></tr></tbody></table>"; var vc6249 =v45a47.childNodes[0].childNodes[0].childNodes[0]; if (!vc0757.IsRootTable) { var vda93 =vc0757.GetParentTreeStructure(); for (var v75821=1; v75821<parseFloat(vc0757.TableLevel); v75821++) { var v2c552 =vc6249.insertCell(-1); v2c552.style.cssText ="width:25px; height: 15px; margin: 0; padding:0"; if (v75821 ==parseFloat(vc0757.TableLevel)||vda93[v75821] =="Continuos") { v2c552.innerHTML =wga3c88.maf284(vbdd27,"I"); } } var vfe929 =vc0757.GetParentTables().length; var v2c552 =vc6249.insertCell(-1); v2c552.style.cssText ="width:25px; height: 100%; margin: 0; padding:0"; v2c552.align ="right"; v2c552.vAlign ="top"; if (vfe929 ==1 ||vfe929>1 &&!vc0757.HasNextSiblingGroupedColumns()) v2c552.innerHTML =wga3c88.maf284(vbdd27,"Last"); else v2c552.innerHTML =wga3c88.maf284(vbdd27,"Continous"); } var vde250 =vc6249.insertCell(-1); var vbc299 =vc0757.CaptionImage; vde250.className =vbdd27.GBBLabelClass; if (vbc299 !="") { var v57239 =""; if (vbc299.substring(0,1)=="/" ||vbc299.substring(0,1)==".") v57239 =vbc299; else v57239 =vbdd27.ResolveImagePathEx(vbc299); vde250.innerHTML ="<img align='absmiddle' src='" +v57239 +"'>&nbsp;"; } vde250.innerHTML +=vc0757.Caption; return tr; }, m28e54:function(v54b96) { var vb0277 =""; for (var v16b73 =0; v16b73 <v54b96.GroupedColumns.length; v16b73++) { vb0277 +="<td style='width:16px' "; if (v54b96.IsUseColumnSet ||v54b96.PreviewRowVisible) vb0277 +="rowspan=" +wg91c62.m84e59(v54b96); vb0277 +=">&nbsp;</td>"; } return vb0277; },  m84e59:function(v5c432) { var v7df96 =1;  if (v5c432.IsUseColumnSet &&v5c432.Get("ColumnSetHeaders")=="Yes") v7df96++;  if (v5c432.IsUseColumnSet) { v7df96 +=v5c432.ColumnSetSettings.Count; v7df96--; }  if (v5c432.PreviewRowVisible) v7df96++;  return v7df96; }, mb0355:function(vbe591,v3fe81) { var v45516 =v3fe81.currentStyle.fontSize; if (v45516 =="") v45516 ="8pt"; var v3c892 =v3fe81.childNodes[1]; var v06f85 ="5"; var v08b2 ="6"; wg91c62.me8115(v3fe81); if (IS.moz) { v06f85 ="<font face='Webdings'>5</font>"; v08b2 ="<font face='Webdings'>6</font>"; } if (v3fe81.sortOrder =="Ascending") { var v68a45 =vbe591.LayoutSettings.ImageSettings.SortAscImage; var v0d672 ="";  if (vbe591.EnableSection508Standards) v0d672 =" alt='Sorted in ascending order' "; if (v68a45 =="") v3c892.innerHTML ="<span class='DefSIcon' style='font-size:" +v45516 +"; color: black'" +v0d672 +">" +v06f85 +"</span>"; else v3c892.innerHTML ="<img src='" +vbe591.ResolveImagePathEx(v68a45)+"'" +v0d672 +">"; } else if (v3fe81.sortOrder =="Descending") { var v94020 =vbe591.LayoutSettings.ImageSettings.SortDescImage; var v0d672 =""; if (vbe591.EnableSection508Standards) v0d672 =" alt='Sorted in descending order' ";  if (v94020 =="") v3c892.innerHTML ="<span class='DefSIcon' style='font-size:" +v45516 +"; color: black'" +v0d672 +">" +v08b2 +"</span>"; else v3c892.innerHTML ="<img src='" +vbe591.ResolveImagePathEx(v94020)+"'" +v0d672 +">"; } else { wg91c62.mfb815(v3fe81); } }, m30565:function(vc5662) { var v27726; var v29350 =ISGetObject(vc5662.gridId); v27726 =document.createElement("DIV"); v27726.onselectstart =function() { return false; }; v27726.style.cssText =v29350.DraggerStyle +"; width:" +vc5662.offsetWidth +"; height:" +vc5662.offsetHeight +";"; v27726.className =vc5662.className; v27726.innerHTML =vc5662.innerHTML; if (v29350) v29350.FrameObj.appendChild(v27726); else document.body.appendChild(v27726); return v27726; }, m9ce69:function(vd5b82) { var ved382; ved382 =document.createElement("IMG"); ved382.src =vd5b82.ResolveImagePathEx(vd5b82.LayoutSettings.ImageSettings.ColumnPointerImage); ved382.style.cssText ="position: absolute; display: none;"; if (vd5b82) vd5b82.FrameObj.appendChild(ved382); else document.body.appendChild(ved382); return ved382; }, mc8023:function(v89c18) { var ve0a18; ve0a18 =document.createElement("DIV"); ve0a18.onselectstart =function() { return false; }; ve0a18.onmouseup =wg91c62.m5ce30; ve0a18.style.cssText =v89c18.ResizerStyle; if (v89c18) v89c18.FrameObj.appendChild(ve0a18); else document.body.appendChild(ve0a18); return ve0a18; }, m61161:function(vac01,v35139) { var v70518 =new wgHeaderInfo(); var v91699 =ISGetObject(v35139.gridId); var vb4459 =posLib2.getLeftAbs(v91699.FrameObj,v91699); var v42353 =posLib2.getTopAbs(v91699.FrameObj,v91699); v70518.AllowRightInsert =true; v70518.PosLeft =ISPosLib.getLeft(vac01)-5 -vb4459; v70518.PosRight =v70518.PosLeft +vac01.offsetWidth; v70518.PosTop =ISPosLib.getTop(vac01)-11 -v42353; v70518.Type ="GroupInfo"; v70518.Element =vac01; v70518.ProperPosition =v70518.PosRight; return v70518; }, m53562:function(v44c57) { var vc4137 =v44c57.childNodes[0].childNodes[0].childNodes[0].childNodes[0]; return vc4137.cells[vc4137.cells.length -1]; }, m15a57:function(v3a676) { var ve9a57 =v3a676.childNodes[0].childNodes[0].childNodes[0].childNodes[0]; for (var vcd018=0; vcd018<ve9a57.cells.length; vcd018++) { if (ve9a57.cells[vcd018].type =="GroupColumn") return ve9a57.cells[vcd018]; } return null; }, m9e832:function(v7de76,v69428) { var v49476 =document.getElementById("trGBB_" +v7de76 +"_" +v69428); return (v49476); }, m99b0:function(ve0632,v8307,vc7844) { var v0fd12 =wg91c62.m9e832(ve0632,v8307); if (v0fd12) { var v79797 =v0fd12.childNodes[0].childNodes[0].childNodes[0].childNodes[0].cells; for (var v96678=0; v96678<v79797.length; v96678++) { if (v79797[v96678].type =="GroupColumn") { if (v79797[v96678].colName ==vc7844) return true; } } } return false; }, m42f21:function(v9af23,v72c55,vd3b48) { var v81032 =new wgHeaderInfo(); var va217 =ISGetObject(vd3b48.gridId); var vf3244 =posLib2.getLeftAbs(va217.FrameObj,va217); var v81c41 =posLib2.getTopAbs(va217.FrameObj,va217); v81032.AllowRightInsert =true; v81032.PosLeft =ISPosLib.getLeft(v9af23)-vf3244; v81032.PosRight =v81032.PosLeft +v9af23.offsetWidth; v81032.PosTop =ISPosLib.getTop(v9af23)-v81c41; v81032.Type ="Unknown"; v81032.Element =v9af23; if (v9af23.type =="Column" ||v9af23.type =="GroupColumn") { v81032.Type =v9af23.type; if (v9af23.type =="GroupColumn") { v81032.PosLeft -=5; v81032.PosRight -=5; v81032.PosTop -=10; } var vdae54 =(v81032.PosRight -v81032.PosLeft)/2; if (v72c55>=v81032.PosLeft +vf3244 &&v72c55<=vdae54 +v81032.PosLeft +vf3244) v81032.ProperPosition =v81032.PosLeft; else v81032.ProperPosition =v81032.PosRight; } return v81032; }, m18615:function(v77848,v16621,v1c84) { var vc3878 =v16621.getAttribute("elLeft"); var v47134 =v16621.getAttribute("elTop"); var va3f33 =event.clientX; var v6b989 =event.clientY; var v43f20 =null; if (IS.ie) v43f20 =document.elementFromPoint(va3f33,v6b989); else v43f20 =event.srcElement; if (v43f20) { wg4a378.mb6b61(v43f20); if (v43f20.id.indexOf("GBB")>=0 ||v43f20.id.indexOf("GBB")>=0 ||(v43f20.tagName =="TD" &&v43f20.className.indexOf("Header")&&v43f20.type =="GroupColumn") ||((v43f20.tagName =="SPAN" ||v43f20.tagName =="IMG")&&v43f20.parentElement.type =="GroupColumn")) { var v76b40 =ISGetObject(v16621.gridId); var v8e956 =v76b40.Tables[v16621.tblName]; var va7e84 =v16621.parentElement; var v5b80 =v76b40.GetElement(WG40.GROUPBYBOX,WG40.HTMLTABLE); var t,v1a084; var v27597 =v76b40.HasGroup(); v16621.groupExist =false; if (!v27597) { if (v5b80.style.display =="") t =v5b80.rows[0].cells[0]; v1a084 =wg91c62.m61161(t,v16621); } else { if (v43f20.tagName =="SPAN") v43f20 =v43f20.parentElement; if (v43f20.tagName =="DIV") { var v66844 =wg91c62.m9e832(v76b40.Name,v8e956.Id); v16621.groupExist =(v66844 !=null); if (v66844) { var va0d34 =wg91c62.m53562(v66844); t =va0d34; v1a084 =wg91c62.m61161(t,v16621); } else { v66844 =wg91c62.m9e832(v76b40.Name,v76b40.RootTable.Name); var va0d34 =wg91c62.m53562(v66844); t =va0d34; v1a084 =wg91c62.m61161(t,v16621); } } else if (v43f20.tagName =="TD" &&v43f20.type =="GroupColumn") { if (v43f20.type =="GroupColumn" &&v16621.type =="GroupColumn") { if (v43f20.tblName !=v16621.tblName) { var v3bc73 =new wgHeaderInfo(); v3bc73.Type ="Unknown"; return v3bc73; } } t =v43f20; v1a084 =wg91c62.m42f21(t,va3f33,v16621); } } return v1a084; } else { var v1a084 =new wgHeaderInfo(); v1a084.Type ="Unknown"; if ((v43f20.tagName =="SPAN")||v43f20.tagName =="NOBR") v43f20 =wg4a378.m5e484(v43f20); if (v43f20 &&(v43f20.tagName =="TD" ||v43f20.tagName =="TH")) { var v76b40 =ISGetObject(v16621.gridId); var v8e956 =v76b40.Tables[v16621.tblName]; var va7e84 =v16621.parentElement; if (v8e956.Id !=wg4a378.m97d49(v43f20.parentElement)) return v1a084; else { if (va7e84 !=v43f20.parentElement &&v16621.type !="GroupColumn") return v1a084; } return wg91c62.m42f21(v43f20,va3f33,v16621); } else { if (!v1c84) { return v1a084; } else return v1a084; } } } return false; }, m6cf94:function(v91b3,v02a0,v6ee90) { var v2a03 =(v6ee90)? "afterEnd" : "beforeBegin"; v91b3.removeNode(true); v02a0.insertAdjacentElement(v2a03,v91b3); }, m3ed5:function(vfc73) { var v37423 =wg_Global.MoveColEventArgs; var vdf010 =v37423.table; var vff157 =ISGetObject(vdf010.GridId); var v7a245 =v37423.tr; var v4ad85 =vdf010.GetElement(WG40.BODY,WG40.HTMLTABLE,v7a245); var v61a98 =v37423.cdt; var v33929 =v37423.th; var vbbe79 =v37423.c1; var v61d78 =v37423.c2; var vc7669 =vdf010.GetElement(WG40.COLGROUP,null,v7a245); var vae168 =vc7669.childNodes[vbbe79]; var v7e822 =vc7669.childNodes[v61d78]; var v05c50 =0; var v7e059 =0;  wg91c62.m6cf94(v61a98,v33929.Element,vbbe79>v61d78);  if (vff157.FreezePaneActive &&vff157.FreezeConfig !=null) { if (IS.ie) { v05c50 =vff157.FreezeConfig[0].length; vbbe79 +=v05c50; v61d78 +=v05c50; vae168 =vc7669.children[vbbe79]; v7e822 =vc7669.children[v61d78]; } else { v7e059 =vff157.FreezeConfig[0].length; vae168 =vc7669.children[vbbe79 -v7e059]; v7e822 =vc7669.children[v61d78 -v7e059]; } }  if (vdf010.IsRootTable &&vdf010.Get("AllowFilter")=="Yes") { var v67533 =vdf010.GetFilterRow(v7a245); wg91c62.m6cf94(v67533.cells[v61d78],v67533.cells[vbbe79],vbbe79>v61d78); } if (vdf010.Get("AllowAddNew")=="Yes") { var v41323 =vdf010.GetNewRow(v7a245); var vec621 =false; var v5fe41 =v41323.cells; for (var vfc372=0; vfc372<v5fe41.length; vfc372++) { if (v5fe41[vfc372].type =="NewRowInfoCell") { vec621 =true; break; } } if (!vec621) wg91c62.m6cf94(v41323.cells[v61d78],v41323.cells[vbbe79],vbbe79>v61d78); } wg91c62.m6cf94(v7e822,vae168,vbbe79>v61d78); wg91c62.m0c96(vdf010,"Move",[vbbe79,v61d78]); var v57324 =vdf010.GetElement(WG40.BODY,WG40.HTMLTABLE,v7a245).rows; for (var vfc372=0; vfc372<v57324.length; vfc372++) { var vfcc51 =v57324[vfc372]; wg4a378.mb6b61(vfcc51); if (vfcc51.type =="Record" ||vfcc51.type =="GroupTotalRow") wg91c62.m6cf94(vfcc51.cells[v61d78],vfcc51.cells[vbbe79],vbbe79>v61d78); } if (vdf010.Get("ColumnFooters")=="Yes") { var vc4f61 =vdf010.GetElement(WG40.COLFOOTERGROUP,null,v7a245).childNodes[vbbe79 -v7e059]; var ve4b63 =vdf010.GetElement(WG40.COLFOOTERGROUP,null,v7a245).childNodes[v61d78 -v7e059]; var vc1328 =vdf010.GetElement(WG40.COLFOOTER,WG40.HTMLTABLE,v7a245).rows[1]; wg91c62.m6cf94(ve4b63,vc4f61,vbbe79>v61d78); wg91c62.m6cf94(vc1328.cells[v61d78 -v7e059],vc1328.cells[vbbe79 -v7e059],vbbe79>v61d78); } if (!vfc73) { if (!vdf010.IsRootTable) wga3c88.m0ee20(); wg91c62.m22b32(vdf010,v7a245); if (vff157.LastSelObj) { var veb762 =vff157.LastSelObj.element; if (veb762) { if (veb762.tagName =="TR") { wgdee10.m4f150(veb762,"Redraw"); } else wgdee10.ma3d97(veb762); } } wg_Global.MoveColEventArgs =null; vff157.SetStatus1("","ready","CommonText/Ready"); } }, m1dc53:function(v80299,v19260,v82891,vc3c21,vf7a81) { var vdb039 =v19260.parentElement; if (v80299.IsUseColumnSet) { if (v19260.type =="Column") { var v78024 =v80299.GetElement(WG40.COLHEADERGROUP,null,vdb039); var va8916 =v80299.GetColHeaderSpanCount()+v80299.GetCSCellPosByIndex(v19260.cs,v19260.r,v19260.c); var v46f85 =v80299.GetColHeaderSpanCount()+v80299.GetCSCellPosByIndex(v19260.cs,v19260.r,v19260.c,true); var v15f94 =v82891; if (va8916 !=v46f85) { var v70c53 =0; for (var v36737=va8916; v36737<v46f85; v36737++) v70c53 +=parseFloat(v78024.childNodes[v36737].width); v15f94 -=v70c53; } if (v15f94<20) v15f94 =20; wg91c62.m82b59(v80299,vdb039,v78024,v46f85,v15f94); if (!vc3c21) { v80299.UpdateRowLayoutWidth(v19260.cs,parseFloat(v19260.c)+(v46f85 -va8916),v15f94); } v19260.estWidth =v82891; } else if (v19260.type =="CSHeader") { var v78024; if (vdb039) v78024 =v80299.GetElement(WG40.COLHEADERGROUP,null,vdb039); var v7aa52 =v80299.GetColumnSetByPos(v19260.pos); var va8916 =v80299.GetColHeaderSpanCount()+v80299.GetCSHeaderCellPosByIndex(v19260); var v46f85 =va8916 +parseInt(v7aa52.ColumnCount); var v09910 =0; if (vdb039) v09910 =wgGetCSHeaderWidth(v80299,v19260); else v09910 =v80299.GetCSHeaderWidth(v19260.pos); var v73167 =0; for (var v36737=va8916; v36737<v46f85; v36737++) { var v83823 =0; if (v78024) v83823 =parseInt(v78024.childNodes[v36737].width); else v83823 =parseInt(v80299.GetRowLayoutByIndex(v19260.pos,0,v73167).Width); var v17472 =(v83823/v09910)*100; var v8d25 =parseInt((v17472/100)*v82891); if (!isNaN(v8d25)) { if (v78024) wg91c62.m82b59(v80299,vdb039,v78024,v36737,v8d25); if (!vc3c21) v80299.UpdateRowLayoutWidth(v19260.pos,v73167,v8d25); } v73167++; } v19260.estWidth =v82891; } } else { var v35e55 =wg4a378.mea345(v80299,v19260); var vca876 =v80299.Grid;  if (IsGecko30()&&vca876.FreezePaneActive) { var v27924 =wg4a378.m59262(v19260);  if (v27924 !=null &&v27924.Position <vca876.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns) v35e55 =wg4a378.m59d2(v19260); }  v19260.oldWidth =v19260.offsetWidth;  IS.SetWidth(v19260,v82891); wg91c62.me8115(v19260); wg91c62.m0c96(v80299,"Resize",[v35e55,v82891]);  v80299.GetElement(WG40.COLGROUP,null,vdb039).childNodes[v35e55].width =v82891; if (!IS.ie) { wgd2488.mc085(v80299,v19260,WG40.BODY);  if (v80299.IsRootTable) wg4a378.mbe463(v80299.GetElement(WG40.BODY,WG40.HTMLTABLE)); } if (v80299.Get("ColumnFooters")=="Yes") { var v56e97 =v80299.GetElement(WG40.COLFOOTERGROUP,null,vdb039); v56e97.childNodes[v35e55].width =v82891; if (!IS.ie) wgd2488.mc085(v80299,v19260,WG40.COLFOOTER,(IS.safari ? v82891 : null)); } wg91c62.m4ed69(v80299,vdb039,v19260,v82891); } wg_Global.ColSizeTarget =v19260; if (!vc3c21) { if (!v80299.IsRootTable) { if (!v80299.IsUseColumnSet) wga3c88.m34169(v19260); wga3c88.m9d393(); } if (!v80299.IsUseColumnSet &&!vf7a81) wg91c62.m22b32(v80299,vdb039); if (!vf7a81) wg91c62.m0d26(v80299,"Resize",v19260,v82891); if (v19260.type =="CSHeader") wgFlushUpdates(); }  if (v80299.Grid.LayoutSettings.AllowColumnFreezing =="Yes") wg91c62.m1fb14(v80299.Grid); },  m0c96:function(v2c874,v88c49,v58d43) { var v2d674 =v2c874.Grid;  if (v2d674.BindingOperationMode =="ClientBinding" &&v2c874.HtmlTemplate !=null) wg2e846.m10b50(v2c874.HtmlTemplate,v88c49,v58d43); else if (v2d674.LayoutSettings.AllowBatchUpdate) wg02f52.m38f17(v2c874,v88c49,v58d43); }, m82b59:function(vbd674,v24f49,vd5f43,vd7986,v1293) { vd5f43.childNodes[vd7986].oldWidth =vd5f43.childNodes[vd7986].width; vd5f43.childNodes[vd7986].width =v1293; vbd674.GetElement(WG40.COLGROUP,null,v24f49).childNodes[vd7986].width =v1293; if (vbd674.Get("ColumnFooters")=="Yes") vbd674.GetElement(WG40.COLFOOTERGROUP,null,v24f49).childNodes[vd7986].width =v1293; }, m4ed69:function(vae84,vff716,v3ea81,vca854) { if (vae84.IsUseColumnSet) { if (vae84.Get("AllowFilter")=="Yes") { var v33a49 =vae84.GetFilterRow(vff716); if (v33a49) { try { var v84337 =wgGetCSCellByPosition(v33a49,v3ea81.r,v3ea81.c,v3ea81.cs); var vf3095 =v84337.childNodes[0]; if (vca854 -18>0) vf3095.style.width =(vca854 -18)+"px"; else vf3095.style.width ="18px"; if (!IS.ie) wgd2488.md9747(v84337,vca854); } catch (e) { } } } } else { if (vae84.Get("AllowFilter")=="Yes") { var v33a49 =vae84.GetFilterRow(vff716); if (v33a49) { try { var v55224 =(IS.ie ? wg4a378.mea345(vae84,v3ea81): v3ea81.cellIndex); var v84337 =v33a49.cells[v55224]; var vf3095 =v84337.childNodes[0]; if (vca854 -18>0) vf3095.style.width =(vca854 -18)+"px"; else vf3095.style.width ="18px"; if (!IS.ie) wgd2488.md9747(v84337,vca854); } catch (e) { } } } } }, ma6c98:function(v79a81) { var v1a840 =v79a81; var vc6f86 =v1a840.parentElement; var v13f99 =wg4a378.m33a20(vc6f86); var vead95 =ISGetObject(v13f99.gridId); var vfb269 =vead95.Tables[v13f99.tblName]; var v5d039 =vfb269.GetElement(WG40.BODY,WG40.HTMLTABLE,vc6f86); var vae151 =v1a840.scrollWidth; var vcd48 =vae151; if (vfb269.IsUseColumnSet) { for (var vc4855=0; vc4855<v5d039.rows.length; vc4855++) { var v42b16 =v5d039.rows[vc4855]; wg4a378.mb6b61(v42b16); if (wgIsRecordRow(v42b16)) { var v7d81 =wgGetCellByName(v42b16,v79a81.colName); var v07125 =v7d81.scrollWidth; if (IS.moz) v07125 =v7d81.childNodes[0].offsetWidth; if (v7d81 &&v42b16.csRowPos ==vc6f86.csRowPos &&v07125>vcd48) vcd48 =v07125; } } } else { for (var vc4855=0; vc4855<v5d039.rows.length; vc4855++) { wg4a378.mb6b61(v5d039.rows[vc4855]); if (v5d039.rows[vc4855].type =="Record") { var v07125 =v5d039.rows[vc4855].cells[v1a840.cellIndex].scrollWidth; if (IS.moz) v07125 =v5d039.rows[vc4855].cells[v1a840.cellIndex].childNodes[0].offsetWidth; if (v07125>vcd48) vcd48 =v07125; } } } if (IS.moz &&vcd48 !=vae151) vcd48 +=4; if (vcd48 -v1a840.offsetWidth ==4) return; var ve0351 =wg4a378.m59262(v1a840); if (!ISEvent.Raise(vead95.LayoutSettings.ClientSideEvents.OnColumnResize,vead95.Name,vfb269.Id,ve0351,vcd48)) return; wg91c62.m1dc53(vfb269,v1a840,vcd48); if (vfb269.IsUseColumnSet) { if (!vfb269.IsRootTable) wga3c88.m5ef40(v1a840,vcd48); } else { if (!vfb269.IsRootTable) { wga3c88.m34169(v1a840); wga3c88.m5ef40(v1a840); } wg91c62.m22b32(vfb269,vc6f86); wg91c62.m0d26(vfb269,"Resize",v1a840,vcd48); } }, me8115:function(v57221,ve3631) { if (v57221.sortOrder =="None") { v57221.childNodes[0].style.width ="auto"; v57221.children[0].style.display =""; } else { var vf3a65; if (v57221.style.width =="") v57221.style.width =v57221.offsetWidth +"px"; if (ve3631) vf3a65 =ve3631; else vf3a65 =v57221.clientWidth +"px"; var v40352 =parseFloat(vf3a65); var vf8855 =v57221.children[0].scrollWidth +17;  if (v40352 ==0 ||isNaN(v40352)) { setTimeout(function(){wg91c62.me8115(v57221,ve3631);},10); return; } if (IS.safari) vf8855 =Math.max(vf8855,v57221.children[0].offsetWidth +17); if (vf8855 >v40352) v40352 -=20; else v40352 ="auto"; if (typeof (v40352)=="number" &&v40352 <1) v40352 =1; if (v40352 =="auto") v57221.children[0].style.width ="auto"; else { v57221.children[0].style.width =v40352 +"px"; v57221.children[0].style.display ="inline-block"; } } }, mb9818:function(v32731) { var vb5740 =null; if (v32731._Type =="WebGridSubTables") { vb5740 =v32731; v32731 =vb5740.GetTable(); } for (var v58240 =0; v58240 <v32731.SortedColumns.length; v58240++) { var vf3c7 =v32731.SortedColumns[v58240]; var v65a55 =v32731.Columns.GetNamedItem(vf3c7.ColumnMember); if (!v65a55.Visible) continue; if (v32731.IsRootTable) { var va7a55 =v65a55.GetElement(); if (va7a55 !=null) wg91c62.me8115(va7a55); } else { if (vb5740 !=null) { var va7a55 =v65a55.GetElement(vb5740.GetElement(WG40.COLHEADER,WG40.HTMLTABLE)); if (va7a55 !=null) wg91c62.me8115(va7a55); } else { for (var vbc130 =0; vbc130 <v32731.SubTableIds.length; vbc130++) { var va7a55 =v65a55.GetElement(v32731.SubTableIds[vbc130].GetElement(WG40.COLHEADER,WG40.HTMLTABLE)); if (va7a55 !=null) wg91c62.me8115(va7a55); } } } } }, m22b32:function(vca545,vdd797) { var v0c715 =ISGetObject(vca545.GridId); var v56729; if (vca545.IsRootTable) { if (!v0c715.EnableSection508Standards) v56729 =vca545.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vdd797).childNodes[0].childNodes[0]; else v56729 =vca545.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vdd797).rows[0]; } else { try { if (!v0c715.EnableSection508Standards) v56729 =vca545.SubTableIds[0].GetElement(WG40.COLHEADER,WG40.HTMLTABLE).childNodes[0].childNodes[0]; else v56729 =vca545.SubTableIds[0].GetElement(WG40.COLHEADER,WG40.HTMLTABLE).rows[0]; } catch (e) { return; } } var vf7f60 =0; var vdd719 =vca545.Get("HideColumnsWhenGrouped"); var vcc377 =new ISArray(); for (var v31521=0; v31521<v56729.cells.length; v31521++) { wg4a378.mb6b61(v56729.cells[v31521]); if (v56729.cells[v31521].type =="Column") { var v9fb25 =vca545.Columns.GetNamedItem(v56729.cells[v31521].colName); v9fb25.Position =vf7f60; if (IS.ie) v9fb25.Width =v56729.cells[v31521].style.width; else { if (v56729.cells[v31521].offsetWidth>0) v9fb25.Width =v56729.cells[v31521].offsetWidth; else v9fb25.Width =parseFloat(v56729.cells[v31521].style.width)+4; } vcc377.Add(v9fb25); vf7f60++; } } if (vdd719 =="Yes") { for (var v31521=0; v31521<vca545.GroupedColumns.length; v31521++) { var v9fb25 =vca545.Columns.GetNamedItem(vca545.GroupedColumns[v31521].ColumnMember); v9fb25.Position =vf7f60; v9fb25.Visible =false; v9fb25.IsGrouped =true; vcc377.Add(v9fb25); vf7f60++; } } for (var v31521=0; v31521<vca545.GroupedColumns.length; v31521++) { var v98a34 =vca545.GroupedColumns[v31521].ColumnMember; var v9fb25 =vcc377.GetNamedItem(v98a34); if (!v9fb25) { v9fb25 =vca545.GetColumn(v98a34); v9fb25.Position =vf7f60; vcc377.Add(v9fb25); vf7f60++; } } for (var v31521=0; v31521<vca545.Columns.length; v31521++) { var v9fb25 =vca545.Columns[v31521]; var v6ab50 =false; if (!v9fb25.Visible &&!v9fb25.IsGrouped) { v9fb25.Position =vf7f60; v6ab50 =true; } if (v9fb25.ForceVisible) { v9fb25.Visible =true; if (vcc377.IndexOf(v9fb25)==-1) { v9fb25.Position =vf7f60; v6ab50 =true; } } if (v6ab50) { vcc377.Add(v9fb25); vf7f60++; } } vcc377.InitializeFrom(vca545.Columns); vca545.Columns =vcc377; vca545.Columns.UpdateChanges(); v0c715.UpdateState(); }, mb1c98:function(v12645) { wg91c62.md2568(v12645); wg91c62.m78413(v12645); wg91c62.m08457(v12645); }, md2568:function(v28347,vf354) { var v65545 =null; var vd6397 =v28347.Grid; if (vd6397.HeaderContext) v65545 =vd6397.HeaderContext.parentElement; for (var v89b97=0; v89b97<v28347.GroupedColumns.length; v89b97++) { var v12587 =v28347.GroupedColumns[v89b97]; var v77a20 =v28347.Columns.GetNamedItem(v12587.ColumnMember);  if (v28347.Get("HideColumnsWhenGrouped")=="No") { var vabb44 =null; var v5da26 =true; try { vabb44 =v77a20.GetElement(); } catch (e) { v5da26 =false; } if (v5da26) { switch (v12587._UIState) { case "Added": case "PositionChanged": case "Changed": vabb44.isGrouped ="True"; break;  case "Removed": vabb44.isGrouped ="False"; break; } } } if (v12587._UIState =="Added") wg91c62.m72854(v77a20); else if (v12587._UIState =="PositionChanged") wg91c62.mb4d6(v12587);  else if (v12587._UIState =="Changed") { var v16144 =v12587.GetElement(); v16144.sortOrder =v77a20.SortOrder; wg91c62.mfb815(v16144); wg91c62.mb0355(vd6397,v16144); if (v28347.IsUseColumnSet ||vd6397.LayoutSettings.HideColumnsWhenGrouped =="No") { var vabb44 =null; var v5da26 =true; try { vabb44 =v77a20.GetElement(); } catch (e) { v5da26 =false; } if (v5da26) { vabb44.sortOrder =v77a20.SortOrder; wg91c62.mfb815(vabb44); wg91c62.mb0355(vd6397,vabb44); } } } else if (v12587._UIState =="Removed") { v28347.GroupedColumns.Remove(v12587); wg91c62.mbf433(v12587,vf354); v89b97--; } v12587._UIState ="Unchanged"; } if (!v28347.IsUseColumnSet) wg91c62.m22b32(v28347,v65545); if (!v28347.IsRootTable) wga3c88.m26956(vd6397); v28347.GroupedColumns.UpdateChanges(); }, m78413:function(v7b46) { var vf7a67 =null; var v0d213 =v7b46.Grid; if (v0d213.HeaderContext) vf7a67 =v0d213.HeaderContext.parentElement; for (var v16538=0; v16538<v7b46.SortedColumns.length; v16538++) { var v7090 =v7b46.SortedColumns[v16538]; var v8bc8 =v7b46.Columns.GetNamedItem(v7090.ColumnMember); var v26874 =v8bc8.GetElement(); if (v26874 ==null) v26874 =v7090.GetElement(); v8bc8.IsSorted =true; v8bc8.SortOrder =v7090.SortOrder; if (v26874) v26874.sortOrder =v8bc8.SortOrder; if (v7090._UIState =="Added") { } else if (v7090._UIState =="Changed") { if (v7090.SortOrder =="None") v7b46.SortedColumns.Remove(v7090,true); } if (v7090._UIState =="Removed") { v7b46.SortedColumns.Remove(v7090); v8bc8.IsSorted =false; v8bc8.SortOrder ="None"; if (v26874) v26874.sortOrder ="None"; v16538--; } if (v26874) wg91c62.mb0355(v0d213,v26874); v7090._UIState ="Unchanged"; } v7b46.SortedColumns.UpdateChanges(); }, m08457:function(v1b272,v19070,v64127) { var vf2378 =null; var v54771 =v1b272.Grid; if (v54771.HeaderContext) vf2378 =v54771.HeaderContext.parentElement;  if (typeof(v19070)=="undefined") { v1b272._LastFilters.Clear(); }  if (!v54771.LayoutSettings.ShowFilterStatus ||!v54771.LayoutSettings.StatusBarVisible) v19070 =true; for (var v3e18=0; v3e18<v1b272.FilteredColumns.length; v3e18++) { var v4a67 =v1b272.FilteredColumns[v3e18]; var v37352 =v1b272.Columns.GetNamedItem(v4a67.ColumnMember); var v9dd88 =v37352.GetElement(); var v7de61 =v4a67.GetElement(); if (v7de61 &&(v4a67._UIState =="Added" ||v4a67._UIState =="Changed")) { v7de61.oldCellValue =v7de61.cellValue =v7de61.childNodes[0].value =v7de61.filterText =v4a67.FilterText; v7de61.filterType =wg09156.ma5539(v4a67.FilterType); if (v37352.GetFilterEditType()=="Checkbox") { if (v64127 =="FilterSuggestClick") wg2f128.mea00(v7de61).checked =(v4a67.FilterText =="true"); else wg2f128.mea00(v7de61).checked =(v7de61.cellValue ==true ||v7de61.cellValue =="true");  v4a67.FilterText =v4a67.FilterText.toString(); } else if (v37352.GetFilterEditType()=="WebComboNET" ||v37352.GetFilterEditType()=="DropdownList") { } else v7de61.childNodes[0].innerText =v7de61.cellValue;  if (v4a67.FilterText !=v7de61.childNodes[0].innerText) v4a67.FilterDisplayText =v7de61.childNodes[0].innerText; } if (v4a67._UIState =="Removed") { if (v7de61) { v7de61.oldCellValue =v7de61.cellValue =v7de61.childNodes[0].value =v7de61.filterText =""; v7de61.filterType ="0"; if (v37352.GetFilterEditType()=="Checkbox") wg2f128.mea00(v7de61).checked =false; else v7de61.childNodes[0].innerText =""; } v1b272.FilteredColumns.Remove(v4a67); v3e18--; } if (IS.moz &&v7de61) wgd2488.md9747(v7de61,v7de61.offsetWidth); v4a67._UIState ="Unchanged"; }  if (!v19070) { if (v1b272.FilteredColumns.length ==0) { v1b272.FilterState ="Disabled"; wg91c62.m2ce87(v54771,"Disabled",v1b272._LastFilters.length ==0); } else { v1b272.FilterState ="Enabled"; wg91c62.m2ce87(v54771,"Enabled",false); } }  v1b272.FilteredColumns.UpdateChanges(); }, mdc151:function(v88963,vbfe18) { var vbb327 =wg91c62.m15a57(v88963); var v5f349 =-1; if (!vbb327) v5f349 =wg91c62.m53562(v88963); else v5f349 =vbb327.cellIndex +(vbfe18 *2); return v5f349; }, m47829:function(vda12,vc3837) { var v28947 =wg4a378.m59262(vda12); v28947.IsGrouped =true; if (v28947.SortOrder =="None") v28947.SortOrder ="Ascending"; var v5e058 =new WebGridGroup(); v5e058.ColumnMember =v5e058.Name =v28947.Name; v5e058.SortOrder =v28947.SortOrder; if (typeof (vc3837)=="undefined") v28947.Table.GroupedColumns.Add(v5e058); else v28947.Table.GroupedColumns.InsertAt(v5e058,vc3837); return v5e058; }, m72854:function(v81d18,v5be52) { var v48938 =wg91c62.m9e832(v81d18.GetGrid().Id,v81d18.Table.Id); var v7357 =false; var ve4f83 =false; if (v48938) { if (!wg91c62.m99b0(v81d18.GetGrid().Id,v81d18.Table.Id,v81d18.Name)) ve4f83 =true; } else { v7357 =true; ve4f83 =true; } if (!v7357 &&!ve4f83) return false; var v02d43 =v81d18.GetGrid(); var v9fc39 =v81d18.Table; var v3b336 =v02d43.FrameObj.style.posLeft; if (v7357) { var v8b762 =-1; if (!v9fc39.IsRootTable) { wga3c88.m5f099(v81d18); v8b762 =wga3c88.mb6268(v81d18,v9fc39.Parent.Name); wg91c62.mf5693(v9fc39,v8b762 +1); v02d43.NeedHeightResize =true; } v48938 =wg91c62.m21890(v9fc39,v8b762 +2); } if (ve4f83) { var v48034 =v48938.childNodes[0].childNodes[0].childNodes[0].childNodes[0]; var v3ec8 =null; var va6924 =null; var vc8c37 =null; var v17566 =v02d43.GetElement(WG40.GROUPBYBOXLABEL,WG40.HTMLROW); if (v17566.style.display =="") v17566.style.display ="none"; if (!v9fc39.IsRootTable &&v02d43.HeaderContext) { vc8c37 =v02d43.HeaderContext.parentElement;  if (vc8c37.tagName !="TD" &&vc8c37.tagName !="TR") vc8c37 =wg4a378.m2c14(vc8c37); } va6924 =v81d18.GetElement(vc8c37); va6924.tblName =v9fc39.Id; var v18885 =v9fc39.GroupedColumns.GetNamedItem(v81d18.Name); if (v18885.Index<v9fc39.GroupedColumns.length -1) { var v17f82 =v18885.Index; if (v17f82<0) v17f82 =0; v3ec8 =wg91c62.mdc151(v48938,v17f82)-1; } if (v3ec8) { var va4738 =wg91c62.m15a57(v48938); if (va4738) if (v3ec8<va4738.cellIndex) v3ec8 =va4738.cellIndex -1; } var v27249; if (v3ec8 &&!v7357) v27249 =v48034.insertCell(v3ec8); else v27249 =v48034.insertCell(-1); v27249.style.cssText ="width: 16px; padding: 0px"; var v79f32 =v02d43.LayoutSettings.GroupByBox.ConnectorLineColor; v27249.innerHTML ="<hr size=1 style='border-color: " +v79f32 +" ; border-style: " +v02d43.LayoutSettings.GroupByBox.ConnectorLineStyle +"' width='100%'>"; var v7de47; if (v3ec8 &&!v7357) v7de47 =v48034.insertCell(v3ec8 +1); else v7de47 =v48034.insertCell(-1); v7de47.innerHTML =va6924.innerHTML; v7de47.mergeAttributes(va6924); if (IS.moz) v7de47.style.cssText =va6924.style.cssText; v7de47.style.backgroundColor =""; v7de47.style.color =""; v7de47.style.width =va6924.offsetWidth +"px"; v7de47.type ="GroupColumn"; v7de47.gridId =v02d43.Id; v7de47.tblName =v9fc39.Id; var v87880 =v9fc39.SortedColumns.GetNamedItem(v81d18.Name); if (v87880) { v9fc39.SortedColumns.Remove(v87880); v9fc39.SortedColumns.UpdateChanges(); wg91c62.mfb815(v7de47); } else { v7de47.sortOrder ="Ascending"; v7de47.innerHTML +="&nbsp;"; } wg91c62.mb0355(v02d43,v7de47); var v31424 =v9fc39.Get("HideColumnsWhenGrouped")=="Yes"; if (v31424 &&!v9fc39.IsUseColumnSet) { wg91c62.m89641(v81d18,true); } else { va6924.sortOrder =v7de47.sortOrder; wg91c62.mfb815(va6924); wg91c62.mb0355(v02d43,va6924); } wg91c62.m0d26(v9fc39,"Group",va6924); } }, mb4d6:function(va6a29) { var v9bd38 =va6a29.Table; var v4fc61 =v9bd38.Grid; var v16f91 =v9bd38.GroupedColumns[va6a29.Index +1]; var v8f62 =false; var vec226 =null; var v15b1 =null; vec226 =va6a29.GetElement(); if (v16f91) { v15b1 =v16f91.GetElement().previousSibling; } else { tr =wg91c62.m9e832(v4fc61.Id,v9bd38.Id); v15b1 =wg91c62.m53562(tr); v8f62 =true; } if (vec226 &&v15b1) { var vfaa42 =vec226.previousSibling; wg91c62.m6cf94(vfaa42,v15b1,v8f62); wg91c62.m6cf94(vec226,vfaa42,true); } }, mbf433:function(v54199,vedd97,v23a66) { var v08213 =v54199.Table; var v04150 =v08213.Grid; var vca144 =v08213.Columns.GetNamedItem(v54199.ColumnMember); var v65667 =wg_Global.TargetHeader; var vfe847 =v04150.LayoutSettings.HideColumnsWhenGrouped; var v6b918 =v54199.GetElement(); var v11736 =v6b918.parentElement;  if (vedd97) v65667 =vedd97; v11736.removeChild(v6b918.previousSibling); v11736.removeChild(v6b918); vca144.IsGrouped =false; vca144.SortOrder ="None"; if (v23a66 &&vfe847 =="Yes") vca144.Visible =false; v08213.ColumnMenu =null; if (v65667 &&v65667.Type =="Column") { if (vfe847 =="Yes") { vca144.Visible =vca144.ForceVisible =true; v65667.Element.insertAdjacentElement((v65667.ProperPosition ==v65667.PosLeft ? "beforeBegin" : "afterEnd"),v6b918);  wg91c62.mfb815(v6b918); v6b918.sortOrder ="None"; v6b918.type ="Column";  wg91c62.m0c96(v08213,"Add",[vca144,v6b918.cellIndex]); wg91c62.m0d26(v08213,"UngroupRestore",v6b918); } else { var v95e0 =vca144.GetElement();  if (v95e0 !=null) { wg91c62.mfb815(v95e0);  v95e0.sortOrder ="None"; }  wg91c62.m0d26(v08213,"UngroupHide",v65667.Element.parentElement); } } else if (v65667 &&v65667.Type =="Unknown") { if (vfe847 =="Yes") vca144.Visible =false; } else { if (vfe847 =="Yes") vca144.Visible =false; } var ve0333 =v08213.HasChildTableGroupedColumns(); if (!ve0333) { if (v08213.GroupedColumns.length ==0) { if (!v08213.IsRootTable) { wga3c88.me3488(v08213); wg91c62.mcd61(v11736); } wg91c62.m71c28(v11736); v04150.NeedHeightResize =true; } } if (!v04150.HasGroup()) { var v9a95 =v04150.GetElement(WG40.GROUPBYBOXLABEL,WG40.HTMLROW); v9a95.style.display =""; } }, m69881:function(vf3b74,vcf786,vec718) { var v9f018; wg_Global.IsMouseDown =false; if (vf3b74.tagName !="TD" &&vf3b74.tagName !="TH") { v9f018 =vf3b74; vf3b74 =wg4a378.m5e484(vf3b74); } if (!vf3b74) return; else if (vf3b74.type =="SubCell") vf3b74 =wg4a378.m2c14(vf3b74.parentElement);  if (!vf3b74.type) return; if (vf3b74.tagName =="TD" ||vf3b74.tagName =="TH") { var vd0f6 =vf3b74.parentElement; if ((vf3b74.type =="Cell" ||vf3b74.type =="GroupColumn" ||vf3b74.type =="Column" ||vf3b74.type =="GroupCell" ||vf3b74.type =="FilterColumn")) { var v84d33 =wg4a378.m33a20(vd0f6); var vc920 =ISGetObject(v84d33.gridId); if (!vc920 ||!vc920.Enabled) return; if (v9f018 &&v9f018.tagName =="IMG" &&vd0f6.type =="FilterRow") return; var v7f612 =vc920.Tables[v84d33.tblName]; if (vc920.LayoutSettings.AllowContextMenu) { event.cancelBubble =true; event.returnValue =false; wg09156.m0dd51(vc920,vf3b74,vcf786,vf3b74.type,null,vec718); return false; } } } }, OnGBBMouseMove: function() { var v5a09 =event.srcElement; if (wg_Global.IsHeaderDragged) return; if (v5a09.tagName =="TD" ||v5a09.tagName =="TH") { var v39855 =ISGetObject(wg4a378.mb5458(v5a09.parentElement)); if (!v39855) return; var v20837 =v39855.Tables[wg4a378.m97d49(v5a09.parentElement)]; if (event.button ==1) { if (v5a09.type =="GroupColumn") { v5a09.tblName =v20837.Id; v5a09.gridId =v39855.Name; wg_Global.ColDragTarget =v5a09; } } } }, m85031:function() { if (event.button ==ISEvent.LEFT) wg_Global.IsDragObjectValid =true; }, mcc684:function() {  }, m5ce30:function(vc9595) { var v17b48 =wg_Global.ColSizeTarget; if (v17b48 &&v17b48.cellIndex ==-1) v17b48 =null; if (v17b48 !=null) { var v66f74 =v17b48.parentElement; var va8170 =0; va8170 =ISPosLib.getLeft(v17b48); var veec68 =ISGetObject(v17b48.gridId); if (!veec68) return; if (typeof (vc9595)=="object") vc9595 =false; var v8a456 =veec68.Tables[v17b48.tblName]; if ((!veec68.Resizer ||veec68.Resizer.style.display =="none")&&!vc9595) return; var v2e281 =wg4a378.m59262(v17b48); if (!vc9595) { var vaf133 =veec68.Resizer.style.posLeft -va8170 +posLib2.getLeftAbs(veec68.FrameObj,veec68); if (!ISEvent.Raise(veec68.LayoutSettings.ClientSideEvents.OnColumnResize,v17b48.gridId,v17b48.tblName,v2e281,vaf133)) return; if (v17b48.type =="CSHeader") wg_Global.NoDisplayUpdate =true; } var v29e55 =v17b48.style.width; wg91c62.m1dc53(v8a456,v17b48,(vc9595 ? v17b48.EstWidth : vaf133),vc9595);  if (v8a456.IsRootTable) wg4a378.m89c30(veec68);  if (veec68.Resizer) veec68.Resizer.style.display ="none"; if (event) { event.cancelBubble =true; event.returnValue =false; } wg_Global.ColSizeTarget =v17b48; } if (wg_Global.ColSizeTarget) wg_Global.ColSizeTarget.style.cursor =""; if (wg_Global.ColSizeTarget2) wg_Global.ColSizeTarget2.style.cursor =""; if (event !=null &&event.button ==ISEvent.LEFT) wg_Global.IsDragObjectValid =false; wg_Global.IsMouseDown =false; }, m5735:function() { var v9e479 =event.srcElement; if (wg_Global.IsHeaderDragged) return; if (v9e479.tagName !="TD" &&v9e479.tagName !="TH") v9e479 =wg4a378.m5e484(v9e479); if (v9e479 &&(v9e479.tagName =="TD" ||v9e479.tagName =="TH")) { var v97d42 =v9e479.parentElement; var ve428 =ISGetObject(wg4a378.mb5458(v97d42)); if (!ve428) return; if (!ve428.Enabled) return;  if (ve428.EnableSection508Standards &&v9e479.tagName !="TH" &&v9e479.type !="ColHeader" &&v9e479.type !="GroupColumn") return; var v32836 =ve428.Tables[wg4a378.m97d49(v97d42)]; if (!v32836) return; if (((!IS.ie &&!wg_Global.IsMouseDown)||IS.ie)&&(event.button ==0 ||event.button ==65535)) { if (!IS.ie) wgd2488.m00476(v9e479); if (v9e479.type !="Column" &&v9e479.type !="CSHeader") return; var v36699 =null; if (v9e479.type =="Column") { v36699 =wg4a378.m59262(v9e479); if (!v36699 ||v36699.IsAutoWidth) return; } else if (v9e479.type =="CSHeader") { v36699 =v32836.ColumnSets[v9e479.pos]; } var v9305 =true; var v24433 =ISPosLib.getLeft(v9e479); var vbf026 =v24433 +v9e479.offsetWidth; var v24437 =null; var vf0810 =5; if (!v32836.IsUseColumnSet) v24437 =wg4a378.m7a366(v32836,v36699); if (ve428.LayoutSettings.ShowColumnAction) vf0810 =-1; if ((plGetCurX()>=vbf026 -vf0810 &&plGetCurX()<=vbf026 +3)||(v24437 !=null &&plGetCurX()<=v24433 +8)) { var v44043 =v9e479; if (plGetCurX()<=v24433 +8) { v36699 =v24437; v9e479 =v24437.GetElement(v97d42); if (v9e479 ==null) v9e479 =wgGetCellByName(v97d42,v24437.Name); } if (v36699.Get("AllowSizing")!="Yes" ||ve428.IsInProgress) return; if (wg_Global.ColSizeTarget &&wg_Global.ColSizeTarget !=v9e479 &&wg_Global.ColSizeTarget.style) wg_Global.ColSizeTarget.style.cursor =""; v44043.style.cursor ="e-resize"; v9e479.tblName =v32836.Id; v9e479.gridId =ve428.Name; wg_Global.ColSizeTarget =v9e479; if (v9e479 !=v44043) wg_Global.ColSizeTarget2 =v44043; else { if (!ve428.ActionBoxShown &&ve428.ActionElement !=null) ve428.ClearActionElement(); } } else { if (wg_Global.ColSizeTarget) { if (wg_Global.ColSizeTarget.style) wg_Global.ColSizeTarget.style.cursor =""; wg_Global.ColSizeTarget =null; } if (wg_Global.ColSizeTarget2) { if (wg_Global.ColSizeTarget2.style) wg_Global.ColSizeTarget2.style.cursor =""; wg_Global.ColSizeTarget2 =null; } wg91c62.m74011(); } } else if (event.button ==ISEvent.LEFT ||wg_Global.IsMouseDown) { if (wg_Global.ColSizeTarget !=null) { if (v32836.Id !=wg_Global.ColSizeTarget.tblName) { return; } else { if (wg4a378.m33a20(v97d42)!=wg4a378.m33a20(wg_Global.ColSizeTarget.parentElement)) { return; } } var v1c980 =ve428.Resizer; if (v1c980 ==null) { v1c980 =wg91c62.mc8023(ve428); ve428.Resizer =v1c980; } var vcd237 =ISPosLib.getLeft(wg_Global.ColSizeTarget); var v97d42 =wg_Global.ColSizeTarget.parentElement; if (ve428.ActionElement !=null) ve428.ClearActionElement(); if (plGetCurX()>vcd237 +10) { if (ve428.LastEditObj) ve428.ExitEditMode(); v1c980.style.left =plGetCurX()-2 -posLib2.getLeftAbs(ve428.FrameObj,ve428)+"px"; if (v1c980.style.display !="") { v1c980.style.height =v32836.GetElement(WG40.BODY,WG40.HTMLDIV,v97d42).offsetHeight +v32836.GetElement(WG40.COLHEADER,WG40.HTMLDIV,v97d42).offsetHeight +"px"; v1c980.style.top =ISPosLib.getTop(v9e479)-posLib2.getTopAbs(ve428.FrameObj,ve428)+"px"; } v1c980.style.display =""; v1c980.style.cursor ="e-resize"; } v9305 =true; } else { if (v9e479.type =="Column" ||v9e479.type =="GroupColumn") { v9e479.tblName =v32836.Id; v9e479.gridId =ve428.Name; wg_Global.ColDragTarget =v9e479; } } } } }, mac218:function() { var v1a956 =((event)? event.srcElement : wg_Global.EventContext); if (v1a956.tagName !="TD" &&v1a956.tagName !="TH") v1a956 =wg4a378.m5e484(v1a956); if (!v1a956) return; if (v1a956.type =="Column" &&v1a956.style.cursor =="e-resize") { var v6bb37 =ISGetObject(wg4a378.mb5458(v1a956.parentElement)); var v62934 =v1a956; var v0c352 =v1a956.parentElement; var v0809 =ISPosLib.getLeft(v1a956); if (v6bb37.LastEditObj) v6bb37.ExitEditMode(); if (plGetCurX()<=v0809 +6) { var v34242 =v6bb37.Tables[wg4a378.m97d49(v0c352)]; var vfba63 =wg4a378.m59262(v1a956); var v24216 =wg4a378.m7a366(v34242,vfba63); v62934 =v24216.GetElement(v0c352); if (v62934 ==null) v62934 =wgGetCellByName(v0c352,v24216.Name); } wg91c62.ma6c98(v62934); v1a956.style.cursor ="";  if (v6bb37.ActionElement !=null) v6bb37.ClearActionElement(); return true; } }, m9c532:function(vbf430,v0f281,v29495) { var vd4067 =((event)? event.srcElement : wg_Global.EventContext); if (v0f281) vd4067 =v0f281; if (vd4067.tagName !="TD" &&vd4067.tagName !="TH") vd4067 =wg4a378.m5e484(vd4067); if (!vd4067) return; if (wg_Global.DragJustEnded) { wg_Global.DragJustEnded =false; return; } if (vd4067.type =="Column" ||vd4067.type =="GroupColumn") { var v7fd95 =ISGetObject(wg4a378.mb5458(vd4067.parentElement)); if (!v7fd95) return; var v28d4 =v7fd95.Tables[wg4a378.m97d49(vd4067.parentElement)]; var vdef58 =vd4067.parentElement; var vf3753 =ISPosLib.getLeft(vd4067)+vd4067.offsetWidth; if ((plGetCurX()>=vf3753 -5 &&plGetCurX()<=vf3753)||(wg_Global.ColSizeTarget ||wg_Global.ColSizeTarget2)) { if (wg_Global.ColSizeTarget) wg_Global.ColSizeTarget =null; if (wg_Global.ColSizeTarget2) wg_Global.ColSizeTarget2 =null; return; } vd4067.tblName =v28d4.Id; vd4067.gridId =v7fd95.Name; var v2e056 =v28d4.Columns.GetNamedItem(vd4067.colName); if (vd4067.isGrouped =="True" &&vd4067.type =="Column") { var vb0a74 =v28d4.GroupedColumns.GetNamedItem(v2e056.Name); wg91c62.m9c532(true,vb0a74.GetElement(),vd4067); return; } if (!vbf430) { if (v2e056.Get("AllowSorting")!="Yes") return; if (!v7fd95.Enabled) return; } if (vbf430) { var vb0a74 =v28d4.GroupedColumns.GetNamedItem(v2e056.Name); if (vd4067.sortOrder =="None") vb0a74.SortOrder ="Ascending"; else { if (vd4067.sortOrder =="Ascending") vb0a74.SortOrder ="Descending"; else vb0a74.SortOrder ="Ascending"; } v2e056.SortOrder =vb0a74.SortOrder; vb0a74._UIState ="Changed"; wg91c62.md2568(v28d4); wg4a378.m71658(v7fd95.Name,"ChangeGroup",vd4067); return; } if ((v7fd95.LastEditObj ||v7fd95.ActiveEditCell)&&!v7fd95.IsExitingEdit) { var v1ea8 =v7fd95.LastEditObj; var v7e142 =v7fd95.ActiveEditCell; var v54482 =v7fd95.Tables[((v1ea8)? v1ea8.tblName : v7e142.tblName)]; var v8d966 =v54482.Get("AllowEdit")=="Yes"; var v9aa54; if (v1ea8) v9aa54 =v1ea8.cellElement.parentElement; else v9aa54 =v7e142.rowElement; if (v9aa54 &&v8d966 &&(v9aa54.type =="Record" ||v9aa54.type =="NewRow")) { if (v9aa54.markedEdit) { var vd4756 =wg2f128.md2226(v7fd95,1)[0]; return vd4756; } else { if (v1ea8) wg2f128.m97a96(v1ea8); } } } if (!event.shiftKey ||v28d4.Get("HeaderClickAction")=="SortSingle") { var v5a375 =vd4067.parentElement; var v74f43 =new Array(); if (v28d4.IsUseColumnSet) v74f43 =wgGetColumnSetRows(v5a375); else v74f43[0] =v5a375; for (var vb8498=0; vb8498<v74f43.length; vb8498++) { var vdef58 =v74f43[vb8498]; for (var vcfc53=0; vcfc53<vdef58.cells.length; vcfc53++) { var v19b4 =vdef58.cells[vcfc53]; if (v19b4.colName ==vd4067.colName ||v19b4.isGrouped =="True") continue; if (v19b4.type =="Column" &&v19b4.sortOrder !="None") { v19b4.sortOrder ="None"; var veab13 =v28d4.SortedColumns.GetNamedItem(v19b4.colName); if (veab13) v28d4.SortedColumns.Remove(veab13,true); } } } } var v5de84 =null; if (vd4067.sortOrder =="None") { v5de84 =new WebGridGroup(); v5de84.ColumnMember =vd4067.colName; v5de84.SortOrder ="Ascending"; v28d4.SortedColumns.Add(v5de84); } else { var v4689 =false; v5de84 =v28d4.SortedColumns.GetNamedItem(vd4067.colName); if (!v5de84) { var v5de84 =new WebGridGroup(); v5de84.ColumnMember =vd4067.colName; v5de84.SortOrder =vd4067.sortOrder; v28d4.SortedColumns.Add(v5de84); v4689 =true; } if (!v4689) { if (v5de84.SortOrder =="Ascending") v5de84.SortOrder ="Descending"; else v5de84.SortOrder ="None"; } v5de84._UIState ="Changed"; } if (ISEvent.Raise(v7fd95.LayoutSettings.ClientSideEvents.OnColumnSort,v7fd95.Id,v5de84)) { v7fd95.HeaderContext =vd4067; wg91c62.m78413(v28d4); wg4a378.m71658(v7fd95.Name,"ColumnSort",vd4067); } } }, m11247:function() { if ((event.button ==ISEvent.LEFT ||event.button ==65535)&&!IS.ie) { wg_Global.IsMouseDown =true; var vb4d22 =event.srcElement; if (vb4d22.tagName =="SPAN" ||vb4d22.tagName =="NOBR") vb4d22 =wg4a378.m2c14(vb4d22); if (vb4d22 &&vb4d22.tagName =="TD" &&vb4d22.getAttribute("type")=="Column") { doHideWindowPopups(); event.cancelBubble =true; event.returnValue =false; } } if (event.button ==ISEvent.LEFT) { wg_Global.IsDragObjectValid =true; } }, me0e41:function() { return wgdee10.m93043(); },  m74011:function() { var vb7441 =event.srcElement; if (wg_Global.IsHeaderDragged ||wg_Global.ColSizeTarget !=null) return; if (vb7441.tagName !="TD" &&vb7441.tagName !="TH") vb7441 =wg4a378.m5e484(vb7441); if (vb7441 &&(vb7441.tagName =="TD" ||vb7441.tagName =="TH")) { var v73a39 =vb7441.parentElement; var v6ce65 =ISGetObject(wg4a378.mb5458(v73a39)); if (!v6ce65) return; if (!v6ce65.Enabled) return; if (vb7441.type !="Column") return; var vdaf82 =v6ce65.Tables[wg4a378.m97d49(v73a39)]; if (!vdaf82) return; if (!v6ce65.LayoutSettings.ShowColumnAction ||v6ce65.ActionBoxShown) return; if (((!IS.ie &&!wg_Global.IsMouseDown)||IS.ie)&&(event.button ==0 ||event.button ==65535)) { var va8a61 =v6ce65.GetColumnActionElement(); var v0a938 =v6ce65.LayoutSettings.ColumnActionStyle; var v27749 =vdaf82.Columns.GetNamedItem(vb7441.colName); if (v6ce65.ActionContext !=null &&v6ce65.ActionContext[1] ==vb7441) return; if (!v27749.Bound) return; va8a61.style.left =ISPosLib.getRight(vb7441)-17 -posLib2.getLeftAbs(v6ce65.FrameObj,v6ce65)+"px"; va8a61.style.top =ISPosLib.getTop(vb7441)-posLib2.getTopAbs(v6ce65.FrameObj,v6ce65)+"px"; va8a61.style.height =ISPosLib.getHeight(vb7441)-1 +"px"; va8a61.style.display =""; va8a61.gridId =v6ce65.Id; v6ce65.ActionContext =[v27749,vb7441]; if (v0a938 !=null &&v0a938.Normal !="") DynamicStyleEngine.SetToStyle(null,v0a938,va8a61); } } }, mc248:function() { var v87761 =event.srcElement; var v8c348 =event.toElement; if (wg_Global.IsHeaderDragged) return; if (v87761.tagName !="TD" &&v87761.tagName !="TH") v87761 =wg4a378.m5e484(v87761); if (v87761 &&(v87761.tagName =="TD" ||v87761.tagName =="TH")) { var vcb232 =v87761.parentElement; var v08644 =ISGetObject(wg4a378.mb5458(vcb232)); if (!v08644) return; if (!v08644.Enabled) return; if (v87761.type !="Column") return; if (v8c348 !=null &&v87761.contains(v8c348)) return; var v70b61 =v08644.Tables[wg4a378.m97d49(vcb232)]; if (!v70b61) return; if (!v08644.LayoutSettings.ShowColumnAction ||v08644.ActionBoxShown) return; if (((!IS.ie &&!wg_Global.IsMouseDown)||IS.ie)&&(event.button ==0 ||event.button ==65535)) { var vdb148 =v08644.GetColumnActionElement(); if (vdb148.contains(v8c348)||vdb148 ==v8c348) return; v08644.ClearActionElement(); } } }, m11987:function() { var veec46 =this.LayoutSettings.ColumnActionStyle; if (this.ActionBoxShown) return; if (veec46 !=null &&veec46.Over !="") DynamicStyleEngine.SetToOverStyle(null,veec46,this.ActionElement); }, m5df99:function() { var vfbf82 =this.LayoutSettings.ColumnActionStyle; var v3dc65 =event.toElement; if (this.ActionBoxShown) return; if (vfbf82 !=null &&vfbf82.Normal !="") DynamicStyleEngine.SetToStyle(null,vfbf82,this.ActionElement); if (v3dc65 !=null &&this.ActionContext !=null &&!this.ActionElement.contains(v3dc65)) { if (!this.ActionContext[1].contains(v3dc65)) this.ClearActionElement(); } }, m8c820:function() { var v5af18 =this.LayoutSettings.ColumnActionStyle; var v44e34 =event.srcElement; var v68b91 =event.toElement; if (wg_Global.IsHeaderDragged) return; if (v44e34.style.width =="100%") v44e34 =v44e34.parentElement; var vaf798 =ISGetObject(v44e34.gridId); var vc1c71 =vaf798.ActionContext; if (vaf798.ActionBoxShown) return; if (v5af18 !=null &&v5af18.Active !="") DynamicStyleEngine.SetToActiveStyle(null,v5af18,this.ActionElement); if (!ISEvent.Raise(vaf798.LayoutSettings.ClientSideEvents.OnColumnAction,vaf798.Id,vaf798.ActionContext[0])) return; wg09156.m0dd51(vaf798,vc1c71[1],false,"Column",v44e34); vaf798.ActionBoxShown =true; setTimeout(function(){vaf798.ActionBoxShown =true; },1); }, OnDivBodyResize: function(v80921,v4f584) { }, m65b41:function() { wg_Global.ButtonState =1; var v91857 =event.srcElement; if (!IS.ie) { var v9ca53 =false; wg_Global.IsMouseDown =true;  if (v91857.tagName =="TEXTAREA" ||v91857.tagName =="SELECT") v9ca53 =true; else if (v91857.tagName =="INPUT" &&v91857.type =="checkbox" &&v91857.className !="DefChkBox") v9ca53 =true; else if (v91857.tagName =="INPUT" &&v91857.type =="text") v9ca53 =true; var v2de25 =wgGetActiveGrid();  if (v2de25) { var vdb122 =ISGetObject(v2de25); if (vdb122) { if (v91857 !=null &&v91857.type !="checkbox" &&vdb122.FrameObj.contains(v91857)&&!v9ca53) event.returnValue =true; }  if (IsGecko30()||IS.safari) { var vf3370 =false;  if (vdb122.FrameObj.contains(v91857)) vf3370 =true;  if (!vf3370) vf3370 =wg91c62.m51982(vdb122,v91857);  if (!vf3370) wgd2488.m8a23(vdb122); else if (v9ca53) return false; } } } wgdee10.ma3d97(v91857); if (event.button ==ISEvent.RIGHT) wg91c62.m69881(v91857); }, m8a01:function(v2a712,v01e87) { wg_Global.IsMouseDown =false; if (wg_Global.ColSizeTarget !=null) { var vdf013 =ISGetObject(wg_Global.ColSizeTarget.gridId); if (vdf013 &&vdf013.Resizer) vdf013.Resizer.style.display ="none"; } var vae232 =wg_Global.TargetHeader; if (vae232 &&!v01e87) { var v62b10 =wg_Global.ColDragTarget; var vdf013 =ISGetObject(v62b10.gridId); var v1e092 =vdf013.Tables[v62b10.tblName]; var v4451 =v62b10.parentElement; var va6562 =posLib2.getLeftAbs(vdf013.FrameObj,vdf013); var v64255 =posLib2.getTopAbs(vdf013.FrameObj,vdf013); if (vae232.Type =="Column" &&v62b10.type =="Column") {  if (v1e092.Get("AllowColumnMove")=="Yes" &&!v1e092.IsUseColumnSet) { if (vae232.Element.cellIndex !=v62b10.cellIndex &&vae232.ProperPosition +va6562 !=ISPosLib.getLeft(v62b10)) { var v49188 =vae232.Element.cellIndex; var v4cf8 =v62b10.cellIndex; if (vae232.ProperPosition ==vae232.PosRight &&v49188 +1<vae232.Element.parentElement.cells.length -1 &&v4cf8>v49188) { v49188++; vae232.Element =vae232.Element.parentElement.cells[v49188]; } else if (vae232.ProperPosition ==vae232.PosLeft &&v4cf8<v49188 &&v49188>0) { v49188--; vae232.Element =vae232.Element.parentElement.cells[v49188]; } if (v4cf8 !=v49188) { if (ISEvent.Raise(vdf013.LayoutSettings.ClientSideEvents.OnColumnMove,v62b10.gridId,v62b10.tblName,v4cf8,v49188, wg4a378.m59262(v62b10), wg4a378.m59262(vae232.Element))) { if (v1e092.IsRootTable) { v1e092._colIndexCache =null; v1e092._colIndexCache2 =null; }  vdf013.SetStatus1("","columnmove","CommonText/ColumnMove"); wg_Global.MoveColEventArgs =new wgMoveColArgs(v1e092,v49188,v4cf8,v4451,v62b10,vae232); setTimeout("wg91c62.m3ed5()",200); } } } } } else if (vae232.Type =="GroupColumn" ||vae232.Type =="GroupInfo") { var v22558 =v1e092.Columns.GetNamedItem(v62b10.colName); if (v22558.Get("AllowGrouping")=="Yes") { var vdc570 =""; vdf013.HeaderContext =v62b10; if (vae232.Type =="GroupInfo") { if (v1e092.GroupedColumns.GetNamedItem(v22558.Name)==null) { if (ISEvent.Raise(vdf013.LayoutSettings.ClientSideEvents.OnColumnGroup,vdf013.Id,v22558)) { wg91c62.m47829(v62b10); vdc570 ="Group"; } } } else { if (v62b10.type =="Column") { var vef613 =0; var vc3c42 =v1e092.GroupedColumns.GetNamedItem(vae232.Element.colName); if (vc3c42) { vef613 =vc3c42.Index +1; if (vae232.ProperPosition ==vae232.PosLeft) vef613--; } if (ISEvent.Raise(vdf013.LayoutSettings.ClientSideEvents.OnColumnGroup,vdf013.Id,v22558)) { wg91c62.m47829(v62b10,vef613); vdc570 ="Group"; } } else { if (v62b10 !=vae232.Element) { var v29353 =v1e092.GroupedColumns.GetNamedItem(v62b10.colName); var vc3c42 =v1e092.GroupedColumns.GetNamedItem(vae232.Element.colName); if (v29353.Index !=vc3c42.Index) { if (ISEvent.Raise(vdf013.LayoutSettings.ClientSideEvents.OnColumnGroupChange,vdf013.Id,v22558)) { v1e092.GroupedColumns.Move(v29353.Index,vc3c42.Index); vdc570 ="ChangeGroup"; } } } } } if (vdc570 !="") { if (vdc570.indexOf("Group")!=-1) wg91c62.md2568(v1e092); wg4a378.m71658(vdf013.Name,vdc570,v62b10); } } } else { if (v62b10.type =="GroupColumn") { var v22558 =v1e092.Columns.GetNamedItem(v62b10.colName); var vefb19 =true; if (vdf013.FreezePaneActive &&vae232.Type =="Column" &&vae232.Element !=null) { var vf8e40 =v1e092.Columns.GetNamedItem(vae232.Element.colName);  if (vf8e40.IsFrozen) { alert("You cannot ungroup a column inside frozen columns area."); vefb19 =false; } }  if (vefb19 &&v22558.Get("AllowGrouping")=="Yes") { if (ISEvent.Raise(vdf013.LayoutSettings.ClientSideEvents.OnColumnUngroup,vdf013.Id,v22558)) { v1e092.GroupedColumns.Remove(v1e092.GroupedColumns.GetNamedItem(v62b10.colName),true); wg91c62.md2568(v1e092); wg4a378.m71658(vdf013.Name,"Ungroup",v62b10); } } } } } if (wg_Global.IsHeaderDragged) { var vfd625 =wg_Global.Dragger; if (vfd625) { var v62b10 =wg_Global.ColDragTarget; if (!vdf013) vdf013 =ISGetObject(v62b10.gridId); vfd625.style.display ="none"; wg_Global.Dragger =null; v62b10.style.color =""; v62b10.style.backgroundColor =""; v62b10.removeAttribute("elLeft"); v62b10.removeAttribute("elTop"); v62b10 =null; wg_Global.ColDragTarget =null; wg_Global.TargetHeader =null; wg_Global.IsDragObjectValid =false; if (vdf013.ColPointer) vdf013.ColPointer.style.display ="none"; if (vdf013.Resizer) vdf013.Resizer.style.display ="none"; } wg_Global.DragJustEnded =true; } wg_Global.IsHeaderDragged =false; wg_Global.ButtonState =0; wg_Global.MouseCoord =null; wg_Global.MouseMoved =false; }, macf54:function() { var v66448 =true; if (IS.moz) { if (!wg_Global.IsMouseDown) v66448 =false; } if (ISEvent.IsLeftButton(event)&&v66448) { if (wg_Global.ColSizeTarget) return false; if (!wg_Global.MouseMoved) { var vb8656 =wg_Global.MouseCoord; if (!vb8656) { wg_Global.MouseCoord =new wgMouseCoord(event.x,event.y); wg_Global.MouseMoved =true; return; } else { if (vb8656.x !=event.x &&vb8656.y !=event.y) { wg_Global.MouseMoved =true; } } return; } else { if (wg_Global.ColDragTarget &&wg_Global.IsDragObjectValid) wg_Global.IsHeaderDragged =true; } if (wg_Global.IsHeaderDragged) { var vc1637 =wg_Global.ColDragTarget; var v01d26 =ISGetObject(vc1637.gridId); if (!v01d26.Enabled) return; if (vc1637) { vc1637.style.backgroundColor =v01d26.SelectedHeaderBackColor; vc1637.style.color =v01d26.SelectedHeaderForeColor; var v8381 =wg_Global.Dragger; if (v8381 ==null) { v8381 =wg91c62.m30565(vc1637); wg_Global.Dragger =v8381; } if (v01d26.ActionElement !=null) v01d26.ClearActionElement(); var v42564; var v84e58; if (!vc1637.getAttribute("elLeft")) { v42564 =plGetCurX()-ISPosLib.getLeft(vc1637); vc1637.setAttribute("elLeft",v42564); } else v42564 =vc1637.getAttribute("elLeft"); if (!vc1637.getAttribute("elTop")) { v84e58 =(plGetCurY())-ISPosLib.getTop(vc1637); vc1637.setAttribute("elTop",v84e58); } else v84e58 =vc1637.getAttribute("elTop"); if (v01d26.LastEditObj) v01d26.ExitEditMode(); var v2ea10 =plGetCurX()-v42564 -posLib2.getLeftAbs(v01d26.FrameObj,v01d26); var v80146 =plGetCurY()-posLib2.getTopAbs(v01d26.FrameObj,v01d26)+3;  v8381.style.left =v2ea10 +"px"; v8381.style.top =v80146 +"px"; v8381.style.display =""; var v1cc3 =wg91c62.m18615(v8381,vc1637); var vca423 =v01d26.Resizer; if (v1cc3) { wg_Global.TargetHeader =v1cc3; var v01d26 =ISGetObject(vc1637.gridId); var vb9561 =v01d26.ColPointer; var v82d7 =v01d26.Tables[vc1637.tblName]; var v49012 =vc1637.parentElement; var v82e67 =v82d7.Columns.GetNamedItem(vc1637.colName); if (v1cc3.Type =="Column") { if (v82d7.Get("AllowColumnMove")!="Yes" ||v82d7.IsUseColumnSet) return;  if (v01d26.FreezePaneActive) { var v77c40 =v82d7.Columns.GetNamedItem(v1cc3.Element.colName);  if (v82e67.IsFrozen ||(v77c40 &&v77c40.IsFrozen)) { wg_Global.TargetHeader =null; return; } }  if (vca423 ==null) { vca423 =wg91c62.mc8023(v01d26); v01d26.Resizer =vca423; } vca423.style.left =v1cc3.ProperPosition; vca423.style.height =v8381.offsetHeight; vca423.style.top =v1cc3.PosTop; vca423.style.display =""; if (vb9561) vb9561.style.display ="none"; } else if (v1cc3.Type =="GroupInfo" ||v1cc3.Type =="GroupColumn") { if (v82e67.Get("AllowGrouping")!="Yes") return; if (vc1637.groupExist &&v1cc3.Type =="GroupColumn" &&vc1637.tblName !=v1cc3.Element.tblName) return; if (vb9561 ==null) { vb9561 =wg91c62.m9ce69(v01d26); v01d26.ColPointer =vb9561; } vb9561.style.display =""; vb9561.style.left =v1cc3.ProperPosition; vb9561.style.top =v1cc3.PosTop; if (vca423) vca423.style.display ="none"; } else if (v1cc3.Type =="Unknown") { if (vb9561) vb9561.style.display ="none"; if (vca423) vca423.style.display ="none"; if (event !=null &&event.srcElement !=null) { if (!v01d26.FrameObj.contains(event.srcElement)) wg91c62.m8a01(null,true); } } } else { if (vb9561) vb9561.style.display ="none"; if (vca423) vca423.style.display ="none"; } } } } }, m23e1:function(v92a28,v8051) { var v00828 =v92a28; var vd351 =""; var v1cf79 =new Array(); for (var v27224=v00828.parentGroupIndex -1; v27224>=0; v27224--) { var v01988 =wg91c62.m57f30(v00828,v27224,"previous");  if (v01988 !=null) v1cf79[v1cf79.length] =v01988.position; } v1cf79.reverse(); vd351 =v1cf79.join(";"); if (!v8051) { if (vd351 !="") vd351 +=";"; if (typeof (v92a28.parentIndex)!="undefined") vd351 +=v92a28.parentIndex; } return vd351; }, mb4753:function(va4459) { var v2ff3 =va4459; var vcc190 =""; var ve4a31 =new Array(); for (var v91c88=v2ff3.groupIndex -1; v91c88>=0; v91c88--) { var vb269 =wg91c62.m57f30(v2ff3,v91c88,"previous"); ve4a31[ve4a31.length] =vb269.position; } ve4a31.reverse(); vcc190 =ve4a31.join(";"); return vcc190; }, mc4746:function(v53850,v44518,v85f20,vdff36) { if (vdff36 !="") { var v2d759; var ve8e69 =0; var v7e416 =0; if (v44518) { try { v2d759 =v44518.GetElement(WG40.COLFOOTER,WG40.HTMLDIV); var vc0792 =v44518.GetElement(WG40.COLFOOTERGROUP); var v4f931 =vc0792.childNodes[vc0792.childNodes.length -1]; ve8e69 =v4f931.width; v7e416 =v2d759.scrollLeft; } catch (e) { } ; } else { v2d759 =v85f20.GetElement(WG40.COLFOOTER,WG40.HTMLDIV); } if (v2d759) { v2d759.outerHTML =vdff36; if (v44518) { var vc0792 =v44518.GetElement(WG40.COLFOOTERGROUP); var v4f931 =vc0792.childNodes[vc0792.childNodes.length -1]; v4f931.width =ve8e69; v2d759 =v44518.GetElement(WG40.COLFOOTER,WG40.HTMLDIV); if (v7e416 !=0) { v2d759.scrollLeft =v7e416; } } } } }, m63a64:function(v0e05,v7a097) { var v9095 =wg4a378.mb6713(v0e05.LastSelObj); if ((v9095 &&v0e05.LastSelObj.GetRowElement().type !="NewRow" &&v0e05.LastSelObj.GetRowElement().type !="FilterRow")||!v9095) { if (v9095 &&v0e05.LastSelObj.tblName ==v7a097.Id ||!v9095) v0e05.ActiveEditCell =v0e05.LastSelObj =null; } }, m2e073:function(v6e361) { var vb4125 =document.getElementById("wgTempCnt"); if (!vb4125) { vb4125 =document.createElement("div"); vb4125.id ="wgTempCnt"; vb4125.style.display ="none"; } vb4125.innerHTML =v6e361; document.body.appendChild(vb4125); }, m0ce44:function() { var v19e61 =document.getElementById("wgTempCnt"); if (v19e61) v19e61.innerHTML =""; }, mabe81:function() { var v4f561 =document.getElementById("wgTempCnt"); if (v4f561) return v4f561.childNodes[0]; return null; }, m57f30:function(v83180,v51385,v96d57,v6ee4) { if (typeof(v6ee4)=="undefined") v6ee4 ="GroupHeader";  if (v96d57 =="previous") { var vce161 =v83180; var v25376 =wg4a378.m33a20(vce161); while (vce161) { wg4a378.mb6b61(vce161); if (vce161.groupIndex ==v51385 &&vce161.type ==v6ee4) return vce161; try { vce161 =wgGetPreviousRow(v25376,vce161); } catch (e) { vce161 =null; } } return null; } else if (v96d57 =="next") { var vce161 =v83180; var v25376 =wg4a378.m33a20(vce161); while (vce161) { wg4a378.mb6b61(vce161); if (vce161.groupIndex ==v51385 &&vce161.type ==v6ee4) return vce161; try { vce161 =wgGetNextRow(v25376,vce161); } catch (e) { vce161 =null; } } return null; } }, m0f568:function(v4e419) { var v05464; for (var v74926=0; v74926<v4e419.cells.length; v74926++) { if (v4e419.cells[v74926].type =="Cell") v05464 =v4e419.cells[v74926]; } return v05464; }, m39e24:function(v44091) { var v7d519 =v44091.GetGrid(); var v1385 =v44091.Table; var vf8e91 =v44091.GetElement(); if (!ISEvent.Raise(v7d519.LayoutSettings.ClientSideEvents.OnColumnChanged,v7d519.Id,v1385.Id,v44091.Name,"Removed")) return; wg91c62.m89641(v44091); wg91c62.m0d26(v1385,"Remove",vf8e91.parentElement); wg91c62.m22b32(v1385,vf8e91.parentElement); wg4a378.m71658(v7d519.Name,"ColumnChange",vf8e91); if (v1385.ColumnMenu !=null) { v1385.ColumnMenu.Destroy(); v1385.ColumnMenu =null; } },  m89641:function(v5d95,vc3f51) { var vec575 =v5d95.GetGrid(); var v50184 =v5d95.Table; var v31976 =v5d95.GetElement(); var vc2731 =v31976.parentElement; var v8b441 =v50184.GetElement(WG40.COLGROUP,null,vc2731); var v92599 =v50184.GetElement(WG40.BODY,WG40.HTMLTABLE,vc2731); var v19856 =v31976.cellIndex; v31976.removeNode(true); v31976.tblName =v50184.Id; if (v50184.Get("AllowAddNew")=="Yes") { var v43d79 =v50184.GetNewRow(vc2731); v43d79.cells[v43d79.cells.length -1].colSpan -=1; v43d79.nextSibling.cells[v50184.IsRootTable ? 0 : 1].colSpan -=1; } if (v50184.IsRootTable &&v50184.Get("AllowFilter")=="Yes") { var vd1e44 =v50184.GetFilterRow(vc2731); vd1e44.cells[v19856 +wg91c62.maf614(vec575)].removeNode(true); vd1e44.nextSibling.cells[0].colSpan -=1; }  v5d95.Visible =false; v5d95.ForceVisible =false; wg91c62.m0c96(v50184,"Remove",[v19856]); if (!vc3f51) { var ve8626 =v50184.SortedColumns.GetNamedItem(v5d95.Name); if (ve8626) v50184.SortedColumns.Remove(ve8626); var v60415 =v50184.FilteredColumns.GetNamedItem(v5d95.Name); if (v60415) { v50184.FilteredColumns.Remove(v60415,true); wg91c62.m08457(v50184); } } }, maf614:function(ve025) { if (ve025.FreezePaneActive &&ve025.FreezeConfig !=null) { if (IS.ie) return ve025.FreezeConfig[0].length; else return 0 -ve025.FreezeConfig[0].length; }  return 0; }, m13014:function(vf8224,v09f61,v09c80) { if (v09c80 =='False' ||!v09c80) v09f61.src =vf8224.ResolveImagePathEx(vf8224.LayoutSettings.ImageSettings.CollapseImage); else v09f61.src =vf8224.ResolveImagePathEx(vf8224.LayoutSettings.ImageSettings.ExpandImage); }, mdd07:function(vc2c35,v90e19,v8db51) { var tr,gd; if (vc2c35) { tr =vc2c35.parentElement.parentElement; gd =ISGetObject(wg4a378.mb5458(tr)); if (tr.expanded =="False") vc2c35.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.CollapseImage); else vc2c35.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.ExpandImage); } else { tr =v90e19; gd =ISGetObject(wg4a378.mb5458(tr)); } var vdba96 =wg4a378.m33a20(tr); if (tr.expanded =="False") { var v0070; var v64c17; tr.expanded ="True"; if (!v8db51) { if (!ISEvent.Raise(gd.LayoutSettings.ClientSideEvents.OnGroupExpand,gd.Name,vdba96.tblName,tr.groupIndex,tr.position,tr.rowIndex, tr)) return; } v0070 =wgGetNextRow(vdba96,tr); if (v0070) v64c17 =v0070.type; else v64c17 ="GroupHeader"; if (v64c17 =="GroupHeader" ||v64c17 =="GroupTotalRow") { var vd8144 =false; if (v64c17 =="GroupHeader") { while (v0070 &&(v0070.type =="GroupTotalRow" ||(v0070.hasParent =='True' &&(parseFloat(v0070.groupIndex)-1 ==parseFloat(tr.groupIndex)) &&v0070.parentIndex ==tr.position))) { vd8144 =true; v0070.style.display =""; if (v0070 &&v0070.type =="GroupHeader" &&v0070.expanded =="True") { v0070.expanded ='False'; wg91c62.mdd07(null,v0070); } v0070 =wgGetNextRow(vdba96,v0070); while (v0070 &&(v0070.type =="Record" ||v0070.type =="PR" ||v0070.type =="CSRecord" ||(v0070.type =="GroupTotalRow" &&parseFloat(v0070.groupIndex)-1>parseFloat(tr.groupIndex)) ||v0070.type =="HierRecord" ||(v0070.type =="GroupHeader" &&parseFloat(v0070.groupIndex)-1>parseFloat(tr.groupIndex)))) v0070 =wgGetNextRow(vdba96,v0070); } } if (!vd8144) { if (tr.childrenLoaded =="False") { wg4a378.m71658(gd.Name,"LoadGroup",tr); return; } } } else if (v64c17 =="Record") { while (v0070 &&(v0070.type =='Record' ||v0070.type =="PR" ||v0070.type =="CSRecord" ||v0070.type =='HierRecord')) { if (v0070.type =="Record" ||v0070.type =="PR" ||v0070.type =="CSRecord") { if (typeof (v0070.srLevel)!="undefined") { if (v0070.srLevel =="0") { v0070.style.display =""; if (v0070.srExpanded =="True") { if (v0070.currentStyle.display !="none") { v0070.srExpanded ="False"; wg91c62.m89518(null,v0070); } } else { if (v0070.type !="CSRecord") { v0070.srExpanded ="True"; wg91c62.m89518(null,v0070); } } } } else v0070.style.display =""; if (v0070.currentStyle.display !="none") { if (v0070.childExpanded =="True") { v0070.childExpanded ="False"; wga3c88.m6aa31(null,v0070); } } } v0070 =wgGetNextRow(vdba96,v0070); } } } else { var v0070; var v64c17; tr.expanded ='False'; if (!ISEvent.Raise(gd.LayoutSettings.ClientSideEvents.OnGroupCollapse,gd.Name,vdba96.tblName,tr.groupIndex,tr.position,tr.rowIndex, tr)) return; v0070 =wgGetNextRow(vdba96,tr); while (v0070) { if (v0070.type =="GroupTotalRow") { if (v0070.groupIndex ==tr.groupIndex) break; } if (v0070.groupIndex ==tr.groupIndex &&v0070.position !=tr.position) break; else if (parseFloat(v0070.groupIndex)<parseFloat(tr.groupIndex)) break;  else if (v0070.rowState =="Added") v0070 =wgGetNextRow(vdba96,v0070);  else { v0070.style.display ="none"; v0070 =wgGetNextRow(vdba96,v0070); } } } }, ma2c67:function(ve1291) { if ((ve1291.getAttribute("filterType")=="7" ||ve1291.getAttribute("filterType")=="10")&&ve1291.cellValue !="") { var v5ca91 =ve1291.filterText.indexOf("and"); if (v5ca91<1) { alert("Incorrect Between parameters.\nBetween parameter formats: @Criteria1 and @Criteria2.\ne.g.1 and 10"); return false; } } return true; }, m98686:function(v94e82) { var v00627 =wg4a378.mb5458(v94e82.parentElement.parentElement); var vcc968 =wg4a378.m97d49(v94e82.parentElement.parentElement); var v89354 =ISGetObject(v00627); var v80d12 =v89354.Tables[vcc968]; var vce972 =v94e82.parentElement; var vd1b52 =event; if (vd1b52.keyCode ==115) { wg09156.m9f616(v94e82.nextSibling); v80d12.FilterMenu.RootMenu.Items[0].Select(); vd1b52.keyCode =0; vd1b52.cancelBubble =true; vd1b52.returnValue =false; } else { vce972.setAttribute("changed","true"); vd1b52.cancelBubble =true; } return false; }, m74418:function(va5440) { var ve9666 =va5440.parentElement; var v19a87 =wg4a378.m33a20(ve9666.parentElement); var v1cd88 =wgGetGridById(v19a87.gridId); var v4df35 =v1cd88.Tables[v19a87.tblName]; var v20171 =v4df35.GetColumn(ve9666.colName); var v3ce71 =v20171.GetFilterEditType(); wg4a378.mb6b61(ve9666); if (ve9666.filterType =='0' &&ve9666.cellValue !='') { if (v20171.DefaultFilterType =="NotSet") { if (v3ce71 =="Checkbox") { var vc0759 =wg2f128.mea00(ve9666); if (vc0759.checked) ve9666.filterType ="3"; } else { if (v20171.DataType =="System.String") ve9666.filterType ="6"; else ve9666.filterType ="3"; } } else { ve9666.filterType =wg09156.ma5539(v20171.DefaultFilterType); } } if (ve9666.filterType !='0') { ve9666.filterText =ve9666.cellValue; if (v3ce71 !="Checkbox") { if (ve9666.filterText =='' &&!(parseFloat(ve9666.filterType)>=12 &&parseFloat(ve9666.filterType)<=15)) ve9666.filterType ='0'; } } if (ve9666.filterType !='0') { var v05792 =v4df35.FilteredColumns.GetNamedItem(v20171.Name); if (!v05792) { v05792 =new WebGridFilter(); v05792.Name =v05792.ColumnMember =v20171.Name; v4df35.FilteredColumns.Add(v05792); } else v05792._UIState ="Changed"; v05792.FilterText =ve9666.filterText; v05792.FilterType =wg_Global.FilterTypeEnum[parseFloat(ve9666.filterType)]; } else { var v05792 =v4df35.FilteredColumns.GetNamedItem(v20171.Name); if (v05792) v4df35.FilteredColumns.Remove(v05792,true); } wg91c62.ma2c67(ve9666); }, m33686:function() { var v7ab76 =document.createElement("DIV"); v7ab76.className ="WG5E-Box"; v7ab76.style.display ="none"; v7ab76.innerHTML ='<table class="WG5E-Frame1" cellspacing="0" cellpadding="4" width="780" border="0"><tr><td class="WG5E-Caption">WebGrid.NET Enterprise Version 7.0</td></tr><tr><td><table class="WG5E-Frame2" cellspacing="0" cellpadding="4" width="100%" border="0"><tr><td style="width: 39px"><img id="img_wgError" src="wg_Error.gif" height="32" /></td><td id="wg_uhemsg"></td></tr></table></td></tr><tr height="100%"><td><div id="wg_ErrorMsg" style="overflow: auto; width: 100%; height: 100%"></div></td></tr><tr><td align="right"><button class="WG5E-Btn" onclick="wgCopyToCB(wg_ErrorMsg.innerText)" >Copy</button>&nbsp;<button onclick="wg91c62.m73b7()" class="WG5E-Btn">Close</button></td></tr></table>'; document.body.appendChild(v7ab76); wg_Global.ErrorBox =v7ab76; }, m73b7:function() { wg_Global.ErrorBox.style.display ="none"; }, ma8516:function(v5ef96,ve0f55,vf4925) { if (!wg_Global.ErrorBox) wg91c62.m33686(); var v35876 =wg_Global.ErrorBox; v35876.style.width =(document.body.offsetWidth -50)+"px"; v35876.style.height =(document.body.offsetHeight -50)+"px"; v35876.style.left =v35876.style.top ="20px"; var v0ab45 =document.getElementById("wg_ErrorMsg"); if (IS.moz) { v35876.style.height =(document.body.clientHeight -50)+"px"; v35876.style.border ="tan 1px solid"; v0ab45.style.height =(document.body.clientHeight -150)+"px"; } v0ab45.innerHTML =ve0f55; document.getElementById("img_wgError").src =v5ef96.ResolveImagePathEx("wg_Error.gif"); if (vf4925) document.getElementById("wg_uhemsg").innerHTML =vf4925; wg_Global.ErrorBox.style.display =""; }, m47061:function(v71643) { var v58d15 =v71643.GetRootTable(); var va6964 =v58d15.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v1cc92 =new Array(); if (v58d15.IsUseColumnSet) { var vab765 =va6964.rows[0]; if (!vab765.csRowPos) vab765 =va6964.rows[1]; v1cc92 =wgGetColumnSetRows(vab765); } else v1cc92[0] =va6964.rows[0]; wg_Global.NoDisplayUpdate =true; wg_Global.IsResizing =true; for (var ve5d14=0; ve5d14<v1cc92.length; ve5d14++) { if (!v1cc92[ve5d14]) continue; for (var v46d3=0; v46d3<v1cc92[ve5d14].cells.length; v46d3++) { var v5f948 =v1cc92[ve5d14].cells[v46d3]; if (v5f948.type =="Column") { wg91c62.me8115(v5f948,v5f948.offsetWidth); wg91c62.m4ed69(v58d15,v1cc92[ve5d14],v5f948,v5f948.offsetWidth,true); } } } wg_Global.NoDisplayUpdate =false; wg_Global.PendingUpdates =null; setTimeout("wg_Global.IsResizing=false",100); }, m0d26:function(v04778,ve5461,v56649,v7da11,vfe776,vffe37) { var v39b26 =v04778.GetGrid(); var v4d022 =ISPosLib.getWidth(v39b26.FrameObj); var v09663 =0; var v3fc71 =0; var vea858 =0; var vf1618 =0; var v97660 =0; var v85234 =parseInt(v04778.ColumnWidthDefault); var vc9776 =true; var v1bd73 =v4d022; if (!v39b26.LayoutSettings.AutoFitColumns) return; if (v39b26.FrameObj.offsetWidth ==0 &&v39b26.FrameObj.offsetHeight ==0 &&v39b26.FitColumnRetryCount>5 &&!v39b26.NeedAutoFitOnLoad) return;  if ((v4d022 ==0 ||v39b26.FrameObj.offsetWidth ==0)&&!ve5461) { if (v39b26.NeedAutoFitOnLoad) { if (v39b26.LayoutSettings.AutoWidth ||v39b26.FrameObj.style.width.indexOf("%")>-1) v4d022 =v39b26.FrameObj.parentElement.clientWidth; else v4d022 =parseFloat(v39b26.FrameObj.style.width); if (isNaN(v4d022)) v4d022 =0; if (v4d022 ==0 &&v39b26.FrameObj.parentElement.tagName =="FORM") { v4d022 =v39b26.FrameObj.parentElement.parentElement.clientWidth; v4d022 -=(parseFloat(document.body.leftMargin)+parseFloat(document.body.rightMargin)); } if (v4d022 ==0 &&v1bd73>100) v4d022 =v1bd73; vc9776 =(v4d022 ==0); if (v39b26.FitColumnRetryCount>4 &&vc9776) { v39b26.FrameObj.style.display =""; v39b26.NeedAutoFitOnLoad =false; } } if (vc9776) { if (typeof (v39b26.FitColumnRetryCount)=="undefined") v39b26.FitColumnRetryCount =0; v39b26.FitColumnRetryCount++; setTimeout(function() { wg91c62.m0d26(v04778,ve5461,v56649,v7da11,vfe776,vffe37) },100); return; } } v39b26.FitColumnRetryCount =0; if (!v04778.IsUseColumnSet) { var v48260 =v04778.Columns; var v0c856 =v04778.GetAutoWidthColumn(); var vfa355 =v39b26.LayoutSettings.AutoColMinWidth; var v72c97 =false; if (v0c856 &&!v0c856.Visible) v0c856 =null; for (var v3c068=0; v3c068<v48260.length; v3c068++) { var v7333 =v48260[v3c068]; var v9c364 =false; var v3c991 =false; var v3e423 =v04778.GroupedColumns.GetNamedItem(v7333.Name); if (v3e423) { if (v3e423._UIState =="Unchanged") v9c364 =true; else if (v3e423._UIState =="Added" &&ve5461 =="Group") v3c991 =true; } if (v7333.ColumnType !="CheckBox" &&(v7333.Visible ||v3c991)&&!(v9c364 &&v04778.Get("HideColumnsWhenGrouped")=="Yes")) { if ((ve5461 =="Resize" ||ve5461 =="Group")&&v7333.Name ==v56649.colName) { v7333.dontResizeTemp =true; } v7333.dontResize =null; vf1618++; if (v0c856 &&v0c856.Name ==v7333.Name) { v09663 +=vfa355; } else { if (v7333.Width !="") v09663 +=parseInt(v7333.Width); else v09663 +=v85234; } } else if (v7333.ColumnType =="CheckBox") { v97660 +=parseInt(v7333.Width); v7333.dontResize =true; } else v7333.dontResize =true; } v3fc71 =v4d022 -v04778.GetColumnGroupHeadersWidth()-v97660 -(!v39b26.HidePadColumn ? 16 : 0); if (v04778.SelfReferencingSettings.Enabled &&v04778.SelfReferencingSettings.IsTreeViewSelectionMode) v3fc71 +=16; if (!v04778.IsRootTable) v3fc71 -=v04778.GetParentHeadersWidth(); if (ve5461 =="Resize") { v3fc71 -=parseInt(v56649.style.width); v09663 -=parseInt(v56649.style.width); } else if (ve5461 =="Group") { if (v04778.Get("HideColumnsWhenGrouped")=="Yes") v09663 -=parseInt(v56649.style.width); v3fc71 -=16; } else if (ve5461 =="UngroupRestore" ||ve5461 =="UngroupHide") {  } else if (ve5461 =="UngroupRestoreContext") { v3fc71 +=16;  } else if (ve5461 =="ColumnChange") { if (v0c856) { for (xcol in vfe776) { if (vfe776[xcol] ==v0c856) { v72c97 =true; } } } } if (v09663 ==v3fc71 -10 &&!ve5461) return; if (v0c856) { if (v09663<v3fc71) { v0c856.fixedWidth =v3fc71 -v09663 +vfa355; for (var v3c068=0; v3c068<v48260.length; v3c068++) { if (v48260[v3c068] !=v0c856 &&!v48260[v3c068].dontResize &&!v48260[v3c068].dontResizeTemp) { v48260[v3c068].dontResizeTemp =true; } } } else { v0c856.fixedWidth =vfa355; if (!v72c97) { v3fc71 -=parseInt(v0c856.Width); v09663 -=parseInt(v0c856.Width); } else { v3fc71 -=vfa355; v09663 -=vfa355; } } } var vef269 =null; var vd9520 =0; if (v04778.IsRootTable) vef269 =v04778.GetElement(WG40.COLHEADER,WG40.HTMLTABLE).rows[0]; for (var v3c068=0; v3c068<v48260.length; v3c068++) { var v7333 =v48260[v3c068]; var vd2d6 =0; var v45c72 =0; if (!v7333.dontResize &&!v7333.dontResizeTemp) { var v7a583; if (v7333.Width !="") v7a583 =parseInt(v7333.Width); else v7a583 =v85234; if (v7333.fixedWidth) { v45c72 =parseInt(v7333.fixedWidth); v7333.fixedWidth =null; } else { vd2d6 =(v7a583/v09663)*100; v45c72 =parseInt((vd2d6/100)*v3fc71); } vd9520 +=v45c72; if (v3c068 ==v48260.length -1) { var vbc287 =v3fc71 -vd9520; if (v45c72 +vbc287 -2>16) v45c72 +=vbc287 -2; } var vbfa17 =null; if (ve5461 &&!v04778.IsRootTable) { var va8146; if (ve5461 !="SubTable") { if (ve5461 =="Remove" ||ve5461 =="UngroupHide" ||ve5461 =="ColumnChange") va8146 =v56649; else va8146 =v56649.parentElement; vef269 =v04778.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,va8146).rows[0]; } else vef269 =vffe37.GetElement(WG40.COLHEADER,WG40.HTMLTABLE).rows[0]; } if (vef269) vbfa17 =wgGetCellByName(vef269,v7333.Name); if (v45c72>2) { if (vbfa17) { wg91c62.m1dc53(v04778,vbfa17,v45c72,null,true); if (!v04778.IsRootTable &&ve5461 =="Resize") wga3c88.m26473(v04778,vbfa17,v45c72); } else if (v7333) v7333.Set("Width",v45c72,true); } } else if (v7333.dontResizeTemp) v7333.dontResizeTemp =null; } if (ve5461 =="Resize" ||!ve5461) { wg91c62.m22b32(v04778); } } else { var vfee79 =v04778.ColumnSets; var vd9520 =0; for (var v3c068=0; v3c068<vfee79.length; v3c068++) { var vf9088 =vfee79[v3c068]; if (vf9088.Visible) { if ((ve5461 =="Resize")&&vf9088.Position ==v56649.pos) { vf9088.dontResizeTemp =true; } vf9088.dontResize =null; vf1618++; var vd5831 =v04778.GetCSHeaderWidth(v3c068); v09663 +=vd5831; } } v3fc71 =v4d022 -v04778.GetColumnGroupHeadersWidth()-16; if (v09663 ==v3fc71 -6 &&!ve5461) return; if (!v04778.IsRootTable) v3fc71 -=v04778.GetParentHeadersWidth(); if (ve5461 =="Resize") { v3fc71 -=parseInt(v56649.estWidth); v09663 -=parseInt(v56649.estWidth); } if (v04778.IsRootTable) vef269 =v04778.GetElement(WG40.COLHEADER,WG40.HTMLTABLE).rows[0]; for (var v3c068=0; v3c068<vfee79.length; v3c068++) { var vf9088 =vfee79[v3c068]; var vd2d6 =0; var v45c72 =0; if (!vf9088.dontResize &&!vf9088.dontResizeTemp) { var vd5831; vd5831 =v04778.GetCSHeaderWidth(v3c068); if (vf9088.fixedWidth) { v45c72 =parseInt(vf9088.fixedWidth); vf9088.fixedWidth =null; } else { vd2d6 =(vd5831/v09663)*100; v45c72 =parseInt((vd2d6/100)*v3fc71); } vd9520 +=v45c72; if (v3c068 ==vf9088.length -1) { var vbc287 =v3fc71 -vd9520; if (v45c72 +vbc287 -2>16) v45c72 +=vbc287 -2; } var vbfa17 =null; if (ve5461 &&!v04778.IsRootTable) { var va8146; if (ve5461 !="SubTable") { va8146 =v56649.parentElement; vef269 =v04778.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,va8146).rows[0]; } else vef269 =vffe37.GetElement(WG40.COLHEADER,WG40.HTMLTABLE).rows[0]; } if (!vbfa17) { vbfa17 =new Object(); vbfa17.type ="CSHeader"; vbfa17.pos =v3c068; vbfa17.parentElement =vef269; } if (vbfa17) { if (v45c72>2) { wg91c62.m1dc53(v04778,vbfa17,v45c72,null,true); if (!v04778.IsRootTable &&ve5461 =="Resize") { for (tableId in v04778.SubTableIds) wg91c62.m0d26(v04778,"SubTable",null,null,null,v04778.SubTableIds[tableId]); } } wg_Global.ColSizeTarget =null; wg_Global.ColSizeTarget2 =null; } } else if (vf9088.dontResizeTemp) vf9088.dontResizeTemp =null; } } if (v39b26.NeedAutoFitOnLoad) { v39b26.FrameObj.style.display =""; v39b26.NeedHeightResize =true; wg91c62.me0511(v39b26); v39b26.NeedAutoFitOnLoad =false; } wg_Global.ColSizeTarget =null; wg_Global.ColSizeTarget2 =null; }, GetRadioValue: function(v4f024) { for (var v2c589=0; v2c589<v4f024.length; v2c589++) { if (v4f024[v2c589].checked) return v4f024[v2c589]; } return null; }, md7d88:function(v17b44) { var vef28 =null; for (var ve8629=0; ve8629<v17b44.cells.length; ve8629++) { wg4a378.mb6b61(v17b44.cells[ve8629]);  if (v17b44.cells[ve8629].type =="PRExp") { vef28 =v17b44.cells[ve8629]; break; } } return vef28; }, mbab91:function(v90b58) { var v0a528 =null; var v2d838 =null; var vf6254 =null; if (v90b58.tagName =="IMG") { v0a528 =v90b58.parentElement; v2d838 =v0a528.parentElement; vf6254 =v90b58; } else { v2d838 =v90b58; v0a528 =wg91c62.md7d88(v2d838); vf6254 =v0a528.childNodes[0]; if (vf6254 &&vf6254.tagName !="IMG") vf6254 =null; } var v50d41 =wgGetPreviewRow(v2d838); var v7d219 =wg4a378.m33a20(v2d838); var v49169 =wgGetGridById(v7d219.gridId); var va0d53 =v49169.Tables[v7d219.tblName]; if (v0a528.expanded =="True") { var v69b16 =wgGetPreviewRowCell(v50d41); if (v69b16) v69b16.childNodes[0].style.display ="none"; if (vf6254) vf6254.src =v49169.ResolveImagePathEx(v49169.LayoutSettings.ImageSettings.PreviewRowCollapseImage); v0a528.expanded ="False"; v69b16.style.height ="1px";  if (!IS.ie) v50d41.style.lineHeight ="1px"; if (!va0d53.IsRootTable) { for (var vf6b38=0; vf6b38<v50d41.cells.length; vf6b38++) { if (v50d41.cells[vf6b38].style.height =="100%") v50d41.cells[vf6b38].style.height ="1px"; } } } else { var v69b16 =wgGetPreviewRowCell(v50d41);  if (va0d53.PreviewRowSettings.LoadOnDemand &&!v69b16.loaded) { wg4a378.m71658(v49169.Name,"LoadPreviewRow",v69b16); return; } if (v69b16) v69b16.childNodes[0].style.display =""; if (vf6254) vf6254.src =v49169.ResolveImagePathEx(v49169.LayoutSettings.ImageSettings.PreviewRowExpandImage); v0a528.expanded ="True"; if (v0a528.eHeight) v69b16.style.height =v0a528.eHeight; else v69b16.style.height =""; if (!IS.ie) v50d41.style.lineHeight =""; if (!va0d53.IsRootTable) { for (var vf6b38=0; vf6b38<v50d41.cells.length; vf6b38++) { if (v50d41.cells[vf6b38].style.height =="1px") v50d41.cells[vf6b38].style.height ="100%"; } } } }, m1c114:function(v06b94,v8d676) { var v37594 =wgGetCellByName(v8d676,v06b94.SelfReferencingSettings.ExpandColumnMember); return v37594.childNodes[0].childNodes[0].childNodes[0]; }, m9ff85:function(ve1f49,v2d755) { if (v2d755.srLevel =="0") return v2d755; var v44c30 =parseFloat(v2d755.srLevel)-1; var v78245 =wgGetPreviousRow(ve1f49,v2d755); while (v78245) { if (v78245.srLevel ==v44c30) return v78245; v78245 =wgGetPreviousRow(ve1f49,v78245); } return null; }, m89518:function(ve6815,v42392,va4450,v12c63) { var tr,gd,table; if (ve6815) { tr =wg4a378.m16c13(ve6815); gd =ISGetObject(wg4a378.mb5458(tr)); if (!tr.srExpanded) tr.srExpanded ="False"; if (tr.srExpanded =='False') ve6815.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.CollapseImage); else ve6815.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.ExpandImage); } else { tr =v42392; gd =ISGetObject(wg4a378.mb5458(tr)); if (!tr.srExpanded) tr.srExpanded ="False"; } var v70785 =wg4a378.m33a20(tr); table =gd.Tables[v70785.tblName]; var va0b24 =table.SelfReferencingSettings.ExpandColumnMember; wg4a378.mb6b61(tr); if (tr.srExpanded =='False') { var vf3113; var vcaf95 =parseFloat(tr.srLevel); if ((tr.srRC =="0" &&!table.SelfReferencingSettings.LoadOnDemand)||tr.srRC ==-1 || (ve6815 &&ve6815.parentElement.style.visibility =="hidden")) return; if (!ISEvent.Raise(table.Layout.ClientSideEvents.OnSelfRefRowExpand,gd.Id,table.Id,tr.rowIndex,tr)) return; if (!ve6815) { var vf7030 =wg91c62.m1c114(table,tr); if (vf7030) vf7030.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.CollapseImage); } if (table.SelfReferencingSettings.LoadOnDemand &&(ve6815 ||v12c63)&&tr.srRC =="0") { wg4a378.m71658(gd.Name,"LoadSelfRefChild",tr); return; } tr.srExpanded ='True'; vf3113 =wgGetNextRow(v70785,tr); var vf1597 =false; var v96094 =false; var v35450 =false; if (typeof (event)=="object" &&event &&event.shiftKey) v35450 =true; while (vf3113) { wg4a378.mb6b61(vf3113); if (vf3113.type =="GroupHeader" ||(vf3113.srLevel ==vcaf95 &&(vf3113.type !="HierRecord" &&vf3113.type !="CSRecord" &&vf3113.type !="PR"))) break; if ((!v35450 &&vf3113.srLevel ==vcaf95 +1)||(v35450 &&vf3113.srLevel>=vcaf95 +1)) { if (vf3113.type =="HierRecord" &&vf3113.expanded !="True") { } else { vf3113.style.display =""; if (v35450 &&vf3113.type =="Record") { var vf7030 =wg91c62.m1c114(table,vf3113); if (vf7030) { vf7030.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.CollapseImage); vf3113.srExpanded ="True"; } } } if (!v35450 &&vf3113.srExpanded =="True") { vf3113.srExpanded ="False"; wg91c62.m89518(null,vf3113); } v96094 =true; } else if (vf3113.srLevel ==vcaf95) { if (v96094) vf1597 =true; } if (vf1597) break; vf3113 =wgGetNextRow(v70785,vf3113); } if (table.SelfReferencingSettings.FitColumnOnExpand) { var v45995 =table.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,tr).rows[0]; var v9e428 =wgGetCellByName(v45995,va0b24); wg91c62.ma6c98(v9e428); if (ve6815) wg91c62.mae622(gd.Name); } } else { var vf3113; var vcaf95 =parseFloat(tr.srLevel); tr.srExpanded ='False'; if (!ve6815 &&v12c63) { var vf7030 =wg91c62.m1c114(table,tr); if (vf7030) vf7030.src =gd.ResolveImagePathEx(gd.LayoutSettings.ImageSettings.ExpandImage); } if (!ISEvent.Raise(table.Layout.ClientSideEvents.OnSelfRefRowCollapse,gd.Id,table.Id,tr.rowIndex,tr)) return; vf3113 =wgGetNextRow(v70785,tr); while (vf3113) { wg4a378.mb6b61(vf3113); if (vf3113.type =="GroupHeader" ||(vf3113.srLevel ==vcaf95 &&vf3113.type !="HierRecord" &&vf3113.type !="CSRecord" &&vf3113.type !="PR")) break; if (vf3113.srLevel>=vcaf95 +1) { vf3113.style.display ="none"; } vf3113 =wgGetNextRow(v70785,vf3113); } } }, m66b32:function(vf3e10,va5790) { if (vf3e10.tagName =="INPUT" &&vf3e10.type =="checkbox" &&!vf3e10.chkHandler) { vf3e10.onclick =function() { wg91c62.m49292(null,vf3e10); }; } var v02c54 =wg4a378.m2c14(vf3e10); var v2e111 =v02c54.parentElement; var v0de84 =wg4a378.m33a20(v2e111); var v96086 =wgGetGridById(v0de84.gridId); if (va5790) { var v03673 =0; var v36b39 =0; var ved272 =v96086.LastChkBox; var v76531 =0; if (ved272) v76531 =wg4a378.m2c14(ved272).parentElement.rowIndex; if (v2e111.rowIndex>v76531) { v03673 =v76531; v36b39 =v2e111.rowIndex; } else { v03673 =v2e111.rowIndex +1; v36b39 =v76531; } wg91c62.mb5722(v0de84,v03673,v36b39,!vf3e10.checked); } v96086.LastChkBox =vf3e10; }, m99e75:function(vc0440,v42558) { var v02d49 =wg4a378.m33a20(vc0440); var vd819 =wgGetGridById(v02d49.gridId); var vb583 =vd819.Tables[v02d49.tblName]; var v04813 =vb583.GetRowCheckerColumn(); var vd6a94 =wgGetCellByName(vc0440,v04813); var v4b164 =vd6a94.getElementsByTagName("INPUT")[0]; if (typeof (v42558)=="undefined") v42558 =!v4b164.checked; wg91c62.m66b32(v4b164); var v72456 =v4b164.checked; v4b164.checked =v42558; wg91c62.m49292(vd819,v4b164,v72456); },  m49292:function(v04915,vbaf47,v4a559) { var v35476 =wg4a378.m2c14(vbaf47); var vaaf27 =v35476.parentElement; var v02a25 =wg4a378.m33a20(vaaf27); if (v04915 ==null) v04915 =wgGetGridById(v02a25.gridId); var v77399 =v04915.Tables[v02a25.tblName]; if (!vbaf47.disabled) vaaf27.isRowChecked =vbaf47.checked; if (v04915.LastSelObj &&!wgIsSameRow(v04915.LastSelObj.GetRowElement(),vaaf27)) wgdee10.m4f150(vaaf27,vbaf47.checked ? "CheckedRow" : "Clear"); v04915.CheckedRowContext =vaaf27;  if (v04915.LayoutSettings.RestoreRowSelection !="Disabled") { if (!vbaf47.checked) v77399.Storage.SelectedRows.Remove(vaaf27); } if (!ISEvent.Raise(v04915.LayoutSettings.ClientSideEvents.OnCheckBoxClick,v02a25.gridId,v02a25.tblName,wgGetColNameByCell(v35476),vbaf47.checked, v4a559)) return; }, m6c638:function(v80c90) { var v3b035 =wg4a378.m5e484(v80c90); var v72156 =v3b035.parentElement; var v7c526 =wg4a378.m33a20(v72156); var vb5284 =wgGetGridById(v7c526.gridId); var vf6459 =vb5284.Tables[v7c526.tblName]; wg91c62.mb5722(vf6459.GetElement(WG40.BODY,WG40.HTMLTABLE,v72156),0,null,v80c90.checked); wg4a378.m56984(vb5284); }, mb5722:function(v7599,v7dd45,veb578,v6bc49) { if (typeof (v7dd45)=="undefined") v7dd45 =0; var v52526 =wgGetGridById(v7599.gridId); var v1ff5 =v52526.Tables[v7599.tblName]; var vdc829 =v7599.rows[v7dd45]; var v50129 =v1ff5.GetRowCheckerColumn();  if (IS.safari ||IS.opera) wg4a378.mb6b61(vdc829);  while (vdc829) { if (vdc829.type =="Record") { wg91c62.m99e75(vdc829,v6bc49); } vdc829 =wgGetNextRow(v7599,vdc829); if (vdc829 &&veb578 &&vdc829.rowIndex ==veb578) break; } }, md0e13:function(vf1d20) { var ve2b65 =event.type; var vc0524 =event.srcElement;  if (vc0524.tagName =="IMG") vc0524 =vc0524.parentElement; if (vc0524.tagName =="TD" &&IS.GetAttr(vc0524,"type")=="Command" &&!vc0524.disabled) { if (!IS.ie &&typeof(vc0524.disabled)=="undefined" &&IS.GetAttr(vc0524,"disabled")=="disabled") return;  if (ve2b65 =="mouseover" ||ve2b65 =="mouseup") DynamicStyleEngine.SetToOverStyle(null,vf1d20.LayoutSettings.StatusBarCommandStyle,vc0524); else if (ve2b65 =="mouseout") { var v72863 =IS.GetAttr(vc0524,"istoggle"); var ve5752 =IS.GetAttr(vc0524,"pushed");  if (v72863 =="1" &&ve5752 =="1") DynamicStyleEngine.SetToActiveStyle(null,vf1d20.LayoutSettings.StatusBarCommandStyle,vc0524); else DynamicStyleEngine.SetToStyle(null,vf1d20.LayoutSettings.StatusBarCommandStyle,vc0524); } else if (ve2b65 =="mousedown") DynamicStyleEngine.SetToActiveStyle(null,vf1d20.LayoutSettings.StatusBarCommandStyle,vc0524); } else if (ve2b65 =="mousedown" &&vc0524.tagName =="TD" &&vf1d20.IsUnhandledError) { wg91c62.ma8516(vf1d20,vf1d20.LastError,vf1d20.GetString("MessageBoxText/UnhandledError")); } }, m86967:function(vd8e76) { for (var v2c456=0; v2c456<vd8e76.WebCombos.length; v2c456++) { if (typeof (wcGetComboById)!="function") break; vd8e76.WebCombos[v2c456].Id =vd8e76.WebCombos[v2c456].Id.replace(/\$/g,"_"); var v1a872 =wcGetComboById(vd8e76.WebCombos[v2c456].Id); if (v1a872) { v1a872.FrameObj.style.display ="none"; document.body.insertAdjacentElement("beforeEnd",v1a872.FrameObj); } } }, m26168:function(v7b995) { for (var v2e812=0; v2e812<v7b995.WebCombos.length; v2e812++) { if (typeof (wcGetComboById)!="function") break; v7b995.WebCombos[v2e812].Id =v7b995.WebCombos[v2e812].Id.replace(/\$/g,"_"); var vcfe51 =wcGetComboById(v7b995.WebCombos[v2e812].Id); if (vcfe51) { vcfe51.FrameObj.style.display ="none"; v7b995.FrameObj.insertAdjacentElement("beforeEnd",vcfe51.FrameObj); } } },  m83652:function(ve2a67) { if (ve2a67.FreezePaneActive &&ve2a67.FrozenColumns !=null) { for(var v27695=0; v27695<ve2a67.FrozenColumns.length; v27695++) { var v67392 =ve2a67.FrozenColumns[v27695];  if (v67392.IsFrozen) { v67392.IsFrozen =false; v67392.ShowInSelectColumns =v67392.Original_ShowInSelectColumns; v67392.AllowGrouping =v67392.Original_AllowGrouping; } }  wg91c62.m4ce23(ve2a67,0,null,null,true); wg91c62.m74d2(ve2a67,null,null,null,true);  setTimeout(function() { ve2a67.FreezePaneActive =false; ve2a67.FrozenColumns =null; ve2a67.FreezeConfig =null; ve2a67.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns =0; } ,50); } },  m4ad6:function(v4bb17,v7288,v7d041,v5a633) { var va3451 =v4bb17.LayoutSettings.FreezePaneSettings; var v8ca71 =va3451.ActiveFrozenColumns; var v99d85 =v4bb17.RootTable.Columns; var vd3d23 =[]; var v95468 =null;  if (typeof(v7d041)=="number") v8ca71 =v7d041;  if (v7288) {  v95468 =v4bb17.GetFreezeOuterDivElement();  if (v8ca71 ==0) return false;  if (va3451.MaxFrozenColumns !=0 &&v8ca71 >va3451.MaxFrozenColumns) { if (!va3451.SuppressErrorMessage) alert("Freeze Pane cannot be activated because it has exceeded the value specified in MaxFrozenColumns.");  va3451.ActiveFrozenColumns =0; return false; }  if (v99d85[v8ca71] ==null ||v99d85[v8ca71].GetScrollWidth()>(v95468.scrollWidth /2)) { if (v95468.scrollWidth ==0) {  setTimeout(function() { wg91c62.m4ad6(v4bb17,v7288,v7d041,true); } ,50 ); } else { if (!va3451.SuppressErrorMessage) alert("Freeze Pane cannot be activated on this column because it has exceeded the maximum size of scrollable viewport.");  va3451.ActiveFrozenColumns =0; return false; } } }  if (v8ca71 >0) { for (var v14050=0; v14050<v99d85.length; v14050++) { var v5a070 =v99d85[v14050];  if (v5a070.Visible) { v5a070.IsFrozen =true; v5a070.Original_ShowInSelectColumns =v5a070.ShowInSelectColumns; v5a070.ShowInSelectColumns ="No";  if (v4bb17.LayoutSettings.HideColumnsWhenGrouped =="Yes") { v5a070.Original_AllowGrouping =v5a070.AllowGrouping; v5a070.AllowGrouping ="No"; }  vd3d23.push(v5a070); }  if (vd3d23.length ==v8ca71) break; } }  if (vd3d23.length >0) v4bb17.FrozenColumns =vd3d23;  if (v7288) { v4bb17.FreezeConfig =null; v4bb17.FreezePaneActive =false;  if (v5a633) wg91c62.m1fb14(v4bb17);  if (v95468 &&v95468.scrollLeft >0) { v4bb17.SkipFreezeLayout =true; wg91c62.m4ce23(v4bb17,0,true,null,true); v4bb17.SkipFreezeLayout =false; }  var vc2129 =v4bb17.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV);  if (vc2129.scrollLeft >0) vc2129.scrollLeft =0;  if (IS.moz) { for (var v14050=0; v14050<v99d85.length; v14050++) { var v5a070 =v99d85[v14050];  if (v5a070.Visible &&v5a070.HiddenFromView) { v5a070.HiddenFromView =false; v5a070.HiddenReason =""; } } }  wg91c62.m74d2(v4bb17); wg91c62.m5aa5(v4bb17); } },  m74d2:function(vcef52,ve8932,v07168,vc5b34,v3d743) { var v00f56 =vcef52.LayoutSettings.FreezePaneSettings; var v94f27 =v00f56.ActiveFrozenColumns; var v96175 =false; var v5d456 =""; var v2df34 ="";  if (typeof(vc5b34)=="number") v94f27 =vc5b34;  if (typeof(ve8932)!="undefined" &&ve8932 !=null) v96175 =ve8932;  if (!v3d743) { v5d456 ="double 3px " +v00f56.SplitterLineColor; v2df34 ="solid " +v00f56.SplitterLineWidth +"px " +v00f56.SplitterLineColor; }  if (v94f27 >0) { if (!v96175) { var vf8990 =vcef52.RootTable.GetElement(WG40.COLHEADER,WG40.HTMLTABLE); var v1a765 =vcef52.GetLastFrozenColumn(); var v08113 =v1a765.GetElement(); var vc6938 =vcef52.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); var vd6890 =v08113.currentStyle; if (!v3d743) { if (!v08113.original_borderRight) v08113.original_borderRight =vd6890.borderRightStyle +" " + vd6890.borderRightWidth +" " + vd6890.borderRightColor; } else v5d456 =v08113.original_borderRight;    v08113.style.borderRight =v5d456; if (v00f56.ShowSplitterLine) { for (var vca544=0; vca544<vc6938.rows.length; vca544++) { var v3fe30 =vc6938.rows[vca544]; wg4a378.mb6b61(v3fe30);  if (wgIsRecordRow(v3fe30)) { var vd0e14 =v3fe30.cells[v08113.cellIndex]; var v52f2 =vd0e14.currentStyle;  if (!v3d743) vd0e14.original_borderRight =v52f2.borderRightStyle +" " + v52f2.borderRightWidth +" " + v52f2.borderRightColor; else v2df34 =vd0e14.original_borderRight;  vd0e14.style.borderRight =v2df34; } } }  vcef52.FreezePaneActive =true; } else { var v1a765 =vcef52.GetLastFrozenColumn(); var v08113 =v1a765.GetElement(); if (v00f56.ShowSplitterLine) { for (var vca544=0; vca544<v07168.length; vca544++) { var v3fe30 =v07168[vca544];  wg4a378.mb6b61(v3fe30); if (wgIsRecordRow(v3fe30)) { var vd0e14 =v3fe30.cells[v08113.cellIndex]; var v52f2 =vd0e14.currentStyle;  if (!v3d743) vd0e14.original_borderRight =v52f2.borderRightStyle +" " + v52f2.borderRightWidth +" " + v52f2.borderRightColor; else v2df34 =vd0e14.original_borderRight;  vd0e14.style.borderRight =v2df34; } } }  if (vcef52.FreezePaneActive &&vcef52.FreezeConfig !=null) {  if (!IS.ie) { for (var vca544=0; vca544<v07168.length; vca544++) { var v3fe30 =v07168[vca544];  for(var v5738=0; v5738<vcef52.FreezeConfig[0].length; v5738++) { var va1e63 =vcef52.FreezeConfig[0][v5738]; var v2e146 =va1e63.GetElement().cellIndex;  v3fe30.cells[v2e146].style.display ="none"; } } } } } } },  m1fb14:function(va6147) { if (va6147.LayoutSettings.AllowColumnFreezing =="Yes" &&va6147.CurrentViewMode =="GridView") { var v24d27 =va6147.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); var vc6421 =va6147.GetFreezeDivElement();  if (va6147.TotalRows ==0) { var v00320 =va6147.RootTable.GetElement(WG40.COLHEADER,WG40.HTMLDIV); vc6421.style.width =v00320.scrollWidth +"px"; } else { var vcc399 =v24d27.scrollWidth +wg91c62.m3e775(va6147);  if (vcc399 !=0) vc6421.style.width =vcc399 +"px"; }  vc6421.style.height ="100%"; } },  me170:function(vb9f83) { var vc5547 =vb9f83.LayoutSettings.FreezePaneSettings; var v7f530 =vb9f83.GetLastFrozenColumn(); var v8bc87 =v7f530.GetElement();  return ISPosLib.getLeft(v8bc87)+v8bc87.offsetWidth; },  m3e775:function(vf9e93) { if (vf9e93.FreezeConfig ==null) return 0;  var v2d222 =vf9e93.FreezeConfig[0]; var v6ba19 =0;  for (var vdc039=0; vdc039<v2d222.length; vdc039++) v6ba19 +=v2d222[vdc039].GetWidth();  return v6ba19; },  me4354:function(v3ad79) { var vd7e93 =[]; var v50958 =[]; var ve3c76 =v3ad79.GetFreezeOuterDivElement(); var v5558 =v3ad79.LayoutSettings.FreezePaneSettings; var vcb631 =ve3c76.scrollLeft; var vd2774 =wg91c62.me170(v3ad79); var v83e96 =vd2774 +vcb631; var v68445 =v5558.ActiveFrozenColumns; var v99f38 =v3ad79.RootTable.Columns; var vd7b75 =false;  while (vd2774 <v83e96) { var v85875 =v99f38[v68445];  if (v85875.IsFrozen) { v68445++; continue; }  if (!v85875.HiddenFromView &&v85875.Visible) vd7e93[vd7e93.length] =v85875;  if (v85875.Visible) vd2774 +=v85875.GetWidth();  v68445++; vd7b75 =true; }  for (var vd2995=v68445; vd2995<v99f38.length; vd2995++) { var v85875 =v99f38[vd2995];  if (v85875.Visible &&v85875.HiddenFromView) v50958[v50958.length] =v85875; }  return [vd7e93,v50958]; },  m5aa5:function(v2fe18) {   var v66a63 =v2fe18.RootTable.Columns; var v85945 =[]; var v23347 =[]; var v1810 =v2fe18.LayoutSettings.FreezePaneSettings; var v37873 =v2fe18.GetLastFrozenColumn();  for (var v82b16=v37873.Position +1; v82b16<v66a63.length; v82b16++) { var v86475 =v66a63[v82b16];  if (v86475.Visible) { if (v86475.HiddenFromView) v85945[v85945.length] =v86475; else v23347[v23347.length] =v86475; } }  v2fe18.FreezeConfig =[v85945,v23347]; },  m08181:function() { var v27354 =this; if (v27354.SkipFreezeLayout) return; if (v27354.FreezeScrollId >0) { clearTimeout(v27354.FreezeScrollId); v27354.FreezeScrollId =0; } if (v27354.FreezeScrollImmediate ||v27354.LayoutSettings.FreezePaneSettings.ActiveFrozenColumns ==0) wg91c62.m43583(v27354); else v27354.FreezeScrollId =setTimeout(function(){wg91c62.m43583(v27354);},50);  v27354.FreezeScrollImmediate =false; },  m1ba74:function(v43029,v12f82,vd953,vaa99) { v43029.SkipFreezeLayout =true;  var ve1338 =wg91c62.me4354(v43029); if (v12f82) ve1338 =v43029.FreezeConfig; var vbef33 =ve1338[0]; var vbc799 =ve1338[1];  if (!v12f82 ||(v12f82 &&vd953 !=null)) { for (var v58665 =0; v58665 <vbef33.length; v58665++) vbef33[v58665].HideFrozen(vd953); } if (!v12f82 ||(v12f82 &&vaa99 !=null)) { for (var v58665 =vbc799.length-1; v58665 >-1; v58665--) vbc799[v58665].Show(vaa99); }  wg91c62.m5aa5(v43029); v43029.SkipFreezeLayout =false; },  m43583:function(v1b923,ve2880) { var v1b084 =v1b923.LayoutSettings.FreezePaneSettings; var vecc61 =wg91c62.m30168(v1b923); var v83988 =v1b923.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV); if (v1b923.SkipFreezeLayout &&!ve2880) return;  if (v1b923.LastEditObj) v1b923.ExitEditMode();  if (v1b084.ActiveFrozenColumns ==0) { if (v83988.scrollSource !="OnTableScroll") { v83988.scrollSource ="_OnFreezeScroll"; v83988.scrollLeft =vecc61; setTimeout(function(){v83988.scrollSource =null;},10);  if (v1b923.TotalRows ==0) wg4a378.m89c30(v1b923,true,vecc61); } } else { wg91c62.m1ba74(v1b923);  if (ve2880) v1b923.SkipFreezeLayout =true;  if (v1b923.LayoutSettings.FreezePaneSettings.AbsoluteScrolling) { var v2e112 =0; var v26861 =vecc61 -v1b923.LastFreezeScroll; var v1f245 =false;  if ((IS.ie &&(v26861 ==7 ||v26861 ==-7))||(IS.moz &&(v26861 ==10 ||v26861 ==-10))) v1f245 =true; else v2e112 =vecc61;  if (v1f245) { if (v26861 >0) { v2e112 =wg91c62.m27799(v1b923,0)+10; wg91c62.m4ce23(v1b923,v2e112,true); } else { v2e112 =wg91c62.m27799(v1b923,0)-wg91c62.m3e775(v1b923); wg91c62.m5ed47(v1b923,"Left"); } }  v1b923.LastFreezeScroll =v2e112; } ISEvent.Raise(v1b923.LayoutSettings.ClientSideEvents.OnScroll,v1b923.Id); if (vecc61 ==0 &&v83988.offsetWidth >v83988.scrollWidth && (v1b923.FreezeConfig ==null ||(v1b923.FreezeConfig !=null &&v1b923.FreezeConfig[0].length >0))) wg91c62.m1fb14(v1b923); } },  m4ce23:function(ve7e79,v61e59,vd5e7,vc0639,va1f83,v93471) { var vfab79 =ve7e79.GetFreezeOuterDivElement();  if (vd5e7) wg91c62.mca688(ve7e79);  if (vc0639) v61e59 +=wg91c62.m30168(ve7e79); if (va1f83) ve7e79.FreezeScrollImmediate =true;  vfab79.scrollLeft =v61e59;  if (v93471) wg91c62.m43583(ve7e79,true); },  mca688:function(vc1870,v6848) { if (!v6848) v6848 =5;  vc1870.SkipFreezeLayout =true; setTimeout(function(){vc1870.SkipFreezeLayout =false;},v6848); },  m30168:function(v78390) { var vebb90 =v78390.GetFreezeOuterDivElement();  return vebb90.scrollLeft; },  m85318:function(v73273) { var v0a590 =v73273.RootTable.GetElement(WG40.BODY,WG40.HTMLDIV);  return v0a590.scrollWidth >v0a590.offsetWidth; },  m27799:function(ve7e45,vf8c97) { if (ve7e45.FreezePaneActive &&ve7e45.FreezeConfig !=null) { var v38b73 =ve7e45.FreezeConfig[1]; var vc9658 =wg91c62.m3e775(ve7e45); var vba326 =0; if (v38b73.length >vf8c97) { for (var v31466=0; v31466<vf8c97; v31466++) { var v90a4 =v38b73[v31466]; vba326 +=v90a4.GetWidth(); } }  if (vc9658 >0) vc9658 -=10;  return vc9658 +vba326; }  return -1; },  m0d324:function(v53d0,vade76) { if (v53d0.FreezePaneActive &&v53d0.FrozenColumns !=null) { var v69c0 =null;  if (typeof(vade76.length)!="undefined") v69c0 =vade76; else v69c0 =[vade76];  wg91c62.m74d2(v53d0,true,v69c0); } },  ScrollChildView: function(vde939,v26095) { for (var v4370=0; v4370<vde939.RootTable.ChildTables.length; v4370++) { var ve3876 =vde939.RootTable.ChildTables[v4370];  var vf3848 =ve3876.SubTableIds[0]; var vc3352 =vf3848.GetContainer();  vc3352.style.position ="relative"; vc3352.style.left =0 -v26095; } },  m5ed47:function(v83f59,v7ce4) { var va7a75 =wg91c62.m27799(v83f59,0);  if (v7ce4 =="Right") { va7a75 +=20; } else { if (v83f59.FreezeConfig[0].length >0) { var v53964 =v83f59.FreezeConfig[0][v83f59.FreezeConfig[0].length -1]; va7a75 -=v53964.GetWidth(); } }  wg91c62.m4ce23(v83f59,va7a75,false,false,true); },  m15191:function(v4b36,v8aa32) {  var v26759 =wgGetColNameByCell(v8aa32); var vfc94 =v4b36.RootTable; var v47248 =vfc94.Columns.GetNamedItem(v26759); if (v47248.HiddenFromView ||v47248.IsOutsideScrollView()) { var v24237 =v4b36.GetLastFrozenColumn(); var vd0969 =0; var v48327 =v47248.GetScrollWidth(); var vc3e73 =v4b36.GetFreezeOuterDivElement(); var v49524 =v48327 -(vc3e73.offsetWidth -wg91c62.m3e775(v4b36));  for (var v1f92=v24237.Position +1; v1f92<v47248.Position; v1f92++) { var v0a684 =vfc94.Columns[v1f92]; vd0969 +=v0a684.GetWidth();  if (vd0969 >v49524) break; }  wg91c62.m4ce23(v4b36,vd0969,false,false,true); } },  m33052:function(vb9764,v7d261) { var v26625 =vb9764.GetElement(WG40.BODY,WG40.HTMLTABLE); var v92842 =v26625.children[0];  for (var vbd14=0; vbd14<v7d261.childNodes.length; vbd14++) { var v24a46 =v7d261.childNodes[vbd14]; v24a46.width =v92842.childNodes[vbd14].width; }  var v72535 =v7d261.parentElement; var vf6b49 =v72535.style.width;  v72535.style.width ="90%";  setTimeout(function() { v72535.style.width =vf6b49; },10); },  m53878:function(v50320,v1a440) { var v6b80 =v50320.Grid; var ve0030 =null;  if (typeof(v1a440)!="undefined") ve0030 =v1a440; else ve0030 =!v50320.IsFilterDisabled();  if (!IS.ie &&wg91c62.m01042()) return;  if (!ve0030) {  v50320.FilterState ="Enabled"; v50320.FilteredColumns.Clear(); v50320.FilteredColumns.CopyFrom(v50320._LastFilters);  wg91c62.m2ce87(v6b80,"Enabled"); wg91c62.m08457(v50320,true); wg4a378.m71658(v6b80.Id,"ColumnFilter",v50320.Name); } else {  v50320.FilterState ="Disabled"; v50320._LastFilters.Clear(); v50320._LastFilters.CopyFrom(v50320.FilteredColumns);  wg91c62.m2ce87(v6b80,"Disabled");  for (var v81856=0; v81856<v50320.FilteredColumns.length; v81856++) { var v14311 =v50320.FilteredColumns[v81856]; v50320.FilteredColumns.Remove(v14311,true); } wg91c62.m08457(v50320,true); wg4a378.m71658(v6b80.Id,"ColumnFilter",v50320.Name); } },  m2ce87:function(v1cd95,v90c29,vd6875) { var v3b691 =wg4a378.m0a368(v1cd95,"FilterStatus",0); var v95879 =v1cd95.ResolveImagePath(v1cd95.GetImagesFolder(),(v90c29 =="Disabled"  ? v1cd95.LayoutSettings.ImageSettings.UnfilteredImage : v1cd95.LayoutSettings.ImageSettings.FilteredImage)); var v7da60 =v1cd95.GetString("CommonText/" +(v90c29 =="Disabled" ? "Unfiltered" : "Filtered")); var ve2456 =v1cd95.GetString("Tooltip/" +(v90c29 =="Disabled" ? "RestoreFilters" : "RemoveFilters"));  if (vd6875) ve2456 =v1cd95.GetString("Tooltip/NoFilter");  v3b691.pushed =(v90c29 =="Disabled" ? "0" : "1");  if (v3b691.pushed =="0") DynamicStyleEngine.SetToStyle(null,v1cd95.LayoutSettings.StatusBarCommandStyle,v3b691); else DynamicStyleEngine.SetToActiveStyle(null,v1cd95.LayoutSettings.StatusBarCommandStyle,v3b691);  wg91c62.md2f19(v3b691,v95879,v7da60,ve2456,vd6875); },  md2f19:function(vf5566,v93c67,vbe112,vf1c21,v40523) { if (vf5566 ==null) return;  if (v93c67 &&vbe112) vf5566.innerHTML ="<img src='" +v93c67 +"' align=absmiddle />" +(vbe112 ? "&nbsp;" +vbe112 : "");  if (vf1c21) vf5566.title =vf1c21;  if (typeof(v40523)!="undefined") { vf5566.disabled =v40523;  if (!IS.ie &&!v40523) vf5566.removeAttribute("disabled");  if (v40523) { if (vf5566.pushed !="1") { var v3be66 =wgGetActiveGrid();  if (v3be66 !=null) DynamicStyleEngine.SetToStyle(null,ISGetObject(v3be66).LayoutSettings.StatusBarCommandStyle,vf5566); }  vf5566.style.cursor ="default"; } else vf5566.style.cursor ="pointer";  if (vf5566.children.length >0 &&vf5566.children[0].tagName =="IMG") { if (v40523) vf5566.children[0].style.cssText ="filter: gray(); opacity: 0.5"; else vf5566.children[0].style.cssText =""; } } },  mdce88:function(v35761,v9ff66,v53e31,v22b47) { var v57022 =wg4a378.m0a368(v35761,v9ff66,v53e31);  if (v57022 ==null) return;  v57022.pushed =(v22b47 ? "1" : "0");  if (v57022.pushed =="0") DynamicStyleEngine.SetToStyle(null,v35761.LayoutSettings.StatusBarCommandStyle,v57022); else DynamicStyleEngine.SetToActiveStyle(null,v35761.LayoutSettings.StatusBarCommandStyle,v57022); },  m01042:function(vd2316) { if (!IS.ie) { var v22480 =vd2316;  if (!v22480) v22480 =event.srcElement; if (v22480 !=null &&v22480.tagName !="TD") v22480 =v22480.parentElement; if (v22480 !=null &&typeof (v22480.disabled)!="undefined" &&IS.GetAttr(v22480,"disabled")=="disabled") return true; else if (v22480 !=null &&typeof (v22480.disabled)=="boolean" &&v22480.disabled) return true; }  return false; },  m03762:function(vd0172,v62424,vb9b1,v92a54) { var v22f52 =0; var vf7614 =0; var v03535 =0;  if (v62424) { vf7614 =parseFloat(ISXml.GetNodeText(v62424,"//totalRows")); v03535 =parseFloat(ISXml.GetNodeText(v62424,"//totalLoadedRows")); } else if (v92a54) { v22f52 =v03535 =v92a54[0]; vf7614 =v92a54[1]; } if (vd0172.LayoutSettings.PagingMode =="None") v22f52 =vf7614; else v22f52 =parseFloat(vd0172.LayoutSettings.VirtualPageSize); if (vb9b1) v22f52 =v03535;  if (vf7614<v22f52) v22f52 =vf7614; vd0172.Set("TotalLoadedRows",v22f52,true); vd0172.Set("TotalRows",vf7614,true);  if (vd0172.IsClassicPaging()) wg87896.mdb046(vd0172,v62424); else vd0172.SetStatus2("","loaded",v22f52,vf7614);  },  m1a442:function(v18d27,v0083,v76587) { return ISPosLib.ApplyIntelligentPosition(v18d27,v0083,v76587); },  m51982:function(v64e82,v02082) { var vdaa11 =false;  for (var v21143=0; v21143<v64e82.EditControls.length; v21143++) { if (v02082 ==v64e82.EditControls[v21143] ||v64e82.EditControls[v21143].contains(v02082)) { vdaa11 =true; break; } }  if (!vdaa11) { for (var v21143=0; v21143<IS.RuntimeWindowPopups.length; v21143++) { var vb6077 =IS.RuntimeWindowPopups[v21143]._e; if (vb6077 !=null &&vb6077.contains(v02082)) { vdaa11 =true; break; } } }  return vdaa11; } };var wgc0672 = { mde966:function(v8cd69,v1b920,v80846,v9b290) { v1b920.setAttribute("action","ColumnFilter"); v1b920.setAttribute("tblName",v9b290); v8cd69.SetStatus1("","filtertext","CommonText/FilterText"); return true; }, m49c14:function(vad925,va0f99,vdd332) { va0f99.setAttribute("action","Custom"); var v4cc89 =true; try { v4cc89 =wgPrepareCustomAction(vad925,va0f99,vdd332); } catch (e) { } return v4cc89; }, m56e25:function(v51944,v9ca9,v0bc98,v05755) { var v5f625 =wg4a378.m33a20(v05755); var vfb799; v9ca9.setAttribute("action","LoadSelfRefChild"); v9ca9.setAttribute("tblName",v5f625.tblName); v9ca9.setAttribute("parentValue",v05755.parentValue); try { var v26932 =v51944.Tables[v5f625.tblName].GetParentRow(v05755); vfb799 =wga3c88.me7447(v51944,v9ca9,v26932); } catch (e) { } ; v51944.SetStatus1("","loadsrchild","CommonText/LoadSelfRefChild"); return true; }, m99e86:function(v4c635,vbe657,v7ac2,va2a0) { var v42464 =wg4a378.m2c14(va2a0); var vbc218 =v42464.parentElement; var vbb565 =wg4a378.m33a20(vbc218); var v78317 =wgGetColNameByCell(v42464); vbe657.setAttribute("action","ButtonClick"); vbe657.setAttribute("tblName",vbb565.tblName); vbe657.setAttribute("colName",v78317); vbe657.setAttribute("keyValue",va2a0.keyValue); return true; },  mc2082:function(vdd074,v7a576,v5e936,v28d23) { var vc1a38 =v28d23; var v11d7 =wg4a378.m33a20(vc1a38); v7a576.setAttribute("action","RowChanged"); v7a576.setAttribute("tblName",v11d7.tblName); v7a576.setAttribute("keyValue",vc1a38.keyValue); return true; }, ma9750:function(v01230,vc1a56,v78d21) { if (v01230.LastEditObj) v01230.ExitEditMode();  if (v01230.CurrentViewMode !="GridView") { setTimeout(function(){v01230.ChartInteractiveUI.RefreshChart();},10); return false; } vc1a56.setAttribute("action","Refresh"); vc1a56.setAttribute("tblName",v01230.GetRootTable().Id); if (IS.moz) { if (!v01230.RootTable.IsUseColumnSet &&v01230.RootTable.Columns.length >0) { var va9894 =v01230.RootTable.Columns[0];  try { va9894.Resize(va9894.Width); } catch(e) {} } } v01230.SetStatus1("","refresh","CommonText/Refresh"); return true; }, m8230:function(v5b449,v6ca65,vd2488) { v6ca65.setAttribute("action","RefreshAll"); v6ca65.setAttribute("tblName",v5b449.GetRootTable().Id); v5b449.SetStatus1("","refreshall","CommonText/RefreshAll"); return true; }, m55617:function(vdaa69,v8ed75,v46255,v9ed50,vc5f54) { v8ed75.setAttribute("action",vc5f54); v8ed75.setAttribute("columnName",v9ed50.colName); v8ed75.setAttribute("tblName",v9ed50.tblName); var v37c85 =""; var v41335 =true; try { if (!v9ed50.gridId) v9ed50.gridId =vdaa69.Id; v41335 =wga3c88.md0157(v9ed50,v8ed75); } catch (e) { } ; if (!v41335) return false; if (vc5f54 =="Group") v37c85 ="Grouping"; else if (vc5f54 =="Ungroup") v37c85 ="Ungrouping"; else if (vc5f54 =="ChangeGroup") v37c85 ="Changing group"; vdaa69.SetStatus1("",vc5f54.toLowerCase(),"CommonText/" +vc5f54); vdaa69.LastRequestObj =v9ed50; return true; }, m1ef32:function(vd6e96,v71b93,va3577) { var vb3260 =parseFloat(vd6e96.TotalRows); var v5bb23 =parseFloat(vd6e96.TotalLoadedRows); if (v5bb23>=vb3260) return false; v71b93.setAttribute("action","More"); v71b93.setAttribute("startRow",v5bb23); v71b93.setAttribute("count",vd6e96.LayoutSettings.VirtualPageSize); vd6e96.SetStatus1("","more","CommonText/More"); return true; }, m73c2:function(v3e435,vd7012,vf9810,v68e59) { var vf1199 =v68e59; var v89942 =""; v89942 =wg91c62.mb4753(v68e59); vd7012.setAttribute("action","LoadGroup"); vd7012.setAttribute("position",v68e59.position); vd7012.setAttribute("groupIndex",v68e59.groupIndex); vd7012.setAttribute("parentPos",v89942); v3e435.SetStatus1("","loadgroup","CommonText/LoadGroup"); return true; }, m8f635:function(v6c355,v5fd22,v44977,veae21) { v5fd22.setAttribute("action","ColumnSort"); v5fd22.setAttribute("columnName",veae21.colName); v5fd22.setAttribute("tblName",veae21.tblName); var vbd055 =true; try { if (!veae21.gridId) veae21.gridId =v6c355.Id; vbd055 =wga3c88.md0157(veae21,v5fd22); } catch (e) { }; if (!vbd055) return false; v6c355.SetStatus1("","sort","CommonText/Sort"); return true; }, mc1390:function(v14946,v97c70,v5b781,v22865) { v97c70.setAttribute("action","ColumnChange"); v97c70.setAttribute("columnName",v22865.colName); v97c70.setAttribute("tblName",v22865.tblName); var vbc426 =true; try { if (!v22865.gridId) v22865.gridId =v14946.Id; vbc426 =wga3c88.md0157(v22865,v97c70); } catch (e) { } ; if (!vbc426) return false; v14946.SetStatus1("","columnchange","CommonText/ColumnChange"); return true; }, mf3d97:function(vda276,ve1b38,vb1018,vdbf33) { ve1b38.setAttribute("action","Export"); var vca51 =""; var v6c949 =""; var v75566 =""; var vddb69 =null;  if (!vdbf33) { var v3e386 =vda276.ExportContext.RootMenu; var v30b55 =v3e386.GetSelectedItemByGroup("Target"); var v0a324 =v3e386.GetSelectedItemByGroup("Type"); var vab297 =v3e386.GetSelectedItemByGroup("Orientation"); if (v30b55.Name =="mnuRoot") v6c949 =vda276.GetRootTable().Name; else { v6c949 =v3e386.MenuControl.Table.Name; vddb69 =vda276.Tables[v6c949].GetParentRow(vda276.LastSelObj.GetRowElement()); }  vca51 =v0a324.Name.substring(8); v75566 =vab297.Name.substring(3);  vdbf33 =[v6c949,vca51,v75566,vddb69]; }  v6c949 =vdbf33[0]; vca51 =vdbf33[1]; v75566 =vdbf33[2]; var v17199 =vda276.Tables[v6c949]; if (!v17199.IsRootTable) { wga3c88.me7447(vda276,ve1b38,vdbf33[3]); ve1b38.setAttribute("IsChildTable","True"); } ve1b38.setAttribute("tblName",v6c949); ve1b38.setAttribute("exportType",vca51); ve1b38.setAttribute("exportOrientation",v75566); vda276.SetStatus1("","export","CommonText/ExportText"); return true; },  m3ba19:function(vff06,ve776,v0e556,ve042) { var v2c115 =wgGetRootRow(ve042.parentElement); var v48957 =wg4a378.m33a20(v2c115); var va7152 =vff06.Tables[v48957.tblName]; var v42957 =va7152.ToRowObject(v2c115); ve776.setAttribute("action","LoadPreviewRow"); ve776.setAttribute("position",v42957.Position); ve776.setAttribute("groupIndex",v2c115.groupIndex); ve776.setAttribute("parentPos",v42957.ParentPos); ve776.setAttribute("tblName",v48957.tblName);  try { var v0527 =va7152.GetParentRow(v2c115); result =wga3c88.me7447(vff06,ve776,v0527); } catch (e) { } ;  vff06.SetStatus1("","loadpreviewrow","CommonText/LoadPreviewRow");  return true; },  m2a392:function(v1ee62,v03285) { var v5c926 =""; try { v5c926 =ISXml.GetNodeText(v03285,"//htmlString"); } catch (e) { }  var v5e315 =v1ee62.LastRequestObj;  v5e315.loaded =true; v5e315.children[0].innerHTML =v5c926;  wg91c62.mbab91(wgGetRootRow(v5e315.parentElement)); }, m5bd80:function(v10445,vf4725) { v10445.SetStatus1("","ready","CommonText/Ready"); }, m08d81:function(v16987,v11351) { var vae881 =""; try { vae881 =ISXml.GetNodeText(v11351,"//htmlString"); } catch (e) { } var vc3194 =v16987.Tables[ISXml.GetNodeText(v11351,"//tblName")]; var vcd38 =v16987.LastRequestObj; var v72466 =vc3194.GetElement(WG40.BODY,WG40.HTMLTABLE,vcd38); var v55f73 =v72466.tBodies[v72466.tBodies.length -1]; if (vae881 !="") { var v95e11 =parseFloat(ISXml.GetNodeText(v11351,"//totalRows")); wg91c62.m2e073("<table>" +vae881 +"</table>"); var v4a014 =wg91c62.mabe81(); var v0d794 =0; if (vc3194.PreviewRowVisible) vcd38 =wgGetPreviewRow(vcd38); if (vc3194.RowLayout =="ColumnSet") vcd38 =wgGetLowestColumnSetRow(vcd38); var v0d776 =v4a014.rows.length; var ve7b79 =parseFloat(vcd38.srLevel); for (var v81246=0; v81246<v0d776; v81246++) { var vc3d22 =v55f73.appendChild(v4a014.rows[0]); v72466.moveRow(vc3d22.rowIndex,vcd38.rowIndex +v81246 +1); wg4a378.mb6b61(vc3d22); if (ve7b79 +1 ==vc3d22.srLevel) vc3d22.style.display =""; } vcd38.srRC =v95e11; if (vc3194.SelfReferencingSettings.FitColumnOnExpand) { var vf6173 =vc3194.GetElement(WG40.COLHEADER,WG40.HTMLTABLE,vcd38).rows[0]; var vca029 =wgGetCellByName(vf6173,vc3194.SelfReferencingSettings.ExpandColumnMember); wg91c62.ma6c98(vca029); } if (vc3194.IsRootTable) { if (!v16987.IsClassicPaging()) { var v98827 =parseFloat(v16987.TotalLoadedRows); var v9a847 =parseFloat(v16987.TotalRows); v9a847 +=v95e11; v98827 +=v95e11; v16987.Set("TotalLoadedRows",v98827,true); v16987.Set("TotalRows",v9a847,true); v16987.SetStatus2("","loaded",v98827,v9a847); } } } else { var v0f12 =wg91c62.m1c114(vc3194,vcd38); v0f12.style.visibility ="hidden"; vcd38.srRC =0; } vcd38.srExpanded ="True"; if (vc3194.RowLayout =="ColumnSet") { var v80570 =wgGetColumnSetRows(vcd38); for (var v81246=0; v81246<v80570.length; v81246++) { v80570[v81246].srExpanded ="True"; v80570[v81246].srRC =vcd38.srRC; } } v16987.SetStatus1("","ready","CommonText/Ready"); wg91c62.m0ce44(); }, m8309:function(v45e97,v33e9) { var v18b22 =ISXml.GetNodeText(v33e9,"//htmlString"); var vf9120 =v45e97.Tables[ISXml.GetNodeText(v33e9,"//tblName")]; var v6b516 =vf9120.GetElement(WG40.BODY,WG40.HTMLDIV); var v19441 =new WebGridPartOption();  if (ISXml.GetNodeText(v33e9,"//isRootTable")=="True") { wg4a378.medc87(v45e97); v19441.Body =true; IS.SetOuterHTML(v6b516,v18b22); wg4a378.m87f14(v45e97); var vbcb61 =ISXml.GetNodeText(v33e9,"//footerString"); if (vbcb61 !="") { wg91c62.mc4746(v45e97,vf9120,null,vbcb61); v19441.Footer =true; }  wg91c62.m63a64(v45e97,vf9120); wg4a378.m8cc50(vf9120,"ColumnFilter",v19441); } wg91c62.m03762(v45e97,v33e9); v45e97.ClearChildTables(); v45e97.SetStatus1("","ready","CommonText/Ready"); }, m40172:function(vf5e28,v14176) { var v3af17 =vf5e28.Tables[ISXml.GetNodeText(v14176,"//tblName")]; var vabb18 =ISXml.GetNodeText(v14176,"//action"); var vad135 =vf5e28.LastRequestObj; var v63667 =new WebGridPartOption(); if (ISXml.GetNodeText(v14176,"//isRootTable")=="True") { var v0b482 =v3af17.GetElement(WG40.BODY,WG40.HTMLDIV); var v32d75 =v3af17.GetElement(WG40.COLHEADER,WG40.HTMLDIV); var v49411 =ISXml.GetNodeText(v14176,"//colHtmlString"); var v1b250 =ISXml.GetNodeText(v14176,"//bodyHtmlString"); wg4a378.medc87(vf5e28); v63667.Body =true; IS.SetOuterHTML(v0b482,v1b250); wg4a378.m87f14(vf5e28); var v16534 =ISXml.GetNodeText(v14176,"//footHtmlString"); if (v16534 !="") { wg91c62.mc4746(vf5e28,v3af17,null,v16534); v63667.Footer =true; } wg4a378.m8cc50(v3af17,vabb18,v63667); wg91c62.m03762(vf5e28,v14176,true); var v69574 =wg4a378.mb6713(vf5e28.LastSelObj); if ((v69574 &&vf5e28.LastSelObj.GetRowElement().type !="NewRow")||!v69574) vf5e28.ActiveEditCell =vf5e28.LastSelObj =null; vf5e28.ClearChildTables(); } vf5e28.SetStatus1("","ready","CommonText/Ready"); }, m9bd88:function(ve2013,v47b23) { var v8e083 =ISXml.GetNodeText(v47b23,"//tableXmlState"); var v73956 =ve2013.RootTable; var v5bd90 =new WebGridTable(); var vd0177 =ISXml.CreateXmlDocument(); var v25a48 ="\\" +"$" +"~" +"CD"; var v06d97 =new RegExp(v25a48,"g"); v8e083 ="<RootTable" +v8e083.substring(13); v8e083 =v8e083.substring(0,v8e083.length -15)+"</RootTable>"; ISXml.LoadXml(vd0177,v8e083.replace(v06d97,"]]")); ISXml.RemoveNode(ve2013.XmlNode,"RootTable"); var vb8828 =ISXml.GetNode(vd0177,"RootTable");  if (IS.safari) vb8828 =vb8828.cloneNode(true);  ve2013.XmlNode.appendChild(vb8828); ve2013.Tables =[]; v5bd90.XmlNode =vb8828; v5bd90.Parent =ve2013; IS.SetPropertiesRecursive(v5bd90,vb8828); ve2013.RootTable =v5bd90; ve2013.UpdateState();  if (ve2013.AllowPivotCharting) { if (ve2013.ChartContainer !=null &&ve2013.ChartInteractiveUI !=null) { ve2013.ChartInteractiveUI.OnUnload(); ve2013.ChartInteractiveUI.UnloadButtons(); }  ve2013.ChartContainer =null; } wg91c62.m86967(ve2013); wg4a378.mef94(ve2013); var vcab23 =ISXml.GetNodeText(v47b23,"//gridHtmlString"); ve2013.FrameObj.parentElement.outerHTML =vcab23; ve2013.FrameObj =document.getElementById(ve2013.Name +IS.FrameSuffix); wg_Global.Resizer =null; wg_Global.Dragger =null; wg_Global.ColPointer =null; ve2013.Resizer =null; ve2013.ColPointer =null; ve2013.TBObj =ve2013.TBMLObj =ve2013.LastEditObj =null; ve2013.ActiveEditCell =ve2013.LastSelObj =null; ve2013.LastAutoFitWidth =-1; ve2013.CalDDObj =null; ve2013.ClearActionElement(true); if (ve2013.LayoutSettings.AutoFitColumns) { if (ve2013.LayoutSettings.AutoFitColumnsBuffering) { ve2013.FrameObj.style.display ="none"; ve2013.NeedAutoFitOnLoad =true;  if (ve2013.FrameObj.style.width.indexOf("%")==-1 &&ve2013.FrameObj.style.height.indexOf("%")==-1) wgAutoFitColumns(ve2013.Id); } else { wgAutoFitColumns(ve2013.Id); } } wg91c62.m26168(ve2013); wg4a378.m8e660(ve2013); wg4a378.m87f14(ve2013); wg4a378.m8e493(ve2013);  wg4a378.m8cc50(ve2013.RootTable,"RefreshAll"); if (ve2013.AllowPivotCharting) { var vc7778 =ve2013.CurrentViewMode;  ve2013.ChartInitialized =false; ve2013.CurrentViewMode =""; setTimeout(function() { if (vc7778 =="PivotChartView") ve2013.SwitchToPivotChartView(); else ve2013.SwitchToGridView(); } ,10); }  if (IS.moz) wgd2488.mddb73(ve2013); if (ve2013.IsClassicPaging()&&ve2013.LayoutSettings.PagingStyleUI =="Slider") { wg87896.SlideID =0; wg87896.Tooltip =null; wg87896.m5da22(ve2013); }  var v9ac73 =ve2013.Tables[ISXml.GetNodeText(v47b23,"//tblName")]; var v79299 =ISXml.GetNodeText(v47b23,"//action"); var v8d537 =ve2013.LastRequestObj; if (ISXml.GetNodeText(v47b23,"//isRootTable")=="True") { wg91c62.m03762(ve2013,v47b23); ve2013.ClearChildTables(); } ve2013.NeedHeightResize =true; wg4a378.m04523(); ve2013.SetStatus1("","ready","CommonText/Ready"); }, m32c58:function(vb8b83,v79f10) { var ve6133 =vb8b83.Tables[ISXml.GetNodeText(v79f10,"//tblName")]; var v94c33 =ISXml.GetNodeText(v79f10,"//action"); var v71d94 =vb8b83.LastRequestObj; if (ISXml.GetNodeText(v79f10,"//isRootTable")=="True") { var vd3e7 =v71d94.parentElement; var vb0191 =ve6133.GetElement(WG40.BODY,WG40.HTMLDIV,vd3e7); var v96930 =ve6133.GetElement(WG40.COLHEADER,WG40.HTMLDIV,vd3e7); var v24c18 =ISXml.GetNodeText(v79f10,"//colHtmlString"); var v0f350 =ISXml.GetNodeText(v79f10,"//bodyHtmlString"); var veb68 =ISXml.GetNodeText(v79f10,"//footHtmlString"); wg4a378.medc87(vb8b83); IS.SetOuterHTML(vb0191,v0f350); wg4a378.m87f14(vb8b83); if (v94c33 =="Group" ||v94c33 =="Ungroup" ||v94c33 =="ColumnChange") { if (v24c18 !="") v96930.outerHTML =v24c18; if (IS.moz) wgd2488.mddb73(vb8b83); try { var va8526 =ve6133.GetElement(WG40.COLFOOTER,WG40.HTMLDIV,vd3e7); } catch (e) { } ; if (va8526 &&veb68 !="") { va8526.outerHTML =veb68; } } wg4a378.m8cc50(ve6133,"ColumnGroup"); wg91c62.m03762(vb8b83,v79f10); vb8b83.ClearChildTables(); } else { for (var vbc392=0; vbc392<ve6133.SubTableIds.length; vbc392++) { var v2a216 =ve6133.SubTableIds[vbc392]; var vc5c38 =ISXml.GetNodeText(v79f10,"//htmlString_" +v2a216.SubId); var v5fa44 =v2a216.GetContainer(); v5fa44.innerHTML =vc5c38; if (IS.moz) wgd2488.m63920(v2a216); } vb8b83.ClearChildTables(ve6133.Id); } if ((ve6133.IsRootTable ||vb8b83.LastSelObj &&ve6133.Id ==vb8b83.LastSelObj.tblName)&&v94c33 !="ChangeGroup") vb8b83.ActiveEditCell =vb8b83.LastSelObj =null; if (vb8b83.FromContextMenu) { vb8b83.FromContextMenu =false; wg91c62.mae622(vb8b83.Name); } vb8b83.SetStatus1("","ready","CommonText/Ready"); }, mb3926:function(v30b13,v8b678) { var v61d38 =v30b13.Tables[ISXml.GetNodeText(v8b678,"//tblName")]; if (v61d38.IsRootTable) { var v83589 =ISXml.GetNodeText(v8b678,"//htmlString"); var vc7c84 =v61d38.GetElement(WG40.BODY,WG40.HTMLDIV); if (ISXml.GetNodeText(v8b678,"//isRootTable")=="True") { wg4a378.medc87(v30b13); IS.SetOuterHTML(vc7c84,v83589); wg4a378.m87f14(v30b13); wg4a378.m8cc50(v61d38,"ColumnSort"); } wg91c62.m03762(v30b13,v8b678); v30b13.ClearChildTables(); } else { for (var vd5839=0; vd5839<v61d38.SubTableIds.length; vd5839++) { var v77756 =v61d38.SubTableIds[vd5839]; var v83589 =ISXml.GetNodeText(v8b678,"//htmlString_" +v77756.SubId); var v15a13 =v77756.GetContainer(); v15a13.innerHTML =v83589; wg4a378.m8cc50(v61d38,"ColumnSort",null,v77756); if (IS.moz) wgd2488.m63920(v77756); } v30b13.ClearChildTables(v61d38.Id); } wg91c62.m63a64(v30b13,v61d38); v30b13.SetStatus1("","ready","CommonText/Ready"); }, m54a11:function(vc6388,v96c67) { var v8fd33 =ISXml.GetNodeText(v96c67,"//htmlString"); var v23388 =vc6388.Tables[ISXml.GetNodeText(v96c67,"//tblName")]; var v6c23 =v23388.GetElement(WG40.BODY,WG40.HTMLTABLE);  wg91c62.m2e073("<table>" +v8fd33 +"</table>");  var v19666 =wg91c62.mabe81(); var v7cf77 =0; var v7ce95 =v19666.rows[0];  if (vc6388.FreezePaneActive &&vc6388.FrozenColumns !=null) wg91c62.m74d2(vc6388,true,v19666.rows);  v6c23.appendChild(v19666.tBodies[0]); wg4a378.m81946(v23388,"More",v7ce95);  vc6388.Set("TotalLoadedRows",parseFloat(ISXml.GetNodeText(v96c67,"//endRow")),true); vc6388.SetStatus2("","loaded",ISXml.GetNodeText(v96c67,"//endRow"),ISXml.GetNodeText(v96c67,"//totalRows")); vc6388.SetStatus1("","ready","CommonText/Ready"); wg91c62.m0ce44(); }, m14991:function(vce590,vf3473) { var v17d60 =ISXml.GetNodeText(vf3473,"//htmlString"); var v6786 =vce590.Tables[ISXml.GetNodeText(vf3473,"//tblName")]; var v17e25 =v6786.GetElement(WG40.BODY,WG40.HTMLTABLE);  wg91c62.m2e073("<table>" +v17d60 +"</table>");  var vb2952 =wg91c62.mabe81(); var v78c44 =vce590.LastRequestObj; var va6999 =v78c44.fullPath; var vc9337 =vb2952.rows[0]; if (va6999 !="") va6999 +="_"; var v8ad66 =document.getElementById("ty_" +va6999 +v78c44.position); if (vce590.FreezePaneActive &&vce590.FrozenColumns !=null) wg91c62.m74d2(vce590,true,vb2952.rows); if (!vce590.FrameObj.contains(v8ad66)) v8ad66 =wg4a378.mae516(vce590,v8ad66); v8ad66.appendChild(vb2952.tBodies[0]); v8ad66.childNodes[0].removeNode(false); v78c44.childrenLoaded ="True"; v78c44.expanded ="False"; wg91c62.mdd07(null,v78c44,true); wg4a378.m81946(v6786,"LoadGroup",vc9337); var v91f45 =parseFloat(ISXml.GetNodeText(vf3473,"//count"))+parseFloat(vce590.TotalLoadedRows); var v78c44 =vce590.TotalRows; if (v91f45>v78c44) v91f45 =v78c44; vce590.Set("TotalLoadedRows",v91f45,true); vce590.SetStatus2("","loaded",v91f45,v78c44); vce590.SetStatus1("","ready","CommonText/Ready"); wg91c62.m0ce44(); }, me3236:function(vafb85,vd6e72) { var v95510 =ISXml.GetNodeText(vd6e72,"//status"); if (v95510 =="Ok") { var v40383 =ISXml.GetNodeText(vd6e72,"//outputFile"); var v85b29 =ISXml.GetNodeText(vd6e72,"//htmlTitle"); var v47b82 ="The report window is currently blocked by the browser's pop-up blocker feature.\nPlease disable pop-up blocker for this site or click on the Information Bar and allow the file download."; if (v40383.indexOf(".xls")>0 ||v40383.indexOf(".tif")>0 ||v40383.indexOf(".rtf")>0) { var vf6287 =window.open(null,null,vafb85.ExportWndAttr);  if (vf6287) { var vded32 =vf6287.document; vded32.open("text/html","replace"); vded32.write("<html><title>" +(v85b29 =="" ? "WebGrid.NET Enterprise Report" : v85b29) +"</title><body style='margin:0' scroll='no'><iframe style='width:100%;height:100%' src='" +v40383 +"'></iframe></body></html>"); vded32.close(); } else { alert(v47b82); } } else { var vf6287 =window.open(v40383,null,vafb85.ExportWndAttr); if (!vf6287) alert(v47b82); } } vafb85.SetStatus1("","ready","CommonText/Ready"); } };function wgGetNextRow(v21b1,v0e825){ return wg4a378.m9a670(v21b1,v0e825);}function wgGetPreviousRow(vc4485,v0d465){ return wg4a378.m24c4(vc4485,v0d465);}function wgAutoFitColumns(vc2185,v27f65){ return wg91c62.mae622(vc2185,v27f65);}function wgFlushUpdates(){ if (wg_Global.PendingUpdates) { var vf3585 =wg_Global.PendingUpdates; for (var v01465=0; v01465<vf3585.length; v01465++) { var ve9d9 =vf3585[v01465]; ve9d9.style.width =ve9d9.offsetWidth +"px"; wg91c62.me8115(ve9d9); var vf4833 =ve9d9.parentElement; var v3c40 =wg4a378.m33a20(vf4833); var v3fd22 =wgGetGridById(v3c40.gridId); var vb8e4 =v3fd22.Tables[v3c40.tblName]; wg91c62.m4ed69(vb8e4,vf4833,ve9d9,ve9d9.offsetWidth); } wg_Global.PendingUpdates =null; } wg_Global.NoDisplayUpdate =false;}function wgGetCSHeaderWidth(v5fb51,v7f63){ var v22512 =v7f63.parentElement; var v3ac83 =v5fb51.GetColumnSetByPos(v7f63.pos); var v6fc31 =v5fb51.GetElement(WG40.COLHEADERGROUP,null,v22512); var v93c19 =v5fb51.GetColHeaderSpanCount()+v5fb51.GetCSHeaderCellPosByIndex(v7f63); var vec667 =v93c19 +parseInt(v3ac83.ColumnCount); var v9c826 =0; for (var vdb744=v93c19; vdb744<vec667; vdb744++) { var vbc814 =v6fc31.childNodes[vdb744].offsetWidth; if (vbc814 ==0) vbc814 =v6fc31.childNodes[vdb744].width; if (isNaN(vbc814)) vbc814 =0; v9c826 +=parseInt(vbc814); } return v9c826;}function plGetCurX(){ if (event) return event.clientX +document.body.scrollLeft;}function plGetCurY(){ if (event) return event.clientY +document.body.scrollTop;}function wgRefresh(vafa87,vf9672){ var vfc287 =ISGetObject(vafa87); if (!vfc287.Enabled) return; if (!vf9672) vf9672 =false; if (!vf9672) wg4a378.m71658(vafa87,"Refresh"); else wg4a378.m71658(vafa87,"RefreshAll");}function wgLoadMore(v1ca42){ var vc247 =ISGetObject(v1ca42); if (!vc247.Enabled) return; var v42882 =vc247.GetRootTable(); if (v42882.GroupedColumns.length>0) { alert(vc247.GetString("MessageBoxText/LoadMoreException")); return; } wg4a378.m71658(v1ca42,"More");}function wgExport(vb8342){ var v25f42 =ISGetObject(vb8342); wg09156.ma1e61(v25f42);}function wgToggleFilter(vdcf42){ var v71342 =ISGetObject(vdcf42); wg91c62.m53878(v71342.RootTable);}function wgGetNextFocusableElement(v92262,v03361,v44435){ var v89042 =v92262.FrameObj; var vaee51; var v4d768 =false; var vb1c87 =false; if (IS.ie) v89042 =v89042.parentElement; if (v03361) { if (!v44435) vaee51 =document.all[v89042.sourceIndex -1]; else vaee51 =document.all[v44435.sourceIndex -1]; } else { if (!v44435) vaee51 =v89042.nextSibling; else vaee51 =document.all[v44435.sourceIndex +1]; } while (vaee51) { if ((vaee51.tagName =="DIV" &&vaee51.id.substring(0,4)=="dvMF")||vaee51.tagName =="INPUT" ||vaee51.tagName =="SELECT" ||vaee51.tagName =="TEXTAREA" ||vaee51.tagName =="BUTTON") { var v85f11 =false; if (vaee51.tagName =="INPUT" &&vaee51.type =="hidden") v85f11 =true; if (vaee51.disabled ||vaee51.style.display =="none" ||vaee51.style.visible =="hidden") v85f11 =true; if (!v85f11) return vaee51; } if (!v03361) { if (vaee51.sourceIndex<(v4d768 ? v89042.sourceIndex -1 : document.all.length -1)) vaee51 =document.all[vaee51.sourceIndex +1]; else { if (!v4d768) { v4d768 =true; vaee51 =document.all[0]; } else vaee51 =null; } } else { if (vaee51.sourceIndex>(vb1c87 ? v89042.sourceIndex +1 : 1)) vaee51 =document.all[vaee51.sourceIndex -1]; else { if (!vb1c87) { vb1c87 =true; vaee51 =document.all[document.all.length -1]; } else vaee51 =null; } } } return null;}function wgGetPrevFocusableElement(v6e082){ return wgGetNextFocusableElement(v6e082,true);}function wgCopyToCB(vfe382){ if (IS.ie) window.clipboardData.setData('Text',vfe382); else wgd2488.mea053(vfe382);}function wgDisplayErrorBox(vdbb82,v47870,v09c2){ wg91c62.ma8516(vdbb82,v47870,v09c2);}function wgCheckBoxHeaderClick(v20982){ return wg91c62.m6c638(v20982);}function _wgCHResize(vf8412){ var v02d1; if (vf8412) v02d1 =vf8412; else v02d1 =event.srcElement; if (wg_Global.NoDisplayUpdate) { if (v02d1.tagName =="TD" &&v02d1.type =="Column" &&v02d1.isSorted =="False") { if (!wg_Global.PendingUpdates) wg_Global.PendingUpdates =new Array(); var vc8780 =wg_Global.PendingUpdates; var vb6169 =false; for (var v7e972=0; v7e972<vc8780.length; v7e972++) { if (vc8780[v7e972] ==v02d1) { vb6169 =true; break; } } if (!vb6169) vc8780[vc8780.length] =v02d1; return; } } if (v02d1.tagName =="TD" &&v02d1.type =="Column" &&!wg_Global.IsResizing) { v02d1.style.width =v02d1.offsetWidth +"px"; wg_Global.IsResizing =true; wg91c62.me8115(v02d1); var v0d49 =v02d1.parentElement; var v0ee77 =wg_getTable(v0d49); var vbd011 =wgGetGridById(v0ee77.gridId); var vdca50 =vbd011.Tables[v0ee77.tblName]; wg91c62.m4ed69(vdca50,v0d49,v02d1,v02d1.offsetWidth); wg_Global.IsResizing =false; }}function WebGridUIDestructor(){ delete wg91c62; delete wgc0672; window.detachEvent("onunload",WebGridUIDestructor); IS.RegisterUnloadVariables("wgdee10"); IS.RegisterUnloadVariables("wgc0672");}window.attachEvent("onunload",WebGridUIDestructor);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();
