function formatTime() {
  now = new Date();
  hour = now.getHours();  
  min = now.getMinutes();
  sec = now.getSeconds();
  day= now.getDate();
  month=now.getMonth();
  year=now.getFullYear();
  monthName=new Array("January","February","March","April","May","June","July","August","September","October","Novermber","December")
  if (true) {
    if (min <= 9) {
      min = "0" + min;
    }
    if (sec <= 9) {
      sec = "0" + sec;
    }
    if (hour > 12) {
      hour = hour - 12;
      add = " p.m.";
    } else {
      hour = hour;
      add = " a.m.";
    }
    if (hour == 12) {
      add = " p.m.";
    }
    if (hour == 00) {
      hour = "12";
    }
	
	dateTime=monthName[month] + " " + day + "," + year +"<br />"+((hour<=9) ? "0" + hour : hour) + ":" + min + ":" + sec + add;
	$("#daTime").html(dateTime);
//    document.clock.sivam.value = ((hour<=9) ? "0" + hour : hour) + ":" + min + ":" + sec + add;
  }

  setTimeout("formatTime()", 1000);
}