function buildHeader () {

   var text="";

   text += '<TABLE  COLS=3 CELLPADDING="10" WIDTH="640" NOSAVE>';
   text += '<TR>';
      text += '<TD ALIGN="center" VALIGN="top" WIDTH="100">';
         text += '<IMG SRC="logo-Halcyon.gif" WIDTH="100" HEIGHT="132">';
      text += '</TD>';

      text += '<TD ALIGN="center" WIDTH="340">';
         text += '<H1>Halcyon PrimeAlert<FONT SIZE="4"><SUP>&#174</SUP></FONT><BR>';
         text += 'for Sun Application Server</B></H1><BR>';
         text += '<H2>Version 2.2.0</B></H2>';
      text += '</TD>';

      text += '<TD ALIGN="center" VALIGN="top" WIDTH="100">';
         text += '<IMG SRC="logo-PrimeAlert.gif" WIDTH="100" HEIGHT="132">';
      text += '</TD>';
   text += '</TR>';
   text += '</TABLE>';

   text += '<HR ALIGN=LEFT SIZE=4 NOSHADE WIDTH="640">';

   text += '<TABLE border="0" cellspacing="0" CELLPADDING="0" WIDTH="640"><BR>';
   text += '<TR>';
      text += '<TD VALIGN="top">';
         text += '<BLOCKQUOTE><B><FONT SIZE=+1>Contents</FONT></B></BLOCKQUOTE>';
         text += '<UL>';
            text += '<LI><A HREF="HALSunAppServerJMX-h.html">Overview</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-appserver-configuration-h.html">Application Server Configuration</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-loading-h.html">Module Loading</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-configuration-information-h.html">Configuration Information</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-server-instances-h.html">Server Instances</A></LI>';
            text += '<UL>';
               text += '<LI><A HREF="HALSunAppServerJMX-server-h.html">Server</A></LI>';
               text += '<UL>';
                  text += '<LI><A HREF="HALSunAppServerJMX-server-configuration-h.html">Server Configuration</A></LI>';
                  text += '<LI><A HREF="HALSunAppServerJMX-server-memory-h.html">JVM Memory</A></LI>';
                  text += '<LI><A HREF="HALSunAppServerJMX-ejb-h.html">Enterprise Java Beans</A></LI>';
                  text += '<UL>';
                      text += '<LI><A HREF="HALSunAppServerJMX-ejb-pools-h.html">EJB Pools</A></LI>';
                      text += '<LI><A HREF="HALSunAppServerJMX-ejb-cache-h.html">EJB Cache</A></LI>';
                  text += '</UL>';
                  text += '<LI><A HREF="HALSunAppServerJMX-jdbc-h.html">JDBC</A></LI>';
                  text += '<LI><A HREF="HALSunAppServerJMX-orbs-h.html">ORBs</A></LI>';
                  text += '<LI><A HREF="HALSunAppServerJMX-jts-h.html">Java Transaction Services</A></LI>';
                  text += '<LI><A HREF="HALSunAppServerJMX-http-h.html">HTTP</A></LI>';
                  text += '<UL>';
                      text += '<LI><A HREF="HALSunAppServerJMX-http-server-h.html">Server Traffic</A></LI>';
                      text += '<LI><A HREF="HALSunAppServerJMX-http-connections-h.html">Connections</A></LI>';
                      text += '<LI><A HREF="HALSunAppServerJMX-http-thread-pool-h.html">Thread Pool</A></LI>';
                  text += '</UL>';
                  text += '<LI><A HREF="HALSunAppServerJMX-ServerJVM-h.html">Server JVM</A></LI>';
                  text += '<UL>';
                      text += '<LI><A HREF="HALSunAppServerJMX-ServerJVM-Summary-h.html">Summary</A></LI>';
                      text += '<LI><A HREF="HALSunAppServerJMX-ServerJVM-Memory-h.html">Memory</A></LI>';
                      text += '<LI><A HREF="HALSunAppServerJMX-ServerJVM-GarbageCollection-h.html">Garbage Collection</A></LI>';
                      text += '<LI><A HREF="HALSunAppServerJMX-ServerJVM-Threads-h.html">Threading</A></LI>';
                  text += '</UL>';
                  text += '<LI><A HREF="HALSunAppServerJMX-server-process-h.html">Server Process</A></LI>';
                  text += '<LI><A HREF="HALSunAppServerJMX-server-logs-h.html">Server Log</A></LI>';
               text += '</UL>';
            text += '</UL>';
            text += '<LI><A HREF="HALSunAppServerJMX-DomainJVM-h.html">Domain JVM</A></LI>';
            text += '<UL>';
                text += '<LI><A HREF="HALSunAppServerJMX-DomainJVM-Summary-h.html">Summary</A></LI>';
                text += '<LI><A HREF="HALSunAppServerJMX-DomainJVM-Memory-h.html">Memory</A></LI>';
                text += '<LI><A HREF="HALSunAppServerJMX-DomainJVM-GarbageCollection-h.html">Garbage Collection</A></LI>';
                text += '<LI><A HREF="HALSunAppServerJMX-DomainJVM-Threads-h.html">Threading</A></LI>';
            text += '</UL>';
            text += '<LI><A HREF="HALSunAppServerJMX-processes-h.html">Processes</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-logs-h.html">Log</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-structure-h.html">Module Structure</A></LI>';
            text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html">Performance Reporting Manager</A></LI>';
            text += '<UL>';
               text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html#using">Using PRM</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html#gettingModuleInstance">Getting the <i>moduleInstance</i></A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html#gettingServerInstance">Getting the <i>serverInstance</i></A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html#PRMinst">PRM Instances - Module and Instance Strings</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html#ex1">Example 1</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-prm-h.html#ex2">Example 2</A></LI>';
            text += '</UL>';
            text += '<LI><A HREF="HALSunAppServerJMX-group-h.html">Group Operations</A></LI>';
            text += '<UL>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#using">Using Group Operations</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#gettingModuleInstance">Getting the <i>moduleInstance</i></A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#gettingServerInstance">Getting the <i>serverInstance</i></A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#GROUPinst">Module and Instance Strings for Group Operations</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#moduleType">Setting Up "Module" Type Tasks</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#ex1">Example 1</A></LI>';
               text += '<LI><A HREF="HALSunAppServerJMX-group-h.html#ex2">Example 2</A></LI>';
            text += '</UL>';
            text += '<LI><A HREF="README">README Documentation</A></LI>';
            text += '<UL>';
               text += '<LI><A HREF="README">README</A></LI>';
               text += '<LI><A HREF="README.install">README.install</A></LI>';
               text += '<LI><A HREF="ReleaseNotes">Release Notes</A></LI>';
               text += '<LI><A HREF="TroubleShooting">TroubleShooting</A></LI>';
            text += '</UL>';
         text += '</UL>';
      text += '</TD>';

      text += '<TD VALIGN="top">';
         text += '<IMG SRC="logo-HALSunAppServerJMX.gif">';
      text += '</TD>';
   text += '</TR>';
   text += '</TABLE>';

   text += '<HR ALIGN=LEFT SIZE=4 NOSHADE WIDTH="640">';



 
 var currentURL=location.href;
 var re = /.*\//;
 currentURL=currentURL.replace(re,"");

 var replaceString = "class=currentPage";

 var searchExp = new RegExp(); 
 searchExp.compile("HREF" + "\\s*=\\s*" + "\"\\s*" + currentURL + "\\s*\""  ,"i");

 text = text.replace(searchExp,replaceString);

 document.write(text);

}

