function GetTime() { 
var dt = new Date();
var def = dt.getTimezoneOffset()/60;
var gmt = (dt.getHours() + def);
document.clock.local.value = (IfZero(dt.getHours()) + ":" + IfZero(dt.getMinutes()) + ":" + IfZero(dt.getSeconds()));
var ending = ":" + IfZero(dt.getMinutes()) + ":" +  IfZero(dt.getSeconds());

var isr =check24(gmt + 0);
document.clock.Israel.value = (IfZero(isr) + ending);

var mount =check24(gmt - 7);
document.clock.mount.value = (IfZero(mount) + ending);

var atl =check24(gmt - 4);
document.clock.atl.value = (IfZero(atl) + ending);

var italy =check24(gmt + 2);
document.clock.Italy.value = (IfZero(italy) + ending);

var Iraq =check24(gmt + 3);
document.clock.Iraq.value = (IfZero(Iraq) + ending);

setTimeout("GetTime()", 1000);
}

function IfZero(num) {
return ((num <= 9) ? ("0" + num) : num);
}
function check24(hour) {
return (hour >= 24) ? hour - 24 : hour;
}