/**
 ******************************************************************************
 *
 * Confidential Property of Documentum, Inc.
 * (c) Copyright Documentum, Inc. 2001.
 * All Rights reserved.
 * May not be used without prior written agreement
 * signed by a Documentum corporate officer.
 *
 ******************************************************************************
 *
 * Project        WDK Forms
 * File           trace.js
 * Description    Client Side Tracing
 * Created on     22 May 2001
 * Tab width      3
 *
 ******************************************************************************
 *
 * PVCS Maintained Data
 *
 * Revision       $Revision: 2$ 
 * Modified on    $Date: 5/14/03 4:35:32 PM$
 *
 * Log at EOF
 * 
 ******************************************************************************
 */


/** The Trace Window */
var g_traceWindow = null;


function Trace_println(strMessage)
{
   if (g_traceWindow == null || g_traceWindow.closed == true)
   {
      var isIE = document.all ? true : false;
      var xpos = (isIE ? window.screenLeft : window.screenX) - 50;
      xpos = xpos > 0 ? xpos : 0;
      g_traceWindow = window.open("","trace", "left=" + xpos
         + ",height=480,width=550,status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=yes");
   }
   g_traceWindow.document.write("<span style='white-space : nowrap;'>" + strMessage + "</span><br>");
   g_traceWindow.scrollBy(0, 100);

} // Trace_println

