try{ if (apex.spreadsheet==null || typeof(apex.spreadsheet)!="object"){apex.spreadsheet = new Object()} function ws_Spreadsheet (pThis){ this.Spreadsheet = $x(pThis) this.numberRows = false; this.numberCells = false; this.currentRow = false; this.classArray = false; this.currentCell = false; this.currentForm = false; this.currentCol = false; this.currentColType = false; /**/ this.Reset = Reset; this.CellInit = CellInit; this.SpreadInit = SpreadInit; this.cells = {} this.cells.edit = function(pThis,pThat){ that.currentCell.innerHTML = ''; gReport.controls.lov = true; pThat.onclick='' gReport.controls.lov_dom = pThat; gReport.controls.col_lov(pThis); } return; function SpreadInit(){ var lRows = this.Spreadsheet.rows; this.numberRows = lRows.length; if(!!this.numberRows[0]){ this.numberCells = lRows[0].cells.length; var EditableCol = []; var EditableColN = []; var lDivs = lRows[0].getElementsByTagName('DIV'); for (var i = 0;i