    var sCol='#ffffff'; // Second hand color
    var mCol='#ffffff'; // Minute hand color
    var hCol='#ffffff'; // Hour hand color
    var radius=40;
    var hLength=parseInt(radius*3/5);
    var mLength=parseInt(radius*5/6);
    var sLength=parseInt(radius);
    var hWeight=4;
    var mWeight=4;
    var sWeight=2;

function clock()
{
    time = new Date ();
    secs = time.getSeconds();
    sec = -1.57 + Math.PI * secs/30;
    mins = time.getMinutes();
    min = -1.57 + Math.PI * mins/30;
    hrgmt = time.getUTCHours();
    nowTZ = time.getTimezoneOffset();
    summerTZ = new Date(time.getFullYear(), 7, 1).getTimezoneOffset();
    issummer = nowTZ === summerTZ ? 1 : 0;
    jg.clear();
    for (i = 0; i < 3; i++)
    {
    if (i == 0)
    {
      var Xpos=Xpos1;
      var Ypos=Ypos1;
      var dh=time1;
      var dtz = summer1 ? 1 : 0;
    }
    else if(i == 1)
    {
      var Xpos=Xpos2;
      var Ypos=Ypos2;
      var dh=time2;
      var dtz = summer2 ? 1 : 0;
    }
    else
    {
      var Xpos=Xpos3;
      var Ypos=Ypos3;
      var dh=time3;
      var dtz = summer3 ? 1 : 0;
    }
    hr = eval(hrgmt + dtz*issummer + eval(dh));
    if (hr < 0) {hr = 24 + hr}
    if (hr >= 24) {hr = hr - 24}
    hrs = -1.57 + Math.PI * hr/6 + Math.PI*parseInt(mins)/360;
    jg.setColor(hCol);
    jg.setStroke(hWeight);
    endx = Math.round(Xpos+hLength*Math.cos(hrs));
    endy = Math.round(Ypos+hLength*Math.sin(hrs));
    jg.drawLine(Xpos, Ypos, endx, endy);
    jg.setColor(mCol);
    jg.setStroke(mWeight);
    endx = Math.round(Xpos+mLength*Math.cos(min));
    endy = Math.round(Ypos+mLength*Math.sin(min));
    jg.drawLine(Xpos, Ypos, endx, endy);
    /*jg.setColor(sCol);
    jg.setStroke(sWeight);
    endx = Math.round(Xpos+sLength*Math.cos(sec));
    endy = Math.round(Ypos+sLength*Math.sin(sec));
    jg.drawLine(Xpos, Ypos, endx, endy);*/
    }
    jg.paint();
//    alert(Xpos + ':' + Ypos + ':' + endx + ':' + endy);
    
    setTimeout('clock()', 2000);
}

