
function formatTime() {
  now = new Date();
  hour = now.getHours();
  min = now.getMinutes();
  sec = now.getSeconds();

    if (min <= 9) {
      min = "0" + min; }
    if (sec <= 9) {
      sec = "0" + sec; }
    if (hour < 10) {
      hour = "0" + hour; }
	  
    document.clock.sivam.value = hour + ':' + min + ':' + sec+ ' Local ';
  

  setTimeout("formatTime()", 1000);
}

function formatTimeZ() {

  now = new Date();
  hour = now.getUTCHours();
  min = now.getUTCMinutes();
  sec = now.getUTCSeconds();

    if (min <= 9) {
      min = "0" + min; }
    if (sec <= 9) {
      sec = "0" + sec; }
    if (hour < 10) {
      hour = "0" + hour; }
	  
    document.clock.sivam1.value = hour + ':' + min + ':' + sec + ' Zulu  ';
  

  setTimeout("formatTimeZ()", 1000);
}
function start() {
  formatTime();
  formatTimeZ();
}

window.onload = start;


