function drawHand(dc, angle, length, width)
{
// Map out the coordinates of the watch hand
var coords = [ [-(width/2),0], [-(width/2), -length], [width/2, -length], [width/2, 0] ];
var result = new [4];
var centerX = 74;
var centerY = 74;
var cos = Math.cos(angle);
var sin = Math.sin(angle);
// Transform the coordinates
for (var i = 0; i < 4; i += 1)
{
var x = (coords[0] * cos) - (coords[1] * sin);
var y = (coords[0] * sin) + (coords[1] * cos);
result= [ centerX+x, centerY+y];
}
// Draw the polygon
dc.fillPolygon(result);
dc.fillPolygon(result);
}[/CODE]