    speed=1000;
    len=20;
    tid = 0;
    num=0;
    clockA = new Array();
    offsetA = new Array();
    dd = new Date();

    function doDate(x)
    {
      for (i=0;i<num;i++) {
        dt = new Date();

        if (offsetA[i] != 0) {
          gt = dt.getTime();
          gt = gt + offsetA[i];
          dt.setTime(gt);
          }
        //clockA[i].date.value = dt.toGMTString();
	    clockA[i].date.value = dt.getUTCHours() +":"+dt.getUTCMinutes() +":"+dt.getUTCSeconds();
        }

      tid=window.setTimeout("doDate()",speed);
    }

    function startLong(diff) {
      clockA[num] = document.forms["form"+num];
      offsetA[num] = (diff)*60*1000;
      if (num == 0)  
        tid=window.setTimeout("doDate()",speed);
      num++;
    }

    function cleartid() {
      window.clearTimeout(tid);
    }
     
    function Clock()
    {
      document.write('<FORM name=form'+num+'><input style="text-align:center" width="100%" class=time name=date size=')
      document.write(len)
      document.write(' value="Clock: Requires Javascript"></FORM>')
      start();
    }
     
    function ServerClock(diff)
    {
      document.write('<FORM name=form'+num+' id="form5"><input style="text-align:center" width="100%" class=time name=date size=')
      document.write(10);
      document.write(' value="Clock: Javascript"></FORM>')
      startLong(diff);
    }
// end-->
