  //*************************************************************************//
  //  ModuleName  : gDebugWnd.js                                             //
  //                                                                         //
  //  Last Update : 2004_05_19 by tews                                       //
  //*************************************************************************//
  //  History                                                                //
  //      2004_05_19  : ÇÑ±Û ÄÚµå ¹× Euc-kr ÄÚµå »èÁ¦                        //
  //*************************************************************************//

  var goDebugWnd ;
  var gsRestoreHtml ="" ;
  var gsHtmlHeader =  "  <head>                                                                     "  + "\n" +
                      "    <meta http-equiv=\"Content-Type\" content=\"text/html;\">                "  + "\n" +
                      "    <title> [ Debug Window ]  -------------  </title>                        "  + "\n" +
                      "    <style TYPE=\"text/css\">                                                "  + "\n" +
                      "      td { color: #3d3d3d; font-family: arial; font-size: 9pt;}               "  + "\n" +
                      "      table { background-color: #f6f6f6; font-family: arial; font-size: 9pt;} "  + "\n" +
                      "    </style>                                                                 "  + "\n" +
                      "  </head>                                                                    "  + "\n" +
                      "  <body id=\"DebugWndBody\" style=\"position:absolute;\">                    "  + "\n" +
  /*
                      "  <div id=\"oWatch\" style=\"postion:absolute; left:0; top:0; height:100;\"> "  + "\n" +
                      "    <input id=\"oVar\" type=\"text\" value=\"\">                             "  + "\n" +
                      "    <input id=\"oGoWatch\" type=\"button\" value=\"Watch\" onclick=\"oValue.value = oVar.Value\" ><br>   "  + "\n" +
                      "    <input id=\"oValue\" type=\"text\" value=\"\">                           "  + "\n" +
                      "  </div>                                                                     "  + "\n" +
  */
                      "    <table id=\"DebugInfoTable\" border=\"1\" style=\"postion:absolute; left:0; top:0;\" >                                   "  + "\n" +
                      "     <tr><td align=\"center\" width=\"150\"><b>Function</b></td><td align=\"center\" width=\"400\"><b>Message</b></td></tr>  "  + "\n" ; 
  var gsHtmlFooter =  "    </table>                                                                 "  + "\n" +
                      "  </body>                                                                    "  ;
  function OpenDebugWnd ( arg_url, arg_left, arg_top, arg_width, arg_height ) {
    goDebugWnd = window.open( arg_url,'Test','left=' + arg_left + ', top=' + arg_top + ' ' + 'width=' + arg_width + ', height=' + arg_height  + ', toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes');
    goDebugWnd.document.write( gsHtmlHeader  + gsHtmlFooter );
    goDebugWnd.focus();
    goDebugWnd.Ref ;
    goDebugWnd.AddDebugInfo = AddDebugInfo ;
    return goDebugWnd ;
  }
  function AddDebugInfo( arg_FuncName ,arg_Msg ) {
    gsRestoreHtml += "       <tr><td align=\"right\" >" + arg_FuncName + "</td><td>"  +  arg_Msg + "</td></tr>" + "\n"  ;
    goDebugWnd.DebugWndBody.innerHTML = gsHtmlHeader  +
                                        gsRestoreHtml +
                                        gsHtmlFooter  ;
    goDebugWnd.DebugWndBody.scrollTop = goDebugWnd.DebugWndBody.scrollHeight ;
      
  }

  function ObjInfo( arg_Obj ) {
    var tmpHtml ;
    tmpHtml = "<table>" + "\n" + 
              "  <tr><td colsapn=\"2\"><b>" + arg_Obj.id + "</b></td><tr>" ;
    for ( var Property in arg_Obj ) {
      tmpHtml += "<tr><td>" + Property + "</td><td>" + arg_Obj[Property] + "</td></tr>" ;
    }
    tmpHtml += "</table>";
    AddDebugInfo( "func ObjInfo(" + arg_Obj.id + ")"  , tmpHtml ) ;
  }    

