function showZeroFilled(inValue) {
if (inValue > 9) {
return "" + inValue;
}
return "0" + inValue;
}

function showTheTime(gmt) {
g1 = gmt;
now = new Date();
g = now.getUTCHours() + gmt;
if (g > 24) {
  g = g - 24;
}
else if (g < 0) {
  g = g + 24;
}
if (document.layers) {
document.layers.clock.document.write(g + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds()));
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = g + ":" + showZeroFilled(now.getMinutes()) + ":" + showZeroFilled(now.getSeconds());
}
setTimeout("showTheTime(g1)",1000);
}


