// SCRLTME2.JS
// Scrolls the time in the staus line to the Right and updates it!
//
// This code can NOT be made into a function for some reason.

  now = new Date();
  localtime = now.toString();
  utctime = now.toGMTString();
  var msg = "Time: " + localtime;
  var spacer = "...        ...";
  var pos = msg.length;
  function ScrollMessage() {
     window.status = msg.substring(pos, msg.length) + spacer + msg.substring(0, pos);
     pos--;
     if(pos == 0) {
        pos = msg.length;
        //-----------------------------------------------------
        // This updates the time in the scrolling message bar!
        //-----------------------------------------------------
        now = new Date();
        localtime = now.toString();
        msg = "Time: " + localtime;
        //-----------------------------------------------------
     }
     window.setTimeout("ScrollMessage()", 200);
  }
  ScrollMessage();

