// JavaScript Document
		
function tanggalan() {
   var now = new Date();
   // time
   hours = now.getHours();
   minutes = now.getMinutes();
   seconds = now.getSeconds();
   // date
   date = now.getDate();
   month = now.getMonth();
   year = now.getFullYear();
   switch (month) {
      case 0 :
                month = 'Januari';
                  break;
          case 1 :
                month = 'Februari';
            break;
          case 2 :
                month = 'Maret';
                  break;
          case 3 :
                month = 'April';
                break;
          case 4 :
                month = 'Mei';
                break;
          case 5 :
                month = 'Juni';
                break;
          case 6 :
                month = 'Juli';
                break;
          case 7 :
                month = 'Agustus';
                break;
          case 8 :
                month = 'September';
                break;
          case 9 :
                month = 'Oktober';
                break;
          case 10 :
                month = 'November';
                break;
      case 11 :
                month = 'Desember';
                break;
   }

   minutes = (minutes < 10) ? "0" + minutes : minutes;
   seconds = (seconds < 10) ? "0" + seconds : seconds;

   tanggalStr = " " + date + " " + month + " " + year + ",&nbsp;&nbsp;";

   if (hours >= 12 && hours < 24) {
       hours = (hours%12) ? hours%12 : 12;
       jamStr = " " + hours + ":" + minutes + ":" + seconds + " PM ";
   } else {
       hours = (hours) ? hours : 12;
       jamStr = " " + hours + ":" + minutes + ":" + seconds + " AM ";
   }
   var t1 = document.getElementById ('tanggal1');
   var j1 = document.getElementById ('jam1');
   t1.innerHTML = tanggalStr;
   j1.innerHTML = jamStr;

   window.setTimeout("tanggalan()",1000);
}