2 function oilsInitReports() {
3 oilsRpt = new oilsReport();
4 oilsRptDisplaySelector = $('oils_rpt_display_selector');
5 oilsRptFilterSelector = $('oils_rpt_filter_selector');
7 /* tell FF to capture mouse movements */
8 document.captureEvents(Event.MOUSEMOVE);
9 document.onmousemove = setMousePos;
12 fetchUser(cgi.param('ses'));
13 $('oils_rpt_user').appendChild(text(USER.usrname()));
14 oilsRptDebugEnabled = cgi.param('dbg');
18 hideMe($('oils_rpt_tree_loading'));
19 unHideMe($('oils_rpt_table'));
25 function oilsCleanupReports() {
26 if(oilsRptDebugWindow) oilsRptDebugWindow.close();
30 /* ---------------------------------------------------------------------
31 Define the report object
32 --------------------------------------------------------------------- */
33 function oilsReport() {
40 oilsReport.prototype.toString = function() {
41 return formatJSON(js2JSON(this));
44 oilsReport.prototype.toHTMLString = function() {
45 return formatJSONHTML(js2JSON(this));