js_trace.js 1.4 KB

12345678910111213141516171819
  1. /********************************************************************************************************************************
  2. * Licensed Materials - Property of IBM *
  3. * *
  4. * IBM Cognos Products: AGS *
  5. * *
  6. * (C) Copyright IBM Corp. 2005, 2008 *
  7. * *
  8. * US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. *
  9. *********************************************************************************************************************************/
  10. function trace(msg) {
  11. var w = window.open("", "_trace_window_");
  12. w.document.writeln("<hr/>");
  13. w.document.writeln("<b>");
  14. w.document.writeln((new Date()).toString());
  15. w.document.writeln("</b>");
  16. w.document.writeln("<br/><pre>" + msg + "</pre>");
  17. }