
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 10/23/2009 4:50:31 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**
function SelectedObject(v41f78,vade23,ve9965){ this.tblName =v41f78; this.gridId =vade23; this.element =ve9965; this.rowIndex =0; this.cellIndex =0; this.type =""; this.getRowElement =this.GetRowElement =function() { if (this.element) { if (this.element.tagName =="TR") return this.element; else return this.element.parentElement; } return null; }; this.GetRowObject =this.ToRowObject =function() { var vfd822 =wgGetRootRow(this.GetRowElement()); if (vfd822) { var v0f811 =ISGetObject(this.gridId); var vc0980 =v0f811.Tables[this.tblName]; return vc0980.ToRowObject(vfd822); } }; this.getColSetRowElement =this.GetColSetRowElement =function() { var vade23 =wgGetGridById(this.gridId); var vc0980 =vade23.Tables[this.tblName]; if (vc0980.IsUseColumnSet) return wgGetColumnSetRow(this.element); return null; }; this.getColSetRowsElement =this.GetColSetRowsElement =function() { var vade23 =wgGetGridById(this.gridId); var vc0980 =vade23.Tables[this.tblName]; if (vc0980.IsUseColumnSet) return wgGetColumnSetRows(this.element); return null; }; return this;}function wgGetLastSelectedObject(){ return wg_Global.LastSelObj;}function wgGetRowHeader(v20233){ if (!v20233) return null; var v59461 =wg4a444.m4dc24(v20233); if (!v59461) return null; var va5630 =ISGetObject(v59461.gridId); if (!va5630) return null; for (var vafb13=0; vafb13<v20233.cells.length; vafb13++) { var v5ca46 =v20233.cells[vafb13]; wg4a444.mc4f43(v5ca46); if (v5ca46.type =="RowSelector" ||v5ca46.type =="RowHeader") return v5ca46; } return null;}function wgGetValidActiveCell(v0e353){ if (v0e353.type !="Cell") return v0e353.parentElement.cells[wgGetFirstEditableCell(v0e353.parentElement)]; else return v0e353;}function wgGetLastVisibleRow(vda592){ var v37989 =null; try { v37989 =vda592.rows[vda592.rows.length -1]; } catch (e) { v37989 =null; } if (v37989 ==null) { var v4e548 =ISGetObject(vda592.gridId).Tables[vda592.tblName]; if (v4e548.Get("AllowAddNew")=="Yes") { v37989 =vda592.parentElement.previousSibling.childNodes[0].rows[0]; v37989 =v4e548.GetNewRow(v37989); var vbd535 =new SelectedObject(vda592.tblName,vda592.gridId,v37989); return vbd535; } } if (v37989) wg4a444.mc4f43(v37989); if (v37989 &&(v37989.style.display =="none" ||v37989.type =="GroupTotalRow" ||v37989.type =="PR" ||v37989.type =="CSRecord" ||v37989.type =="ColHeader")) { return wgGetPrevVisibleRow(vda592,v37989); } else { var vb5833 =ISGetObject(vda592.gridId); var v4e548 =vb5833.Tables[vda592.tblName]; if (vb5833.LastSelObj.element.type =="NewRow") { v37989 =vda592.rows[vda592.rows.length -1]; wg4a444.mc4f43(v37989); if (v37989.style.display =="none" ||v37989.type =="GroupTotalRow" ||v37989.type =="PR" ||v37989.type =="CSRecord" ||v37989.type =="ColHeader") { return wgGetPrevVisibleRow(vda592,v37989); } } var vbd535 =new SelectedObject(vda592.tblName,vda592.gridId,v37989); return vbd535; } return null;}function wgGetLastChildVisibleRow(v1b883){ if (v1b883.style.display =="none") v1b883 =wgGetPreviousRow(tb,v1b883); else { var v59e28 =v1b883.cells[v1b883.cells.length -1]; var v4d567 =v59e28.childNodes[v59e28.childNodes.length -1]; wg4a444.mc4f43(v4d567); var v06b69 =document.getElementById("dvTB_" +v4d567.gridId +"_" +v4d567.tblName +"_" +v4d567.subId).childNodes[0]; var ve7c56 =wgGetLastVisibleRow(v06b69); if (ve7c56) { if (ve7c56.type =="HierRecord") ve7c56 =wgGetLastChildVisibleRow(ve7c56.element); if (ve7c56) return ve7c56; } else v1b883 =wgGetPreviousRow(tb,v1b883); } return v1b883;}function wgGetPrevVisibleRow(v32999,vdff61){ var v8353 =ISGetObject(v32999.gridId); var v36056 =v8353.Tables[v32999.tblName]; var vcad21 =wgGetPreviousRow(v32999,vdff61); wg4a444.mc4f43(vdff61); if (vdff61.type =="NewRow") { if (v36056.Get("AllowFilter")=="Yes" &&v36056.IsFilterRowVisible()) { var v71e21 =v36056.GetFilterRow(vdff61); if (v71e21) { vcad21 =v71e21; var v51a8 =new SelectedObject(v32999.tblName,v32999.gridId,vcad21); return v51a8; } } else vcad21 =null; } else if (vdff61.type =="FilterRow") vcad21 =null; while (vcad21 !=null) { if (vcad21.type =="HierRecord") { if (vcad21.style.display =="none") vcad21 =wgGetPreviousRow(v32999,vcad21); else { var vc5c66 =vcad21.cells[vcad21.cells.length -1]; var vcb253 =vc5c66.childNodes.length;  for (var v09a30=vcb253 -1; v09a30>-1; v09a30--) { var ved922 =vc5c66.childNodes[v09a30]; wg4a444.mc4f43(ved922);  if (ved922.subId) { var vf5418 =document.getElementById("dvTB_" +ved922.gridId +"_" +ved922.tblName +"_" +ved922.subId).childNodes[0]; var v01d82 =wgGetLastVisibleRow(vf5418); if (v01d82) { if (v01d82 &&v01d82.element.type =="HierRecord") v01d82 =wgGetLastChildVisibleRow(v01d82.element); if (v01d82 &&v01d82.element) return v01d82; } else break; } } vcad21 =wgGetPreviousRow(v32999,vcad21); } } else { if (vcad21.style.display =="none" ||vcad21.type =="GroupTotalRow" ||vcad21.type =="PR" ||vcad21.type =="CSRecord" ||vcad21.type =="RowSeparator" ||vcad21.type =="ColHeader") vcad21 =wgGetPreviousRow(v32999,vcad21); else { var v51a8 =new SelectedObject(v32999.tblName,v32999.gridId,vcad21); return v51a8; } } } if (vcad21 ==null &&vdff61.type !="NewRow") { var v5ff24 =v36056.Get("AllowAddNew"); if (v5ff24 =="Yes") { var v9d670 =v36056.GetNewRow(vdff61); if (v9d670) { vcad21 =v9d670; var v51a8 =new SelectedObject(v32999.tblName,v32999.gridId,vcad21); return v51a8; } } if (v36056.Get("AllowFilter")=="Yes") { var v71e21 =v36056.GetFilterRow(vdff61); if (v71e21) { vcad21 =v71e21; var v51a8 =new SelectedObject(v32999.tblName,v32999.gridId,vcad21); return v51a8; } } } if (vcad21 ==null) { var v8353 =ISGetObject(v32999.gridId); var v36056 =v8353.Tables[v32999.tblName]; if (!v36056.IsRootTable) { var vc2d2 =v36056.GetElement(WG40.COLHEADER,WG40.HTMLDIV,vdff61).parentElement; if (vc2d2) { while (vc2d2.previousSibling !=null) { vc2d2 =vc2d2.previousSibling.previousSibling; wg4a444.mc4f43(vc2d2); var vf5f81 =document.getElementById("dvTB_" +vc2d2.gridId +"_" +vc2d2.tblName +"_" +vc2d2.subId).childNodes[0]; var v01d82 =wgGetLastVisibleRow(vf5f81); if (v01d82 &&v01d82.element &&v01d82.element.type =="HierRecord") { var v57616 =wgGetPreviousRow(vf5f81,v01d82.element); if (v57616 !=null) v01d82.element =v57616; }  if (v01d82 &&v01d82.element) return v01d82; } } var v00b28 =v36056.GetParentRow(vdff61); if (v00b28) { var va6641 =wg4a444.m4dc24(v00b28); return new SelectedObject(va6641.tblName,va6641.gridId,v00b28); } } } return null;}function wgGetPrevSiblingRow(v93e38,vc4080){ var vb5b19; wg4a444.mc4f43(vc4080); if (vc4080.type =="NewRow") return null; else if (vc4080.type =="Record") { vb5b19 =wgGetPreviousRow(v93e38,vc4080); if (vb5b19) { if (vb5b19.type =="HierRecord") vb5b19 =wgGetPreviousRow(v93e38,vb5b19); else if (vb5b19.type =="NewRow") vb5b19 =null; } } else if (vc4080.type =="GroupHeader") { vb5b19 =wgGetPreviousRow(v93e38,vc4080); if (vb5b19) vb5b19 =wg11c43.m25627(vb5b19,vc4080.groupIndex,"previous"); if (vb5b19) if (vb5b19.parentIndex !=vc4080.parentIndex) vb5b19 =null; } if (vb5b19 ==null) return null; var vb2770 =new SelectedObject(v93e38.tblName,v93e38.gridId,vb5b19); return vb2770;}function wgGetFirstVisibleRow(v59513){ var va1310 =null; try { va1310 =v59513.rows[0]; } catch (e) { va1310 =null; } if (va1310) wg4a444.mc4f43(va1310); if (va1310 &&(va1310.style.display =="none" ||va1310.type =="GroupTotalRow" ||va1310.type =="PR" ||va1310.type =="CSRecord" ||va1310.type =="ColHeader")) { return wgGetNextVisibleRow(v59513,va1310); } else { wg4a444.mc4f43(v59513); var v9d819 =ISGetObject(v59513.gridId).Tables[v59513.tblName]; if (v9d819.Get("AllowAddNew")=="Yes") { if (!va1310) va1310 =v59513.parentElement.previousSibling.childNodes[0].rows[0]; va1310 =v9d819.GetNewRow(va1310); } var v7ff85 =new SelectedObject(v59513.tblName,v59513.gridId,va1310); return v7ff85; } return null;}function wgGetNextSiblingRow(vbe34,v68217){ var v63849; wg4a444.mc4f43(v68217); if (v68217.type =="NewRow") return null; else if (v68217.type =="Record") { var vd5b38 =wgGetGridById(vbe34.gridId); var ve5318 =vd5b38.Tables[vbe34.tblName]; if (ve5318.IsUseColumnSet) { v63849 =wgGetLowestColumnSetRow(v68217); v63849 =wgGetNextRow(vbe34,v63849); } else v63849 =wgGetNextRow(vbe34,v68217); if (v63849) { if (v63849.type =="PR") v63849 =wgGetNextRow(vbe34,v63849); if (v63849 &&v63849.type =="HierRecord") v63849 =wgGetNextRow(vbe34,v63849); else if (v63849.type =="NewRow" ||v63849.type =="GroupTotalRow") v63849 =null; } } else if (v68217.type =="GroupHeader") { v63849 =wgGetNextRow(vbe34,v68217); if (v63849) v63849 =wg11c43.m25627(v63849,v68217.groupIndex,"next"); if (v63849) if (v63849.parentIndex !=v68217.parentIndex) v63849 =null; } if (v63849 ==null) return null; var v17728 =new SelectedObject(vbe34.tblName,vbe34.gridId,v63849); return v17728;}function wgGetNextVisibleRow(v34c65,ve3a53){ var vedd40 =ISGetObject(v34c65.gridId); var v9b587 =vedd40.Tables[v34c65.tblName]; var v74222 =wgGetNextRow(v34c65,ve3a53); var vdd973 =false; if (ve3a53.type =="NewRow") vdd973 =true; else if (wgIsFilterRow(ve3a53)&&v9b587.Get("AllowAddNew")=="No") vdd973 =true; if (vdd973) { var vedd40 =ISGetObject(v34c65.gridId); var v9b587 =vedd40.Tables[v34c65.tblName]; var ve8684 =0;  tbl =v9b587.GetElement(WG40.BODY,WG40.HTMLTABLE,ve3a53); if (vedd40.EnableSection508Standards) ve8684 =wg4a444.m23253(tbl); if (tbl.rows.length>0) v74222 =tbl.rows[ve8684]; else v74222 =null; } while (v74222 !=null) { if (v74222.type =="HierRecord") { if (v74222.style.display =="none") v74222 =wgGetNextRow(v34c65,v74222); else { var v75e62 =v74222.cells[v74222.cells.length -1]; var ve6e22 =v75e62.childNodes.length;  for (var v8533=0; v8533<ve6e22; v8533++) { var vc6313 =v75e62.childNodes[v8533]; wg4a444.mc4f43(vc6313);  if (vc6313.subId) { var vca151 =document.getElementById("dvTB_" +vc6313.gridId +"_" +vc6313.tblName +"_" +vc6313.subId).childNodes[0]; var vaaf66 =wgGetFirstVisibleRow(vca151); if (vaaf66) { if (vaaf66.element) return vaaf66; } else { break; } } } v74222 =wgGetNextRow(v34c65,v74222); } } else { if (v74222.style.display =="none" ||v74222.type =="GroupTotalRow" ||v74222.type =="PR" ||v74222.type =="CSRecord"  ||!v74222.type ||v74222.type =="RowSeparator" ||v74222.type =="ColHeader") { v74222 =wgGetNextRow(v34c65,v74222); } else { var vb3f2 =new SelectedObject(v34c65.tblName,v34c65.gridId,v74222); return vb3f2; } } } if (v74222 ==null) { if (!v9b587.IsRootTable) { var vf9018 =v9b587.GetElement(WG40.COLHEADER,WG40.HTMLDIV,ve3a53).parentElement; if (vf9018) { if (vf9018.nextSibling) { vf9018 =vf9018.nextSibling.nextSibling; wg4a444.mc4f43(vf9018); var v40e79 =document.getElementById("dvTB_" +vf9018.gridId +"_" +vf9018.tblName +"_" +vf9018.subId).childNodes[0]; return wgGetFirstVisibleRow(v40e79); } } var v5ce43 =v9b587.GetParentRow(ve3a53); if (v5ce43) { var v4be79 =wg4a444.m4dc24(v5ce43); v5ce43 =wgGetNextSiblingRow(v4be79,v5ce43); if (!v5ce43) return null; v5ce43 =wgGetPreviousRow(v4be79,v5ce43.element); return wgGetNextVisibleRow(v4be79,v5ce43); } } } return null;}var wg54045 = { ma4226:function(v5f573,vdb431,v0df34) { var v20d93; if (!v5f573) return; if (v5f573.tagName !="TD" &&v5f573.tagName !="TH") { v20d93 =v5f573; v5f573 =wg4a444.ma8124(v5f573); } if (!v5f573) return; if (v5f573.tagName =="TD" ||v5f573.tagName =="TH") { var v14486 =v5f573.parentElement; var v77392; wg4a444.mc4f43(v5f573); wg4a444.mc4f43(v14486); if (!v5f573.type) return; else if (v5f573.type =="SubCell") { v5f573 =wg4a444.mc2986(v5f573.parentElement);  if (v5f573) v14486 =v5f573.parentElement; } if (!v5f573.type) return; if (wgIsValidClickableCell(v5f573)||wgIsValidRow(v14486)) { if (v5f573.type =="RowSelector") vdb431 =true; var v4ef7 =wg4a444.m4dc24(v14486); var vafe42 =ISGetObject(v4ef7.gridId); if (!vafe42 ||!vafe42.Enabled) return; var v60b69 =vafe42.Tables[v4ef7.tblName]; var v1ac19 =v60b69.Get("CellClickAction"); var vd9a92 =v60b69.GetSelRowStyle(); var v2ee93 =v60b69.GetFocusCellStyle(); var v37987 =vafe42.ResolveImagePathEx(vafe42.LayoutSettings.ImageSettings.CurrentRowImage); var vfd472 =false; if (!v0df34) if (!ISEvent.Raise(vafe42.LayoutSettings.ClientSideEvents.OnCellClick,vafe42.Id,v60b69.Id,v14486.rowIndex,v5f573.cellIndex,v5f573,v14486.position)) return; if (event !=null &&v60b69.Get("AllowMultipleSelection")=="Yes" &&ISEvent.IsRightButton(event)) {  var vbbe71 =v60b69.GetCheckedRows();  for (var v15763=0; v15763<vbbe71.length; v15763++) { if (wgIsSameRow(vbbe71[v15763],v14486)) return; } }  if (v1ac19 =="RowSelect" ||v1ac19 =="CellSelect" ||wgIsValidRow(v14486)) { var v8c164 =v60b69.Get("AllowEdit")=="Yes"; if (vafe42.LastSelObj &&(vafe42.ActiveEditCell ||vafe42.LastEditObj)) { v77392 =vafe42.LastSelObj.element; if (v77392.tagName =="TD") v77392 =v77392.parentElement; if (!wgIsSameRow(v77392,v14486)||vdb431) { var v52235 =vafe42.ExitEdit(1)[0]; if (!v52235) return; } else { if (((v8c164 ||(v14486.type =="NewRow"))||v14486.type =="FilterRow")&&!vdb431 &&v14486.type !="GroupHeader") { if (v20d93) { if (v20d93.rowChecker) wg11c43.meab20(v20d93,event.shiftKey); else wg08d15.mc4c94(v20d93,v5f573); } wg54045.mca59(vafe42,event); wg54045.m48174(vafe42,v60b69,v20d93,v5f573); vfd472 =true; if (vafe42.LastEditObj) { var v52235 =vafe42.ExitEditMode(); if (v52235 &&(v1ac19 !="CellSelect" ||v14486.type =="NewRow" ||v14486.type =="FilterRow")) { wg08d15.m71c24(v5f573); var v71238 =vafe42.LayoutSettings.EditOnClick; if (v71238 ||v14486.type =="NewRow" ||v14486.type =="FilterRow") { if (wgIsFilterRow(v14486)&&v20d93 &&v20d93.tagName =="IMG") return; if (!v0df34 &&event.button !=2) vafe42.ActivateEditMode(); if (v14486.type =="NewRow" ||wgIsFilterRow(v14486)||v71238) return; } else { v5f573.setActive(); return; } } else if (v52235 &&v1ac19 =="CellSelect" &&vafe42.LayoutSettings.EditOnClick) {  } else return; } else { if (v1ac19 !="CellSelect") { wg08d15.m71c24(v5f573); if (vafe42.LayoutSettings.EditOnClick ||v14486.type =="NewRow" ||v14486.type =="FilterRow") { if (wgIsFilterRow(v14486)&&v20d93 &&v20d93.tagName =="IMG") return; if (!v0df34 &&event.button !=2) vafe42.ActivateEditMode(); } return; } } } } } } wg54045.mca59(vafe42,event); var v37613 =false; if ((v1ac19 =="RowSelect" ||v5f573.type =="RowSelector" ||v14486.type =="GroupHeader" ||v14486.type =="NewRow" ||v14486.type =="FilterRow")) { v37613 =true; } if (v37613) { if (v60b69.Get("AllowMultipleSelection")=="Yes" &&event !=null &&(wgIsFilterRow(v14486)||wgIsNewRow(v14486))&&(event.ctrlKey ||event.shiftKey)) return; if (v5f573.type =="RowSelector") { if (!ISEvent.Raise(vafe42.LayoutSettings.ClientSideEvents.OnRowSelectorClick,vafe42.Id,v60b69.Id,v14486.rowIndex,v14486,v14486.position)) return; vdb431 =true; } if (v14486.type =="NewRow") wg54045.md1895(vafe42,v14486); wg54045.m37715(v14486,v37987); if (wgIsColumnSetRow(v14486)&&v5f573.type =="RowSelector" &&v1ac19 =="CellSelect") { if (typeof(wg08d15)!="undefined") wg08d15.mb0f18(v5f573);  wg54045.mdae93(v14486,vd9a92,v2ee93,"Forcedraw",true); } else wg54045.mdae93(v14486,vd9a92,v2ee93,"",v0df34); if (((v8c164 &&(v14486.type =="Record" ||v14486.type =="CSRecord"))||v14486.type =="FilterRow")&&!vdb431) { if (vafe42.HasFocus()) { wg08d15.m71c24(v5f573); if (wgIsFilterRow(v14486)&&v20d93 &&v20d93.tagName =="IMG") return; if (vafe42.LayoutSettings.EditOnClick) vafe42.ActivateEditMode(); } else { wg08d15.m71c24(v5f573,"Nodraw"); } } else if (wgIsRecordRow(v14486)&&!v8c164) vafe42.ActiveEditCell =null; if (vdb431 &&v8c164) { if (vafe42.HasFocus()) v5f573.setActive(); } if ((v14486.type =="GroupHeader" ||!v8c164)&&vafe42.ActiveEditCell &&vafe42.ActiveEditCell.rowElement.type =="NewRow") { wg08d15.mf3c53(vafe42.ActiveEditCell.rowElement); vafe42.ActiveEditCell =null; } else if (v14486.type =="NewRow") { wg08d15.mbdc89(v14486); if (!v0df34) vafe42.ActivateEditMode(); } else if (v14486.type =="FilterRow") { if (event.button ==ISEvent.LEFT) vafe42.ActivateEditMode(); } else if (v14486.type =="GroupHeader" &&vafe42.ActiveEditCell) vafe42.ActiveEditCell =null; } else if (v1ac19 =="CellSelect" &&v14486.type !="PR") { if (v77392) { if (!wgIsSameRow(v77392,v14486)) wg54045.m37715(v14486,v37987); } else wg54045.m37715(v14486,v37987); wg54045.mab578(v5f573,vd9a92,v2ee93,"",v0df34); if (vafe42.LayoutSettings.EditOnClick) vafe42.ActivateEditMode(); } } if (v20d93 &&v20d93.type =="checkbox") { wg4a444.mc4f43(v20d93); if (v20d93.rowChecker) wg11c43.meab20(v20d93,event.shiftKey); else { if (typeof (wg08d15)!="undefined") { if (typeof (wg08d15.mc4c94)=="function") wg08d15.mc4c94(v20d93,v5f573); } } } if (!vfd472) wg54045.m48174(vafe42,v60b69,v20d93,v5f573);   } },  mca59:function(v7231,v5b549) { if (!IS.ie &&!v7231.HasFocus()) { if (v5b549 &&v5b549.srcElement) { var v8691 =v5b549.srcElement; if (v8691.tagName =="INPUT" &&v8691.type =="checkbox") v7231.SetFocus(); } } }, m48174:function(va9475,vebc38,vcac8,v0a956) { if (IS.safari) { if (vcac8 &&vcac8.tagName =="IMG" &&vcac8.parentElement !=null) if (vcac8.parentElement.tagName =="BUTTON") vcac8 =vcac8.parentElement; }  if (vcac8 &&vcac8.tagName =="BUTTON") { wg4a444.mc4f43(vcac8); if (vcac8.disabled) return; var v12a84 =wgGetColNameByCell(v0a956); var v2d189 =ISEvent.Raise(va9475.LayoutSettings.ClientSideEvents.OnButtonClick,va9475.Id,vebc38.Id,v12a84,vcac8.keyValue); if (v2d189) { if (IS.moz ||IS.safari) { event.cancelBubble =true; event.returnValue =false; } var v8cc4 =vebc38.Columns.GetNamedItem(v12a84); if (v8cc4.ButtonAutoPostback) { var vd4012 =v8cc4.ButtonPostbackMode; if (vd4012 =="OnTheFly") { wg4a444.mb4941(va9475.Name,"ButtonClick",vcac8); } else { var v53a72 =va9475.Name +"\03" +vebc38.Id +"\03" +v12a84 +"\03" +vcac8.keyValue; __doPostBack(va9475.ServerUniqueID,"ButtonClick:" +v53a72); } } } } }, md1895:function(v21025,v7ba15) { var v23b14; var v4aa57 =v7ba15.cells; var v65c41 =0; for (var va3d80=0; va3d80<v4aa57.length; va3d80++) { if (v4aa57[va3d80].type =="NewRowInfoCell") { v23b14 =v4aa57[va3d80]; break; } } if (v23b14) { var vb8a16 =v21025.Tables[wg4a444.meba49(v7ba15)]; if (vb8a16.IsUseColumnSet) { wgeb383.me4750(v21025,vb8a16,v7ba15,v23b14); return; }  if (vb8a16.IsRootTable) v65c41 =1; v7ba15.origColSpan =v23b14.colSpan; v7ba15.infoText =v23b14.innerText; v23b14.colSpan =1; v23b14.innerText =" "; v23b14.type ="Cell"; v7ba15.oldClassName =v23b14.className; v23b14.className =v21025.RowClass; for (var va3d80=0; va3d80<v7ba15.origColSpan -1; va3d80++) { var v7ea22 =v7ba15.insertCell(-1); v7ea22.type ="Cell"; v7ea22.className =v21025.RowClass;  if (v65c41 ==1 &&va3d80 ==v7ba15.origColSpan -2) v7ea22.type =""; } if (v21025.FreezePaneActive &&v21025.FreezeConfig !=null) { var va5e76 =new WebGridPartOption(); va5e76.AddNewRow =true;  wg11c43.m41725(v21025,true,va5e76); }  wg08d15.mac373(v21025,v7ba15); } }, mbef44:function(v05a20) { var v3f445; var va7725 =v05a20.cells; var v7b779 =wg4a444.m4dc24(v05a20); var v19948 =wgGetGridById(v7b779.gridId); var v98560 =v19948.Tables[v7b779.tblName]; if (v98560.IsUseColumnSet) { wgeb383.m2c376(v19948,v98560,v05a20); return; } for (var v60987=0; v60987<va7725.length; v60987++) { if (va7725[v60987].type =="Cell") { v3f445 =va7725[v60987]; break; } } if (v3f445) { var v30722 =0;  if (v98560.IsRootTable &&v19948.FreezePaneActive) { for (var v60987=0; v60987<v05a20.cells.length; v60987++) v05a20.cells[v60987].style.display =""; } for (var v60987=0; v60987<v05a20.origColSpan -1; v60987++) { v05a20.deleteCell(v3f445.cellIndex +1); v30722++; } v3f445.colSpan =v05a20.origColSpan; v3f445.innerText =v05a20.infoText; v3f445.type ="NewRowInfoCell"; v3f445.style.cssText =""; v3f445.className =v05a20.oldClassName; } }, m52d30:function(vaf991) { for (var v45156=0; v45156<vaf991.childNodes.length; v45156++) { if (vaf991.childNodes[v45156].tagName =="SPAN" &&vaf991.childNodes[v45156].getAttribute("content")=="") return vaf991.childNodes[v45156]; else if (vaf991.childNodes[v45156].childNodes.length>0) { var v09a83 =wg54045.m52d30(vaf991.childNodes[v45156]); if (v09a83) return v09a83; } } return null; }, m5a732:function(vd3f52,v3ca88,v4b842,v21332) { var v3af75 =wgGetCellCount(vd3f52); var ve6d92 =wg4a444.m4dc24(vd3f52); if (!vd3f52 ||!ve6d92) return; var v2ed16 =ISGetObject(ve6d92.gridId); var v10316 =v2ed16.Tables[ve6d92.tblName]; var v12f3 =v10316.GetSelRowStyle(); var v59b11 =v10316.GetFocusCellStyle(); var ve5923 =false; var v3bc19; var v7cc72 =v2ed16.LayoutSettings.RowHighlightType; if (v59b11 !="") v59b11 =v59b11.substring(v59b11.indexOf(":")+1); if (wgGetActiveGrid()!=v2ed16.Name) v4b842 =true;  if (v21332) v4b842 =false; if (v4b842) { v12f3 =v2ed16.GetBlurRowStyle(); v59b11 ="0px"; } else { if (v3ca88 =="CheckedRow") { v12f3 =v10316.GetCheckedRowStyle(); if (v12f3 ==null ||v12f3 =="") return; v59b11 =""; } else { if (v2ed16.LayoutSettings.BatchUpdateSettings !=null) { if (v2ed16.LayoutSettings.BatchUpdateSettings.HighlightChanges) { if (v3ca88 =="AddedRow" ||v3ca88 =="ModifiedRow" ||v3ca88 =="DeletedRow") { var v19b43 =v2ed16.LayoutSettings[v3ca88 +"Style"]; v12f3 =null;  if (v19b43 !="") { v12f3 =IS.GetCssText(v2ed16.Id,v19b43); v59b11 =""; } } if (v12f3 ==null ||v12f3 =="") return; } else { if (v3ca88 =="AddedRow") v12f3 =""; } } } }  vd3f52.selectionMode =v3ca88; if (wgIsColumnSetRow(vd3f52)||(v10316.PreviewRowVisible &&vd3f52.type !="GroupHeader" &&vd3f52.type !="NewRow")) { wgeb383.m98398(vd3f52,v3ca88,v4b842); return; } if (v10316.SelfReferencingSettings.Enabled &&v10316.SelfReferencingSettings.IsTreeViewSelectionMode  &&vd3f52.type !="GroupHeader" &&vd3f52.type !="NewRow") { var va2527 =v10316.SelfReferencingSettings.ExpandColumnMember; var v01325 =wgGetCellByName(vd3f52,va2527); var vdbb22 =wg54045.m52d30(v01325); if (v3ca88 =="Clear") vdbb22.runtimeStyle.cssText =""; else { if (v3ca88 !="Redraw") vdbb22.runtimeStyle.cssText =v12f3; vdbb22.runtimeStyle.border =v59b11; } return; } for (var vcc183=0; vcc183<vd3f52.cells.length; vcc183++) { var v98833 =vd3f52.cells[vcc183]; var v7c956 =false; wg4a444.mc4f43(v98833); if (v98833.type =="Cell" ||v98833.type =="GroupCell" ||v98833.type =="FilterColumn") { if (v3ca88 =="Clear") { if (!IS.ie &&v98833.currentStyle.display =="none") v7c956 =true; v98833.runtimeStyle.cssText ="";  if (v7c956) v98833.style.display ="none"; else if (!IS.ie &&v98833.style.display =="none") v98833.style.display =""; } else { if (v3ca88 !="Redraw") { if (!IS.ie &&v98833.currentStyle.display =="none") v7c956 =true;  v98833.runtimeStyle.cssText =v12f3;  if (v7c956) v98833.style.display ="none"; }  if (IS.opera) continue;  if (v7cc72 =="EntireRow") { if (!ve5923) { ve5923 =true; v98833.runtimeStyle.borderLeft =v59b11; v98833.runtimeStyle.borderTop =v59b11; v98833.runtimeStyle.borderBottom =v59b11; if (v3af75>1 ||v98833.type =="GroupCell") v98833.runtimeStyle.borderRightWidth ="0"; else v98833.runtimeStyle.borderRight =v59b11; } else { v3bc19 =v98833; v98833.runtimeStyle.borderTop =v59b11; v98833.runtimeStyle.borderBottom =v59b11; v98833.runtimeStyle.borderLeftWidth ="0"; v98833.runtimeStyle.borderRightWidth ="0"; } } } } } if (v3bc19 &&v7cc72 =="EntireRow") { with (v3bc19.runtimeStyle) { borderRight =v59b11; borderTop =v59b11; borderBottom =v59b11; borderLeftWidth ="0"; } } if (v3ca88 =="Clear" &&vd3f52.isRowChecked &&!v4b842) wg54045.m5a732(vd3f52,"CheckedRow"); else if (v3ca88 =="Clear" &&v2ed16.LayoutSettings.AllowBatchUpdate && v2ed16.LayoutSettings.BatchUpdateSettings.HighlightChanges) { if (typeof(vd3f52.rowState)!="undefined" &&vd3f52.rowState !=null) wg54045.m5a732(vd3f52,vd3f52.rowState +"Row"); } }, mdae93:function(v6ea77,v28b54,v73d99,v88026,v0f578) { if (!v6ea77) return; if (v88026 =="Clear" &&v6ea77.tagName =="TD") { wg54045.mab578(v6ea77,v28b54,v73d99,"Clear"); return; } if (v88026 =="Clear") { var v72c91 =wg4a444.m4dc24(v6ea77); if (!v72c91) return; var v90a7 =ISGetObject(v72c91.gridId); if (!wg4a444.m03819(v90a7.LastSelObj)) return; } else { var v72c91 =wg4a444.m4dc24(v6ea77); var v90a7 =ISGetObject(v72c91.gridId); var vafc12 =false; if (v6ea77.type =="PR") v6ea77 =wgGetPreviousRow(v72c91,v6ea77); if (v90a7.LastSelObj) { var v65d66 =v90a7.Tables[v72c91.tblName];  if (event !=null &&v65d66.Get("AllowMultipleSelection")=="Yes") { var vf9d30 =v90a7.LastSelObj.GetRowElement();  if (v90a7.LastSelObj.tblName ==v65d66.Name) { if (event.ctrlKey &&!event.shiftKey) { if (!wgIsSameRow(vf9d30,v6ea77)) { if (!vf9d30.isRowChecked &&vf9d30.selectionMode !="Clear") v65d66.AddSelectedRow(vf9d30); }  if (!v6ea77.isRowChecked) v65d66.AddSelectedRow(v6ea77); else { v65d66.RemoveSelectedRow(v6ea77); v88026 ="Clear"; } } else { var v62819 =v65d66.GetCheckedRows();  if (v62819.length >0 &&!event.ctrlKey) { for (var v0b946=0; v0b946<v62819.length; v0b946++) { var va4595 =v62819[v0b946];  va4595.isRowChecked =false; wg54045.mdae93(va4595,"","","Clear"); }  v65d66.ClearSelectedRows(); }  if (event.shiftKey &&!wgIsSameRow(vf9d30,v6ea77)) { if (!wgIsSameRow(vf9d30,v6ea77)) { if (!vf9d30.isRowChecked &&vf9d30.selectionMode !="Clear") v65d66.AddSelectedRow(vf9d30); }  if (v6ea77.rowIndex >vf9d30.rowIndex) { var vdaf8 =wgGetNextRow(v72c91,vf9d30); while (vdaf8 !=v6ea77) { if (!vdaf8.isRowChecked &&wgIsRecordRow(vdaf8)) v65d66.AddSelectedRow(vdaf8,true);  vdaf8 =wgGetNextRow(v72c91,vdaf8); } } else { var vdaf8 =wgGetPreviousRow(v72c91,vf9d30); while (vdaf8 !=v6ea77) { if (!vdaf8.isRowChecked &&wgIsRecordRow(vdaf8)) v65d66.AddSelectedRow(vdaf8,true);  vdaf8 =wgGetPreviousRow(v72c91,vdaf8); } } v65d66.AddSelectedRow(v6ea77); vafc12 =true; } } } }  if (!wgIsSameRow(v90a7.LastSelObj.element,v6ea77)) { if (!vafc12) wg54045.mdae93(v90a7.LastSelObj.element,"","","Clear"); else { if (v90a7.ActiveEditCell !=null &&v65d66.SelectedRowsContain(v90a7.ActiveEditCell.rowElement)) wg54045.mab578(v90a7.ActiveEditCell.element,v28b54,v73d99,""); } if (v90a7.LastSelObj.element.type =="NewRow") { wg54045.mbef44(v90a7.LastSelObj.element); } } } else { if (v90a7.LastSelObj &&wgIsSameRow(v90a7.LastSelObj.element,v6ea77)&&v88026 !="Forcedraw") return; } if (!v0f578) { if (!ISEvent.Raise(v90a7.LayoutSettings.ClientSideEvents.OnBeforeRowSelect,v90a7.Id,v72c91.tblName,v90a7.LastSelObj)) return; } var v9c939 =new SelectedObject(v72c91.tblName,v72c91.gridId,v6ea77); v9c939.type ="Row"; v9c939.rowIndex =v6ea77.rowIndex; v90a7.LastSelObj =v9c939; if (!v0f578) { if (!ISEvent.Raise(v90a7.LayoutSettings.ClientSideEvents.OnRowSelect,v90a7.Id,v72c91.tblName,v6ea77.rowIndex,v6ea77,v6ea77.position)) return; }  if (v90a7.LayoutSettings.RowChangedAction !="None" &&event !=null &&!wgIsNewRow(v6ea77)&&!wgIsFilterRow(v6ea77)) { var v8e335 =v90a7.LayoutSettings.RowChangedAction;  if (v8e335 =="FullPagePostback") { var v9f522 =v6ea77.keyValue +"\03" +v72c91.tblName; __doPostBack(v90a7.ServerUniqueID,"RowChanged:" +v9f522); } else if (v8e335 =="OnTheFlyPostback") { wg4a444.mb4941(v90a7.Name,"RowChanged",v6ea77); } } } wg54045.m5a732(v6ea77,v88026); }, mab578:function(vc7718,vdfe14,v1686,v2dc1,v22e65) { if (!vc7718.origStyle) vc7718.origStyle =vc7718.style.cssText; if (v1686 !="") v1686 =v1686.substring(v1686.indexOf(":")+1); if (v2dc1 =="Clear" &&vc7718.tagName =="TR") { wg54045.mdae93(vc7718,vdfe14,v1686,"Clear"); return; } var v6b652 =wg4a444.m4dc24(vc7718.parentElement); var vc7b42 =ISGetObject(v6b652.gridId); if (v2dc1 =="Clear") { } else { if (vc7b42.LastSelObj &&vc7b42.LastSelObj.element !=vc7718) { wg54045.mab578(vc7b42.LastSelObj.element,"","","Clear"); } if (vc7b42.LastSelObj &&vc7b42.LastSelObj.GetRowElement()!=vc7718.parentElement) { var ve3d51 =vc7b42.LastSelObj.GetRowElement(); if (ve3d51 &&ve3d51.type =="NewRow") { wg54045.mdae93(ve3d51,"","","Clear"); wg54045.mbef44(ve3d51); } } var vdc591 =new SelectedObject(v6b652.tblName,v6b652.gridId,vc7718); var vc8d99 =vc7b42.Tables[v6b652.tblName]; vdc591.type ="Cell"; vdc591.rowIndex =vc7718.parentElement.rowIndex; vdc591.cellIndex =wgGetCellPosByName(vc7718.parentElement,vc7718); vc8d99.LastAECIndex =vc7718.cellIndex;  if (vc8d99.IsUseColumnSet) vc8d99.LastCSIndex =[vc7718.r,vc7718.c,vc7718.cs]; vc7b42.LastSelObj =vdc591; if (!v22e65) if (!ISEvent.Raise(vc7b42.LayoutSettings.ClientSideEvents.OnCellSelect,v6b652.gridId,v6b652.tblName,vdc591.rowIndex, vdc591.cellIndex,vc7718)) return; var v27713 =vc8d99.Get("AllowEdit")=="Yes"; if (v27713) { vc7b42.ActiveEditCell =new wgActiveCell(v6b652.gridId,v6b652.tblName,vc7718); vc7b42.ActiveEditCell.rowElement =vc7718.parentElement; } } if (v2dc1 =="Clear") { var ve9e32 =true; var v5b061 =null;  if (vc7b42.LayoutSettings.AllowBatchUpdate) { v5b061 =wgGetRootRow(vc7718.parentElement); if (v5b061.rowState &&vc7b42.LayoutSettings.BatchUpdateSettings.HighlightChanges) ve9e32 =false; }  if (ve9e32) { vc7718.runtimeStyle.cssText =""; } else { if (vc7b42.LayoutSettings.BatchUpdateSettings.HighlightChanges) { var v01739 =vc7b42.LayoutSettings[v5b061.rowState +"RowStyle"]; var vdfe14;  if (v01739 !="") vdfe14 =IS.GetCssText(vc7b42.Id,v01739);  if (vdfe14) { with (vc7718.runtimeStyle) { cssText =vdfe14; borderRight =""; borderBottom =""; } } } }  if (vc7718.stripedClass) { vc7718.className +=vc7718.stripedClass; vc7718.stripedClass =""; } } else { with (vc7718.runtimeStyle) { cssText =vdfe14; borderLeft =borderRight =borderBottom =borderTop =v1686; } if (vc7718.className.indexOf("DefNoBrdBottom")>=0) { vc7718.className =vc7718.className.replace(/DefNoBrdBottom/g,""); vc7718.stripedClass ="DefNoBrdBottom "; } if (vc7718.className.indexOf("DefNoBrdRight")>=0) { vc7718.className =vc7718.className.replace(/DefNoBrdRight/g,""); vc7718.stripedClass +="DefNoBrdRight "; } } }, m37715:function(vedd32,v19687) { if (!vedd32) return; var v79093 =wg4a444.m4dc24(vedd32); if (!v79093) return; var v1c668 =ISGetObject(v79093.gridId); if (v1c668.LastSelObj &&v19687 !=null) { obj =v1c668.LastSelObj.element; if (obj.tagName =="TR") wg54045.m37715(obj,null); else wg54045.m37715(obj.parentElement,null); } if (!v1c668) return; if (wgIsColumnSetRow(vedd32)) vedd32 =wgGetColumnSetRow(vedd32); else if (vedd32.type =="PR") vedd32 =wgGetPreviewRowParent(vedd32); var va7759 =wgGetRowHeader(vedd32); if (!va7759) return; if (v19687) { var v74465 =true;  if (v1c668.LayoutSettings.AllowBatchUpdate) { if (vedd32.rowState) v74465 =false; }  if (v74465) { if (v1c668.CurrentRowImage) { va7759.innerHTML =""; va7759.appendChild(v1c668.CurrentRowImage); } else { va7759.innerHTML ="<img src='" +v19687 +"' align='absmiddle'>"; v1c668.CurrentRowImage =va7759.children[0]; } } } else { if (vedd32.type =="NewRow") { v19687 =v1c668.ResolveImagePathEx(v1c668.LayoutSettings.ImageSettings.NewRowImage); va7759.innerHTML ="<img src='" +v19687 +"' align='absmiddle'>"; } else { var v27387 =true;  if (v1c668.LayoutSettings.AllowBatchUpdate) { if (vedd32.rowState) v27387 =false; }  if (v27387) va7759.innerHTML ="&nbsp;"; } } if (IS.moz ||IS.safari) wga4d9.mb7d10(v1c668); vedd32.markedEdit =false; },  mee231:function(v56643,v4d746) { if (!v56643) return; var v1114 =wg4a444.m4dc24(v56643); if (!v1114) return; var v39626 =ISGetObject(v1114.gridId); if (!v39626) return; if (wgIsColumnSetRow(v56643)) v56643 =wgGetColumnSetRow(v56643); else if (v56643.type =="PR") v56643 =wgGetPreviewRowParent(v56643); var vab729 =wgGetRowHeader(v56643); if (!vab729) return; var vd1972 =v39626.LayoutSettings.ImageSettings; var va4331 =vd1972[v4d746];  if (va4331 !="" &&typeof(va4331)!="undefined") { var vca766 ="";  if (v4d746 =="AddedRowIndicator") vca766 =v39626.GetString("AddedRowState"); else if (v4d746 =="ModifiedRowIndicator") vca766 =v39626.GetString("ModifiedRowState"); else if (v4d746 =="DeletedRowIndicator") vca766 =v39626.GetString("DeletedRowState");  vab729.innerHTML ="<img src='" +v39626.ResolveImagePathEx(va4331)+"'" + " title='" +vca766 +"' align='absmiddle'>"; } }, m5ea99:function(vefe37) { var v66e79 =event.srcElement; var va8b15; if (v66e79.tagName !="TD" &&v66e79.tagName !="TH") v66e79 =wg4a444.ma8124(v66e79); if (!v66e79 ||(v66e79.tagName !="TD" &&v66e79.tagName !="TH")) return; if (v66e79.tagName =="TD" ||v66e79.tagName =="TH") va8b15 =wg4a444.m4dc24(v66e79.parentElement); else if (v66e79.tagName =="TR") va8b15 =wg4a444.m4dc24(v66e79); if (!va8b15) return; if (va8b15.tagName !="TABLE" ||!va8b15.gridId) return; if (va8b15.tblName !=vefe37) return; var v57581 =ISGetObject(va8b15.gridId); var ve3a37 =v57581.Tables[va8b15.tblName]; var vb2d52 =v66e79.parentElement; if (v57581.EnableSection508Standards) { var vf6a83 =wg11c43.mdc498();  if (vf6a83) return; } if (!ISEvent.Raise(v57581.LayoutSettings.ClientSideEvents.OnCellDblClick,va8b15.gridId,va8b15.tblName,vb2d52.rowIndex,v66e79.cellIndex,v66e79,vb2d52.position)) return; if (vb2d52.type =="GroupHeader") { wg11c43.m9b571(v57581,wgGetCellByPosition(vb2d52,0).childNodes[0],vb2d52.expanded); wg11c43.m55442(null,vb2d52); } else if (wgIsRecordRow(vb2d52)) { if (!v57581.LayoutSettings.EditOnClick) { if (ve3a37.Get("AllowEdit")=="Yes") v57581.ActivateEditMode(); else { if (typeof (vb2d52.srLevel)!="undefined") wgToggleSelfRefRow(vb2d52); } } } event.cancelBubble =true; event.returnValue =false; }, m20759:function() { if (IS.moz &&wg_Global.LastKeyDownProcessed) { event.cancelBubble =true; event.returnValue =false; } }, m70c69:function() { }, mda09:function(v82132) { var v4b29 =(v82132 ? v82132 : event); var v16b83 =v4b29.srcElement; if (!v16b83) v16b83 =v4b29._srcElement; var tbl,vb8749; if (v16b83.tagName =="TD") { tbl =wg4a444.m4dc24(v16b83.parentElement); vb8749 =v16b83.parentElement; } else if (v16b83.tagName =="TR") { tbl =wg4a444.m4dc24(v16b83); vb8749 =v16b83; } else if (v16b83.tagName =="SPAN" ||v16b83.tagName =="NOBR") { v16b83 =wg4a444.mc2986(v16b83);  if (v16b83 !=null) { vb8749 =v16b83.parentElement; tbl =wg4a444.m4dc24(v16b83); } } if (!tbl) return; if (tbl.tagName !="TABLE" ||!tbl.gridId) return; var v6bd18 =ISGetObject(tbl.gridId); var v58e5 =v6bd18.Tables[tbl.tblName]; var vb5196 =false; var vda66 =false; var v05451 =false; var ve4b48 =true; var v26523 =false; var v06041 =v6bd18.LastSelObj; var v73441 =false; var ve0d14 =null; if (IS.moz) { if (v06041) { v16b83 =v06041.element; tbl =wg4a444.m4dc24(v16b83); } } if (tbl !=v58e5.GetElement(WG40.BODY,WG40.HTMLTABLE,vb8749)) { if (!v06041) return; v16b83 =v06041.element; tbl =wg4a444.m4dc24(v16b83); } try { if (!ISEvent.Raise(v6bd18.LayoutSettings.ClientSideEvents.OnKeyDown,v6bd18.Name,tbl.tblName,v16b83.parentElement.rowIndex,v16b83.cellIndex)) return; } catch (e) { return; } var v56798 =v58e5.Get("CellClickAction"); if (v56798 =="None") vda66 =true; if (vda66) { event.cancelBubble =true; return; } var v33086 =new SelectedObject(tbl.tblName,tbl.gridId,null); var vc8a40 =false; var vf8042 =false; if (v4b29.keyCode ==187 &&v4b29.ctrlKey) vc8a40 =true; if (v4b29.keyCode ==189 &&v4b29.ctrlKey) vf8042 =true; switch (v4b29.keyCode) { case 35: var vb8749 =v06041.element; if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (v56798 =="RowSelect" ||vb8749.type =="GroupHeader") { try { if (vb8749.type =="NewRow") v33086 =wgGetLastVisibleRow(v58e5.GetElement(WG40.BODY,WG40.HTMLTABLE)); else v33086 =wgGetLastVisibleRow(tbl); } catch (e) { } } else { if (vb8749.type !="NewRow") { v33086.cellIndex =wgGetCellCount(v06041.element.parentElement)-1; v33086.element =wgGetCellByPosition(v06041.element.parentElement,v33086.cellIndex); } } if (v33086) { var ve9819 =v6bd18.Tables[v33086.tblName].Get("CellClickAction"); if (ve9819 =="RowSelect" ||vb8749.type =="GroupHeader") v33086.type ="Row"; else if (ve9819 =="CellSelect") v33086.type ="Cell"; v05451 =true; vb5196 =true; } if (!v4b29.ctrlKey &&v56798 !="CellSelect") { if (vb8749.type =="NewRow" ||wgIsFilterRow(vb8749)||(wgIsRecordRow(vb8749)&&v58e5.Get("AllowEdit")=="Yes")) { var v89a4 =wgGetLastEditableCell(vb8749); if (v89a4) wg08d15.m71c24(v89a4); v05451 =false; } } break; case 36: var vb8749 =v06041.element; if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (v56798 =="RowSelect" ||vb8749.type =="GroupHeader") v33086 =wgGetFirstVisibleRow(tbl); else { if (vb8749.type !="NewRow") { v33086.element =wgGetCellByPosition(v06041.element.parentElement,0); v33086.cellIndex =0; } } if (v33086) { var ve9819 =v6bd18.Tables[v33086.tblName].Get("CellClickAction"); if (ve9819 =="RowSelect" ||vb8749.type =="GroupHeader") v33086.type ="Row"; else if (ve9819 =="CellSelect") { v33086.type ="Cell"; } v05451 =true; vb5196 =true; } if (!v4b29.ctrlKey &&v56798 !="CellSelect") { if (vb8749.type =="NewRow" ||wgIsFilterRow(vb8749)||(wgIsRecordRow(vb8749)&&v58e5.Get("AllowEdit")=="Yes")) { wg08d15.mbdc89(vb8749); v05451 =false; } } break; case 9: if (v4b29.ctrlKey) { while (true) { var v9ca5; if (!v4b29.shiftKey) v9ca5 =wgGetNextFocusableElement(v6bd18,null,v9ca5); else v9ca5 =wgGetPrevFocusableElement(v6bd18,null,v9ca5); if (v9ca5) { if (v6bd18.LastEditObj) v6bd18.ExitEditMode(); try { v9ca5.focus(); break; } catch (e) { } } else break; } v05451 =false; vb5196 =true; break; } case 37: if (v4b29.keyCode ==37 ||(v4b29.keyCode ==9 &&v4b29.shiftKey)) { var vb8749 =v06041.element; if (v56798 =="RowSelect" ||vb8749.type =="GroupHeader" ||vb8749.type =="NewRow" ||wgIsFilterRow(vb8749)) { if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (vb8749.type =="GroupHeader" &&vb8749.expanded =="True") { wg11c43.m9b571(v6bd18,wgGetCellByPosition(vb8749,0).childNodes[0],vb8749.expanded); wg11c43.m55442(null,vb8749); } else if (typeof (vb8749.srLevel)!="undefined" &&!v58e5.Get("AllowEdit")=="Yes") { if (v56798 !="CellSelect") { var v65923 =wg11c43.m72440(v58e5,vb8749); wg11c43.m9b571(v6bd18,v65923,vb8749.srExpanded); wg11c43.m34536(v65923); } } else if (vb8749.type =="NewRow" ||wgIsFilterRow(vb8749)||(wgIsRecordRow(vb8749)&&v58e5.Get("AllowEdit")=="Yes")) { if (!wgActiveCellValid(v6bd18,vb8749)) { wg08d15.mbdc89(vb8749); } else { var v1bd75 =wgGetPrevEditableCell(v6bd18.ActiveEditCell.element,vb8749); if (v1bd75) { if (!v1bd75.rowChanged) { wg08d15.m71c24(v1bd75.element); if (wgIsColumnSetRow(vb8749)) v1bd75.element.setActive(); } if (v1bd75.rowChanged) { vb8749 =v1bd75.rowElement; v33086.type ="Row"; v33086.element =vb8749; v05451 =true; if (v1bd75.element) { v73441 =true; ve0d14 =v1bd75.element; } } if (wgIsColumnSetRow(vb8749)) ve4b48 =false; } } } } else if (v56798 =="CellSelect") { if (v06041.cellIndex -1>=0) { v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.cellIndex =v06041.cellIndex -1; v33086.rowIndex =v06041.rowIndex; v33086.type ="Cell"; v33086.element =wgGetCellByPosition(v06041.element.parentElement,v33086.cellIndex); v05451 =true; } } vb5196 =true; break; } case 9: if (v4b29.shiftKey) break; case 39: var vb8749 =v06041.element; if (v56798 =="RowSelect" ||v06041.element.type =="GroupHeader" ||vb8749.type =="NewRow" ||wgIsFilterRow(vb8749)) { if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (vb8749.type =="GroupHeader") { if (vb8749.expanded =="False") { wg11c43.m9b571(v6bd18,wgGetCellByPosition(vb8749,0).childNodes[0],vb8749.expanded); wg11c43.m55442(null,vb8749); } else { if (v4b29.keyCode ==9) { var v68c48 =wgGetNextVisibleRow(tbl,vb8749); var vcaf73 =wgGetFirstEditableCell(v68c48.element);  if (v68c48 &&v68c48.element) { vb8749 =v68c48.element; v33086.type ="Row"; v33086.element =vb8749; v05451 =true;  if (vcaf73 >-1) { vcaf73 =vb8749.cells[vcaf73]; v73441 =true; ve0d14 =vcaf73; } } } } } else if (typeof (vb8749.srLevel)!="undefined" &&!v58e5.Get("AllowEdit")=="Yes") { if (v56798 !="CellSelect") { var v65923 =wg11c43.m72440(v58e5,vb8749); wg11c43.m9b571(v6bd18,v65923,vb8749.srExpanded); wg11c43.m34536(v65923); } } else if (vb8749.type =="NewRow" ||wgIsFilterRow(vb8749)||(wgIsRecordRow(vb8749)&&v58e5.Get("AllowEdit")=="Yes")) { if (!wgActiveCellValid(v6bd18,vb8749)) { wg08d15.mbdc89(vb8749); } else { var vcaf73 =wgGetNextEditableCell(v6bd18.ActiveEditCell.element,vb8749); if (vcaf73) { if (!vcaf73.rowChanged) { if (v6bd18.LayoutSettings.FocusNewRowOnLastCell &&v58e5.Get("AllowAddNew")=="Yes" &&vcaf73.element ==v6bd18.ActiveEditCell.element  &&parseFloat(vb8749.position)==v6bd18.TotalLoadedRows -1) { v58e5.GotoNewRow(vb8749); } else { wg08d15.m71c24(vcaf73.element); if (wgIsFilterRow(vb8749)) wg54045.m88958(v6bd18,vcaf73.element); if (wgIsColumnSetRow(vb8749)) vcaf73.element.setActive(); } } if (vcaf73.rowChanged) { vb8749 =vcaf73.rowElement; v33086.type ="Row"; v33086.element =vb8749; v05451 =true; if (vcaf73.element) { v73441 =true; ve0d14 =vcaf73.element; } } if (wgIsColumnSetRow(vb8749)) ve4b48 =false; } } } } else if (v56798 =="CellSelect") { var vd4184 =(v06041.element.tagName =="TR" ? v06041.element : v06041.element.parentElement); if (!v6bd18.LastEditObj) { if (v06041.cellIndex +1<wgGetCellCount(vd4184)) { v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.cellIndex =v06041.cellIndex +1; v33086.rowIndex =v06041.rowIndex; v33086.type ="Cell"; v33086.element =wgGetCellByPosition(vd4184,v33086.cellIndex); v05451 =true; } } else { var v57b85 =v06041.GetRowElement(); if (wgIsRecordRow(v57b85)&&v58e5.Get("AllowEdit")=="Yes") { var vcaf73 =wgGetNextEditableCell(v6bd18.ActiveEditCell.element,v57b85); if (vcaf73) { v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.cellIndex =vcaf73.element.cellIndex; v33086.rowIndex =v57b85.rowIndex; v33086.type ="Cell"; v33086.element =vcaf73.element; } v05451 =true; } } } vb5196 =true; break; case 38: var v20526; var vb8749 =v06041.element; if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (v4b29.ctrlKey) { v33086 =wgGetPrevSiblingRow(tbl,vb8749); if (!v33086) v33086 =wgGetPrevVisibleRow(tbl,vb8749); } else v33086 =wgGetPrevVisibleRow(tbl,vb8749); if (v58e5.Get("AllowEdit")=="Yes" &&!wgActiveCellValid(v6bd18,vb8749)) { if (!wgIsColumnSetRow(vb8749)) wg08d15.mbdc89(vb8749); else ve4b48 =false; } else { if (wgIsColumnSetRow(vb8749)&&(v58e5.Get("AllowEdit")=="Yes" ||wgIsFilterRow(vb8749))) { var v16b83 =v6bd18.ActiveEditCell.element; var v70f61 =wgGetCSPrevEditableRow(tbl,v16b83,v16b83.cs,v16b83.c,true); if (v70f61 &&v70f61.element &&v70f61.element.type !="GroupHeader" &&v70f61.element.type !="NewRow") { if (v70f61 &&v58e5.Id ==v70f61.tblName) { if (wgIsSameRow(v70f61.rowElement,vb8749)) { v26523 =true; v73441 =true; ve4b48 =false; ve0d14 =v70f61.element; v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.type ="Row"; v33086.element =v70f61.rowElement; } else { ve4b48 =false; v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.type ="Row"; v33086.element =v70f61.rowElement; if (v70f61.element) { v73441 =true; ve0d14 =v70f61.element; } } } } else { if (!event.ctrlKey) v33086 =wgGetPrevVisibleRow(tbl,v16b83.parentElement); } } } if (v33086) { var ve9819 =v6bd18.Tables[v33086.tblName].Get("CellClickAction"); if (ve9819 =="RowSelect" ||v33086.element.type =="GroupHeader" ||v33086.element.type =="NewRow" ||v33086.element.type =="FilterRow") v33086.type ="Row"; else if (ve9819 =="CellSelect") { v33086.type ="Cell"; if (v06041.tblName ==v33086.tblName) { v33086.cellIndex =v06041.cellIndex; v33086.element =wgGetCellByPosition(v33086.element,v33086.cellIndex); } else { if (v6bd18.Tables[v33086.tblName].LastAECIndex !=-1) { v33086.cellIndex =v6bd18.Tables[v33086.tblName].LastAECIndex; v33086.element =wgGetValidActiveCell(v33086.element.cells[v33086.cellIndex]); } else v33086.element =wgGetCellByPosition(v33086.element,v33086.cellIndex); } } v05451 =true; vb5196 =true; } break; case 40: var v20526; var vb8749 =v06041.element; if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (v06041.tblName !=tbl.tblName) tbl =wg4a444.m4dc24(vb8749); if (v4b29.ctrlKey) { v33086 =wgGetNextSiblingRow(tbl,vb8749); if (!v33086) v33086 =wgGetNextVisibleRow(tbl,vb8749); } else v33086 =wgGetNextVisibleRow(tbl,vb8749); if (v58e5.Get("AllowEdit")=="Yes" &&!wgActiveCellValid(v6bd18,vb8749)) { if (!wgIsColumnSetRow(vb8749)) wg08d15.mbdc89(vb8749); else ve4b48 =false; } else { if (wgIsColumnSetRow(vb8749)&&(v58e5.Get("AllowEdit")=="Yes" ||wgIsFilterRow(vb8749))) { var v16b83 =v6bd18.ActiveEditCell.element; var v70f61 =wgGetCSNextEditableRow(tbl,v16b83,v16b83.cs,v16b83.c,true); if (v70f61 &&v70f61.element &&v70f61.element.type !="GroupHeader" &&v70f61.element.type !="NewRow") { if (v70f61 &&v58e5.Id ==v70f61.tblName) { if (wgIsSameRow(v70f61.rowElement,vb8749)) { v26523 =true; v73441 =true; ve4b48 =false; ve0d14 =v70f61.element; v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.type ="Row"; v33086.element =v70f61.rowElement; } else { ve4b48 =false; v33086 =new SelectedObject(v06041.tblName,v06041.gridId,null); v33086.type ="Row"; v33086.element =v70f61.rowElement; if (v70f61.element) { v73441 =true; ve0d14 =v70f61.element; } } } } else { if (!event.ctrlKey) v33086 =wgGetNextVisibleRow(tbl,v16b83.parentElement); } } } if (v33086) { var ve9819 =v6bd18.Tables[v33086.tblName].Get("CellClickAction"); if (ve9819 =="RowSelect" ||v33086.element.type =="GroupHeader" ||v33086.element.type =="NewRow") v33086.type ="Row"; else if (ve9819 =="CellSelect") { v33086.type ="Cell"; if (v06041.tblName ==v33086.tblName) { v33086.cellIndex =v06041.cellIndex; v33086.element =wgGetCellByPosition(v33086.element,v33086.cellIndex); } else { if (v6bd18.Tables[v33086.tblName].LastAECIndex !=-1) { v33086.cellIndex =v6bd18.Tables[v33086.tblName].LastAECIndex; v33086.element =wgGetValidActiveCell(v33086.element.cells[v33086.cellIndex]); } else { v33086.element =wgGetCellByPosition(v33086.element,v33086.cellIndex); } } } v05451 =true; vb5196 =true; } break; case 46: var vb8749 =v06041.element; if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (v58e5.Get("AllowDelete")=="Yes" &&wgIsRecordRow(vb8749)&&vb8749.rowState !="Deleted") { var vf3f90 =true; if (v6bd18.LayoutSettings.PromptBeforeDelete) vf3f90 =confirm(v6bd18.GetString("MessageBoxText/DeleteRow")); if (vf3f90) { wg08d15.ma4986(v6bd18,vb8749); vb5196 =true; } else { event.cancelBubble =true; } } break; case 107: if (v56798 =="RowSelect") { var v57b85 =v06041.element; if (v06041.type =="Cell") v57b85 =v57b85.parentElement; if (wgIsRecordRow(v57b85)) { var v3d731; v57b85 =wgGetRootRow(v57b85); for (var vc2b32=0; vc2b32<v57b85.cells.length; vc2b32++) { if (v57b85.cells[vc2b32].type =="CellExpander") { v3d731 =v57b85.cells[vc2b32]; break; } } if (v3d731 &&(v57b85.childExpanded =="True")) { wg10e8.mee892(v6bd18,v3d731,"True"); wg10e8.mcac60(null,v57b85); } } } vb5196 =true; break; case 109: if (v56798 =="RowSelect") { var v57b85 =v06041.element; if (v06041.type =="Cell") v57b85 =v57b85.parentElement; if (wgIsRecordRow(v57b85)) { var v3d731; for (var vc2b32=0; vc2b32<v57b85.cells.length; vc2b32++) { if (v57b85.cells[vc2b32].type =="CellExpander") { v3d731 =v57b85.cells[vc2b32]; break; } } if (v3d731 &&(v57b85.childExpanded =="False" ||!v57b85.childExpanded)) { wg10e8.mee892(v6bd18,v3d731,"False"); wg10e8.mcac60(null,v57b85); } } } vb5196 =true; break; case 27: if (v58e5.Get("AllowAddNew")=="Yes" ||v58e5.Get("AllowEdit")=="Yes" ||wgIsFilterRow(vb8749)) { var ve6469 =v6bd18.ExitEdit(-1)[0]; if (ve6469) v6bd18.IsInEditMode =false; } break; case 82: if (v4b29.ctrlKey) { v6bd18.Refresh(); v4b29.keyCode =0; vb5196 =true; break; } case 76: if (v4b29.ctrlKey) { wgLoadMore(v6bd18.Name); v4b29.keyCode =0; vb5196 =true; break; } case 69: if (v4b29.ctrlKey) { if (typeof (wg26f85.m3b766)=="function" &&v6bd18.LayoutSettings.AllowExport =="Yes") { wgExport(v6bd18.Name); } v4b29.keyCode =0; vb5196 =true; break; } case 115: if (v4b29.keyCode ==115) { if (wgIsFilterRow(vb8749)) { wg11c43.me4940(v6bd18.ActiveEditCell.element.childNodes[0]); v4b29.keyCode =0; vb5196 =true; } else if (v6bd18.ActiveEditCell) { var v37522 =v58e5.Columns.GetNamedItem(wgGetColNameByCell(v6bd18.ActiveEditCell.element)); if (v37522 &&v37522.EditType =="Custom") { var va4051 =v6bd18.CustomEditors[v37522.CustomEditorName]; if (va4051.ImplementationObject) va4051.ImplementationObject.OnDropdown(); v4b29.keyCode =0; vb5196 =true; } } } default: if (v4b29.keyCode>=48 &&v4b29.keyCode<=57 ||v4b29.keyCode>=54 &&v4b29.keyCode<=90 ||v4b29.keyCode>=96 &&v4b29.keyCode<=111 ||v4b29.keyCode>=186 &&v4b29.keyCode<=192 ||v4b29.keyCode>=219 &&v4b29.keyCode<=222 ||v4b29.keyCode ==113 ||v4b29.keyCode ==13 ||v4b29.keyCode ==32 ||v4b29.keyCode ==229) { if (!v4b29.ctrlKey) { var vb8749 =v06041.element; if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if ((v58e5.Get("AllowAddNew")=="Yes" &&vb8749.type =="NewRow")||(v58e5.Get("AllowEdit")=="Yes" &&wgIsRecordRow(vb8749)) ||wgIsFilterRow(vb8749)) { if (v4b29.shiftKey &&v4b29.keyCode ==13) { v6bd18.ExitEdit(0,false); vb5196 =true; } else { var vd754 =wg08d15.m23116(v6bd18,true); if (v4b29.keyCode ==13) vb5196 =true; else if (vd754) { wg08d15.m25737(v6bd18); v4b29.cancelBubble =true; } } } else { var v47955 =v58e5.GetRowCheckerColumn(); if (v47955 &&wgIsRecordRow(vb8749)) { wg11c43.m27f96(vb8749); vb5196 =true; } } } else { if (v4b29.keyCode ==84) { if (v58e5.Get("AllowFilter")=="Yes" &&v58e5.IsFilterRowVisible()) { v33086 =new SelectedObject(v06041.tblName,v06041.gridId,v58e5.GetFilterRow()); v33086.type ="Row"; v05451 =true; } vb5196 =true; } else if (v4b29.keyCode ==32) { var v47955 =v58e5.GetRowCheckerColumn(); if (v47955) { wg11c43.m27f96(vb8749); vb5196 =true; } } } } } if (vc8a40) { var vb8749 =v06041.element; if (v56798 =="RowSelect" ||v06041.element.type =="GroupHeader" ||vb8749.type =="NewRow") { if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (vb8749.type =="GroupHeader" &&vb8749.expanded =="False") { wg11c43.m9b571(v6bd18,wgGetCellByPosition(vb8749,0).childNodes[0],vb8749.expanded); wg11c43.m55442(null,vb8749); } else if (vb8749.type =="Record") { var v3d731; for (var vc2b32=0; vc2b32<vb8749.cells.length; vc2b32++) { if (vb8749.cells[vc2b32].type =="CellExpander") { v3d731 =vb8749.cells[vc2b32]; break; } } if (v3d731 &&(vb8749.childExpanded =="False" ||!vb8749.childExpanded)) { wg10e8.mee892(v6bd18,v3d731,"False"); wg10e8.mcac60(null,vb8749); } } } } else if (vf8042) { var vb8749 =v06041.element; if (v56798 =="RowSelect" ||vb8749.type =="GroupHeader" ||vb8749.type =="NewRow") { if (v06041.type =="Cell") vb8749 =vb8749.parentElement; if (vb8749.type =="GroupHeader" &&vb8749.expanded =="True") { wg11c43.m9b571(v6bd18,wgGetCellByPosition(vb8749,0).childNodes[0],vb8749.expanded); wg11c43.m55442(null,vb8749); } else if (vb8749.type =="Record") { var v3d731; for (var vc2b32=0; vc2b32<vb8749.cells.length; vc2b32++) { if (vb8749.cells[vc2b32].type =="CellExpander") { v3d731 =vb8749.cells[vc2b32]; break; } } if (v3d731 &&(vb8749.childExpanded =="True")) { wg10e8.mee892(v6bd18,v3d731,"True"); wg10e8.mcac60(null,vb8749); } } } } if (v05451) { var vb5957 =ISGetObject(v33086.gridId); var vc8356 =vb5957.Tables[v33086.tblName]; var v26d15 =vc8356.GetSelRowStyle(); var v5b171 =vc8356.GetFocusCellStyle(); var v65923 =vb5957.ResolveImagePathEx(vb5957.LayoutSettings.ImageSettings.CurrentRowImage); if (v6bd18.ActiveEditCell ||v6bd18.LastEditObj) { if (!wgIsSameRow(v06041.GetRowElement(),v33086.GetRowElement())) { var ve6469 =v6bd18.ExitEdit(2)[0]; if (!ve6469) return; } } if (v33086.type =="Row") { if (v33086.element.type =="NewRow") wg54045.md1895(vb5957,v33086.element); if (!v26523) { wg54045.m37715(v33086.element,v65923); wg54045.mdae93(v33086.element,v26d15,v5b171); } if (ve4b48) { var v6db81 =wgGetCellByPosition(v33086.element,0); v6db81.setActive(); if (v33086.element.type =="NewRow" ||wgIsFilterRow(v33086.element) ||(v33086.element.type =="Record" &&vc8356.Get("AllowEdit")=="Yes")) wgSetLastAEC(v33086.element); else { wg54045.m88958(v6bd18,v6db81); vb5957.ActiveEditCell =null; } } else { if (v73441) { if (ve0d14.cellIndex ==-1) { if (v33086.element.type =="NewRow") ve0d14 =wgGetCSFirstEditableCell(v33086.element); } wg54045.m88958(v6bd18,ve0d14); ve0d14.setActive(); } } if (v73441) { wg08d15.m71c24(ve0d14); } } else if (v33086.type =="Cell") { if (!wgIsSameRow(v06041.GetRowElement(),v33086.GetRowElement())) { wg54045.m37715(v33086.element.parentElement,v65923); } wg54045.mab578(v33086.element,v26d15,v5b171); v33086.element.setActive(); wg54045.m88958(vb5957,v33086.element); } } if (vb5196) { event.cancelBubble =true; event.returnValue =false; } wg_Global.LastKeyDownProcessed =vb5196; }, m88958:function(v6bf28,v26275) { var v99b51 =v6bf28.GetRootTable().GetElement(WG40.BODY,WG40.HTMLDIV); var v4a579 =v99b51.scrollLeft; var v48c26 =v99b51.scrollTop; var v4418 =v26275.parentElement; var v77f31 =wg4a444.meba49(v4418); var v3a862 =v6bf28.Tables[v77f31]; var vd7736 =true; var v10169 =0; var vce355 =false; if (v4418.type =="NewRow" ||v4418.type =="FilterRow") { if (v6bf28.Tables[v77f31].IsRootTable) { if (v99b51.childNodes[0].rows.length ==0) v99b51 =wg4a444.m4dc24(v4418).parentElement; } }  if (v3a862.IsRootTable &&v6bf28.FreezePaneActive) { vd7736 =false;  if (v6bf28.CacheFrozenWidth ==0) v6bf28.CacheFrozenWidth =wg11c43.m10f88(v6bf28);  v10169 =v6bf28.CacheFrozenWidth; } var vdc121 =ISPosLib.getClientLeft(v26275)+v26275.offsetWidth +v99b51.scrollLeft; var vc5e0 =v99b51.offsetWidth +v99b51.scrollLeft +ISPosLib.getClientLeft(v99b51); var v45044 =posLib2.getLeftAbs(v6bf28.FrameObj,v6bf28); if (vc5e0<vdc121) { if (vd7736) v99b51.scrollLeft +=vdc121 -vc5e0 +20; else { var v7ad91 =0;  if (v6bf28.FreezeConfig !=null) v7ad91 =v6bf28.FreezeConfig[0].length;  wg11c43.m4ab5(v6bf28,v26275); vce355 =true; } } if (v45044 ==0) v45044 =ISPosLib.getClientLeft(v99b51); var v62e44 =ISPosLib.getClientLeft(v26275)-v45044; if (v62e44 <0 &&vd7736) v99b51.scrollLeft +=v62e44 -20;  if (!vd7736 &&v6bf28.FreezeConfig !=null) { if (v6bf28.FreezeConfig[0].length >0) { var v95677 =wgGetColNameByCell(v26275); var vca179 =v3a862.Columns.GetNamedItem(v95677);  if (vca179 !=null &&vca179.HiddenFromView) { if (vca179.Position ==v6bf28.GetLastFrozenColumn().Position +1) wg11c43.mb5030(v6bf28,0,false,false,true); else wg11c43.m5d354(v6bf28,"Left");  vce355 =true; } } }  if (!vce355) { var v1ae0 =ISPosLib.getClientTop(v26275); var v26d63 =v1ae0 +v26275.offsetHeight +17; var v49656 =ISPosLib.getClientTop(v99b51); var v1eb95 =v49656 +v99b51.offsetHeight; if (v1ae0<v49656 &&v99b51.contains(v26275)) v99b51.scrollTop -=v49656 -v1ae0; if (v26d63>v1eb95) v99b51.scrollTop +=v26d63 -v1eb95; if (IS.moz &&(v4a579 !=v99b51.scrollLeft ||v48c26 !=v99b51.scrollTop)) wg4a444.ma0336(v6bf28); } } };function WebGridEventDestructor(){ delete wg54045; window.detachEvent("onunload",WebGridEventDestructor); IS.RegisterUnloadVariables("wg54045");}window.attachEvent("onunload",WebGridEventDestructor);if (typeof(Sys)!="undefined") Sys.Application.notifyScriptLoaded();
