<!-- Copyright 2003, Sandeep Gangadharan -->
<!-- For more free scripts go to http://sivamdesign.com/scripts/ -->
<!--

function sivamtime() {
    var now;
    var yr;
    var giorno;

      now = new Date();

    Today = new Date();

    yr = now.getFullYear(); 

    mese = now.getMonth()+1;
    mese = ((mese<=9) ? "0" + mese : mese)

    giorno = now.getDate(); 
    giorno = ((giorno<=9) ? "0" + giorno : giorno)

      hour = now.getHours();
    if (hour>12) { hour=hour-12; add="pm"; }
    else { hour=hour; add="am"; }
    if (hour==12) { add="pm"; }
    hour = ((hour<=9) ? "0" + hour : hour)

      min = now.getMinutes();
     min = ((min<=9) ? "0" + min : min)

     sec = now.getSeconds();
     sec = ((sec<=9) ? "0" + sec : sec)

    var obj = document.getElementById('time_field');
    if (obj != null)
        obj.value = giorno + "/" + mese + "/" + yr + " - " + hour + ":" + min + ":" + sec + " " + add;

    setTimeout("sivamtime()", 1000);
}

window.onload = sivamtime;

