/* This script and many more are available free online at
The JavaScript Source :: http://javascript.internet.com
Created by: Sandeep Gangadharan :: http://www.sivamdesign.com/scripts/ */

function formatTime() {
  now  = new Date();
  hour = now.getHours();
  min  = now.getMinutes();
  sec  = now.getSeconds();
  gg   = now.getDate();
  mm   = now.getMonth() + 1;
  aaaa = now.getFullYear();
    if (min <= 9) {
      min = "0" + min; }
    if (sec <= 9) {
      sec = "0" + sec; }
    if (hour < 10) {
      hour = "0" + hour; }
    document.clock.sivam.value = gg + "/" + mm + "/" + aaaa + " " + hour + ':' + min + ':' + sec;
    setTimeout("formatTime()", 1000);
}
window.onload=formatTime;

