function GetTime(offset) {
 var dt = new Date();
 var inputlocal = document.getElementsByName("inputlocal")[0];
 var inputmount = document.getElementsByName("inputmount")[0];
 var def = dt.getTimezoneOffset()/60;
 var gmt = (dt.getHours() + def);
 inputlocal.value = (IfZero(dt.getHours()) + ":" + IfZero(dt.getMinutes()) + ":" + IfZero(dt.getSeconds()));
 var ending = ":" + IfZero(dt.getMinutes()) + ":" +  IfZero(dt.getSeconds());
 var mount =check24(((gmt + (24+offset)) > 24) ? ((gmt + (24+offset)) - 24) : (gmt + (4+offset)));
 inputmount.value = (IfZero(mount) + ending);
 setTimeout("GetTime("+offset+")", 1000);
}

function IfZero(num) { return ((num <= 9) ? ("0" + num) : num); }
function check24(hour) { return (hour >= 24) ? hour - 24 : hour; }

