<!-- Script Language="JavaScript" -->
  // This function displays the time in the status line.
  // Invoke it once to activate the clock; it will call itself from then on.
  function todInfo()
    {
      var zTOD   = new Date();              // Month day, year hours:minutes:seconds.
      var zYEAR  = zTOD.getFullYear();      // Get current 4 digit year.
      var zHOUR  = zTOD.getHours();         // Extract hours: 0 to 23.
      var zMIN   = zTOD.getMinutes();       // Extract minutes: 0 to 59.
      var zSEC   = zTOD.getSeconds();       // Extract seconds: 0 to 59.
      var zMON   = zTOD.getMonth() + 1;     // Extract months: January to December.
      var zDAY   = zTOD.getDate();          // Extract days: 1 to 31.
      var zDOW   = zTOD.getDay();           // Extract day of week: 0 to 6.
      var zTODAY = -1;                      // Default weekday.
      var zAmPm  = (zHOUR >= 12)?"PM":"AM"; // Is it am or pm?
      
      // Pad leading zero's as necessary.
      if (zMON  < 10) zMON  = "0" + zMON;   // Convert m months to 0m months.
      if (zDAY  < 10) zDAY  = "0" + zDAY;   // Convert d days to 0d days.
      if (zHOUR < 10) zHOUR = "0" + zHOUR;  // Convert h hours to 0h hours.
      if (zMIN  < 10) zMIN  = "0" + zMIN;   // Convert m minutes to 0m minutes.
      if (zSEC  < 10) zSEC  = "0" + zSEC;   // Convert s seconds to 0s seconds.
      
      // Update the weekday value.
      if (zDOW  == 0) zTODAY = "Sunday";    // Convert 1 to Sunday.
      if (zDOW  == 1) zTODAY = "Monday";    // Convert 2 to Monday.
      if (zDOW  == 2) zTODAY = "Tuesday";   // Convert 3 to Tuesday.
      if (zDOW  == 3) zTODAY = "Wednesday"; // Convert 4 to Wednesday.
      if (zDOW  == 4) zTODAY = "Thursday";  // Convert 5 to Thursday.
      if (zDOW  == 5) zTODAY = "Friday";    // Convert 6 to Friday.
      if (zDOW  == 6) zTODAY = "Saturday";  // Convert 7 to Saturday.
      
      // Build the actual status line message text.
      var tTOD = zTODAY + ', ' + zMON + '/' + zDAY + '/' + zYEAR + ' ' + zHOUR + ':' + zMIN;
      
      // Display the status line message text.
      // defaultStatus = tTOD + substr(defaultStatus, 16)
      defaultStatus = tTOD;
      
      // Arrange to do it again in 10 seconds (10000 ms = 10 secs).
      setTimeout("todInfo()", 10000);
    }
<!-- /Script -->