try{if(apex.spreadsheet==null||typeof (apex.spreadsheet)!="object"){apex.spreadsheet=new Object()}function ws_Spreadsheet(D){this.Spreadsheet=$x(D);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=A;this.CellInit=B;this.SpreadInit=C;this.control=function(G,E){var F=new apex.ajax.ondemand(G,function(){var H=p.readyState;if(H==1||H==2||H==3){}else{if(H==4){gReturn=p.responseText;$s("apexir_CONTROL_PANEL_DROP",gReturn);$x_Show("apexir_CONTROL_PANEL_DROP");if(E=="SHARING"){window.g_Shuttlep_v01=new dhtml_ShuttleObject("apexir_OTHERS_MAY_VIEW_LEFT","apexir_OTHERS_MAY_VIEW_RIGHT");window.g_Shuttlep_v02=dhtml_ShuttleObject("apexir_OTHERS_MAY_EDIT_LEFT","apexir_OTHERS_MAY_EDIT_RIGHT")}}else{return false}}});F.ajax.addParam("x01",E);F._get()};this.actions=function(E){var F=new apex.ajax.ondemand("websheet",function(){var G=p.readyState;if(G==1||G==2||G==3){}else{if(G==4){websheet_return(p)}else{return false}}});websheets_action(F,E)};this.cells={};this.cells.edit=function(F,E){gReport.controls.value=that.currentCell.innerHTML;that.currentCell.innerHTML="";gReport.controls.lov=true;E.onclick="";gReport.controls.lov_dom=E;gReport.controls.col_lov(F)};return ;function C(){var G=this.Spreadsheet.rows;this.numberRows=G.length;if(!!this.numberRows[0]){this.numberCells=G[0].cells.length;var F=[];var I=[];var E=G[0].getElementsByTagName("DIV");for(var H=0;H