oboutGrid.prototype.getGroupingAreaContainerIndex=function(){return 0};oboutGrid.prototype.getHeaderContainerIndex=function(){return this.ShowHeader?this.getGroupingAreaContainerIndex()+1:this.getGroupingAreaContainerIndex()};oboutGrid.prototype.getBodyContainerIndex=function(){var a=this.getHeaderContainerIndex()+1;if(this.AllowFiltering&&this.FilterPosition==2)a++;return a};oboutGrid.prototype.getColumnsFooterContainerIndex=function(){return this.getBodyContainerIndex()+1};oboutGrid.prototype.getHorizontalScrollbarContainerIndex=function(){var a=this.getBodyContainerIndex();if(this.ShowColumnsFooter)a++;if(this.AllowFiltering)a++;if(this.ScrollWidth!="0px")a++;return a};oboutGrid.prototype.getFooterContainerIndex=function(){var a=this.getBodyContainerIndex()+1;if(this.ShowColumnsFooter)a++;if(this.AllowFiltering&&this.FilterPosition==1)a++;if(this.ScrollWidth!="0px")a++;return a};oboutGrid.prototype.getHeaderTable=function(){return this.GridHeaderContainer.firstChild.firstChild};oboutGrid.prototype.getHeaderRow=function(){return this.getHeaderTable().firstChild.firstChild};oboutGrid.prototype.getHeaderCell=function(a){return this.getHeaderRow().childNodes[a]};oboutGrid.prototype.getHeaderCellInnerContainer=function(a){return a.firstChild.firstChild};oboutGrid.prototype.getHeaderCellSortImage=function(a){return a.firstChild.childNodes[1].firstChild};oboutGrid.prototype.getHeaderCellSortImageByCellIndex=function(a){return this.getHeaderCell(a).firstChild.childNodes[1].firstChild};oboutGrid.prototype.getHeaderCellSeparator=function(a){return this.GridHeaderContainer.firstChild.childNodes[a+1]};oboutGrid.prototype.getBodyTable=function(){return this.GridBodyContainer.firstChild.firstChild};oboutGrid.prototype.getBodyTableHead=function(){return this.getBodyTable().childNodes[0]};oboutGrid.prototype.getBodyTableBody=function(){return this.getBodyTable().childNodes[1]};oboutGrid.prototype.getBodyRowCount=function(){return this.getBodyTableBody().childNodes.length};oboutGrid.prototype.getBodyRow=function(a){return this.getBodyTableBody().childNodes[a]};oboutGrid.prototype.addBodyRow=function(h,f){var b=document.createElement("TR"),e=this.getBodyTableBody();if(h)for(var c=0;c<this.ColumnsCollection.length;c++){var d=this.ColumnsCollection[c],a=document.createElement("TD");if(this.ColumnsCollection[c].Visible)a.className=d.CssClass;else a.className=d.CssClassHidden;if(c==this.IndexOfFirstVisibleColumn)a.className=a.className+" ob_gC_Fc";else if(c==this.IndexOfLastVisibleColumn)a.className=a.className+" ob_gC_Lc";var g=document.createElement("DIV");g.className="ob_gCc1";var i=document.createElement("DIV");i.className="ob_gCc2";a.style.width=d.Width+d.WidthUnit;g.appendChild(i);a.appendChild(g);b.appendChild(a)}else{var a=document.createElement("TD");a.className="ob_gC";a.colSpan=this.ColumnsCollection.length;b.appendChild(a)}if(f==null||f==e.childNodes.length-1)e.appendChild(b);else e.insertBefore(b,e.childNodes[f].nextSibling);this.setCssClassToAddedBodyRow(b,!h);return b};oboutGrid.prototype.setCssClassToAddedBodyRow=function(c,b){if(typeof b=="undefined")b=false;var d=[this.CSSRecord,this.CSSRecordAlternate],a=0;if(c.previousSibling&&c.previousSibling.className==this.CSSRecord)a=1;if(b)a=a==0?1:0;c.className=d[a]};oboutGrid.prototype.removeBodyRow=function(b){var a=this.getBodyTableBody();a.removeChild(a.childNodes[b])};oboutGrid.prototype.getBodyHeadCell=function(a){return this.getBodyTableHead().firstChild.childNodes[a]};oboutGrid.prototype.getBodyCell=function(b,a){return this.getBodyRow(b).childNodes[a]};oboutGrid.prototype.hasBodyCellDataContainer=function(a){return a.firstChild.childNodes.length==2};oboutGrid.prototype.getBodyCellDataContainer=function(a){return a.firstChild.lastChild};oboutGrid.prototype.getBodyCellInnerContainer=function(a){return a.firstChild.firstChild};oboutGrid.prototype.getBodyCellSeparatorByCellIndex=function(a){return this.GridBodyContainer.firstChild.childNodes[a+1]};oboutGrid.prototype.getBodyCellSeparator=function(a){return this.GridBodyContainer.firstChild.childNodes[a]};oboutGrid.prototype.applyCssClassToBodyRowCells=function(d,c){for(var b=this.getBodyRow(d),a=0;a<b.childNodes.length;a++)this.applyCssClassToCell(b.childNodes[a],c,false)};oboutGrid.prototype.applyCssClassToCell=function(a,b,c){if(!c){if(a.className.indexOf(" "+b)==-1)a.className=a.className+" "+b}else a.className=a.className.replace(" "+b,"")};oboutGrid.prototype.applyCssClassToColumn=function(a,b,c){if(this.GridHeaderContainer!=null){var f=this.getHeaderCell(a);this.applyCssClassToCell(f,b,c)}for(var e=this.getBodyTableBody(),d=0;d<e.childNodes.length;d++)this.isBodyRecordWithDataCells(e.childNodes[d])&&this.applyCssClassToCell(e.childNodes[d].childNodes[a],b,c);if(this.ShowColumnsFooter){var f=this.getColumnsFooterCell(a);this.applyCssClassToCell(f,b,c)}if(this.AllowFiltering){var f=this.getFilterCell(a);this.applyCssClassToCell(f,b,c)}};oboutGrid.prototype.getFilterRow=function(){return this.FilterContainer.firstChild.firstChild.firstChild.firstChild};oboutGrid.prototype.getFilterCell=function(a){return this.getFilterRow().childNodes[a]};oboutGrid.prototype.getFilterControlsContainer=function(a){return this.getFilterCell(a).firstChild.lastChild};oboutGrid.prototype.getFilterCellSeparator=function(a){return this.FilterContainer.firstChild.childNodes[a+1]};oboutGrid.prototype.getPagingButtonsContainer=function(){return this.GridFooterContainer.lastChild.firstChild};oboutGrid.prototype.getGroupingAreaInnerContainer=function(){return this.GridGroupingAreaContainer.childNodes[1]};oboutGrid.prototype.getColumnsFooterTable=function(){return this.GridColumnsFooterContainer.firstChild.firstChild};oboutGrid.prototype.getColumnsFooterCell=function(a){return this.getColumnsFooterTable().firstChild.firstChild.childNodes[a]};oboutGrid.prototype.getColumnsFooterCellSeparator=function(a){return this.GridColumnsFooterContainer.firstChild.childNodes[a+1]};oboutGrid.prototype.getExpandCollapseDetailsButtonForRow=function(b){for(var a=0;a<b.childNodes.length;a++)if(b.childNodes[a].className.indexOf("ob_gDGE")!=-1)return b.childNodes[a].firstChild.childNodes[1].firstChild};oboutGrid.prototype.getRowForExpandCollapseDetailsButton=function(a){return a.parentNode.parentNode.parentNode.parentNode};oboutGrid.prototype.getMasterRow=function(){return this.GridMainContainer.parentNode.parentNode.parentNode.parentNode.previousSibling};oboutGrid.prototype.isDetailGridContainerRow=function(a){return a.className==this.CSSDetailGridContainer};oboutGrid.prototype.recalculateCellSeparatorsPosition=function(){for(var a,c=0,b=0;b<this.ColumnsCollection.length;b++){if(this.ColumnsCollection[b].Visible)c+=this.ColumnsCollection[b].Width;if(this.GridHeaderContainer){a=this.getHeaderCellSeparator(b);if(a)a.style.left=c+this.ColumnsCollection[b].WidthUnit}a=this.getBodyCellSeparatorByCellIndex(b);if(a)a.style.left=c+this.ColumnsCollection[b].WidthUnit;if(this.ShowColumnsFooter){a=this.getColumnsFooterCellSeparator(b);if(a)a.style.left=c+this.ColumnsCollection[b].WidthUnit}if(this.AllowFiltering){a=this.getFilterCellSeparator(b);if(a)a.style.left=c+this.ColumnsCollection[b].WidthUnit}}};oboutGrid.prototype.convertFixedWidthToPercentage=function(b){var a=this.getBodyTable().offsetWidth;return parseInt(b*100/a)};oboutGrid.prototype.getColumnsFooterRowIndex=function(){return 1};oboutGrid.prototype.getColumnsFooterMainRow=function(){return this.GridFooterContainer.firstChild.firstChild.childNodes[this.getColumnsFooterRowIndex()]};oboutGrid.prototype.getColumnsFooterRow=function(){return this.GridFooterContainer.firstChild.firstChild.childNodes[this.getColumnsFooterRowIndex()].firstChild.firstChild.firstChild.firstChild.firstChild};oboutGrid.prototype.getFilterRowIndex=function(){return 2};oboutGrid.prototype.getFooterScrollerRowIndex=function(){return this.hasFooter()?3:0};oboutGrid.prototype.getFooterHorizontalScroller=function(){return this.GridFooterContainer.firstChild.firstChild.childNodes[this.getFooterScrollerRowIndex()].firstChild.firstChild.firstChild};oboutGrid.prototype.getFooterPagingRowIndex=function(){return 4};oboutGrid.prototype.getFooterPagingRow=function(){return this.GridFooterContainer.firstChild.firstChild.childNodes[this.getFooterPagingRowIndex()]};oboutGrid.prototype.getFooterPagingInnerRowContainer=function(){var a=this.getFooterPagingRow();return a.firstChild.firstChild.firstChild.firstChild.childNodes[1].firstChild.firstChild.firstChild};oboutGrid.prototype.getFirstColumnIndex=function(){return 0};oboutGrid.prototype.getFirstVisibleColumnIndex=function(){for(var a=0;a<this.ColumnsCollection.length;a++)if(this.ColumnsCollection[a].Visible)return a;return-1};oboutGrid.prototype.getHeaderTableLayoutRow=function(){return this.GridHeaderContainer.firstChild.firstChild.firstChild};oboutGrid.prototype.getBodyTableLayoutRow=function(){return this.GridBodyContainer.firstChild.firstChild.firstChild};oboutGrid.prototype.getHeader=function(){return this.GridHeaderContainer.firstChild.firstChild.childNodes[1]};oboutGrid.prototype.getGroupingAreaZone=function(){return this.GridGroupingAreaContainer.firstChild.firstChild.firstChild.childNodes[1]};oboutGrid.prototype.getGroupingAreaRow=function(){return this.getGroupingAreaZone().firstChild.firstChild.firstChild};oboutGrid.prototype.getBodyHeaderRowIndex=function(){return 2};oboutGrid.prototype.getBodyHeaderRow=function(){return this.GridHeaderContainer.firstChild.firstChild.childNodes[this.getBodyHeaderRowIndex()]};oboutGrid.prototype.getBodyIndex=function(){return 1};oboutGrid.prototype.getBody=function(){return this.GridBodyContainer.firstChild.childNodes[this.getBodyIndex()]};oboutGrid.prototype.getCellDataContainer=function(b){var a;if(b.childNodes[1]&&b.childNodes[1].nodeName=="SPAN")a=b.firstChild;else a=null;return a};oboutGrid.prototype.getCellTextContainer=function(a){var b;if(a.childNodes[1]&&a.childNodes[1].nodeName=="SPAN")b=a.childNodes[1].firstChild;else b=a.firstChild;return b};oboutGrid.prototype.getHeaderCellByIndex=function(a){return this.getHeader().childNodes[a]};oboutGrid.prototype.hasHeader=function(){return this.ShowHeader};oboutGrid.prototype.hasFooter=function(){return this.ShowFooter};oboutGrid.prototype.isRowEditTemplateRow=function(a){return a.firstChild&&a.firstChild.firstChild&&a.firstChild.firstChild.className==this.CSSRowEditTemplate?true:false};oboutGrid.prototype.getBodyContainerElementIndex=function(){return this.hasHeader()?this.AllowGrouping?3:2:0};oboutGrid.prototype.getFooterContainerElementIndex=function(){return this.getBodyContainerElementIndex()+1};oboutGrid.prototype.getHeaderRoundCornersContainer=function(){return this.GridBodyContainer.parentNode.firstChild};try{if(Sys)Sys.Application&&Sys.Application.notifyScriptLoaded()}catch(ex){};