// JavaScript Document

//---> Date
<!-- Hide from browsers that do not understand Javascript 
	function MakeArray(n) {
	this.length = n
	return this
	}
	monthNames = new MakeArray(12)
	monthNames[1] = "Januari"
	monthNames[2] = "Februari"
	monthNames[3] = "Maret"
	monthNames[4] = "April"
	monthNames[5] = "Mei"
	monthNames[6] = "Juni"
	monthNames[7] = "Juli"
	monthNames[8] = "Agustus"
	monthNames[9] = "September"
	monthNames[10] = "Oktober"
	monthNames[11] = "November"
	monthNames[12] = "Desember"
	dayNames = new MakeArray(7)
	dayNames[1] = "Minggu"
	dayNames[2] = "Senin"
	dayNames[3] = "Selasa"
	dayNames[4] = "Rabu"
	dayNames[5] = "Kamis"
	dayNames[6] = "Jumat"
	dayNames[7] = "Sabtu"
	
	function customDateString() {
		currentDate = new Date()
		var theDay = dayNames[currentDate.getDay() + 1]
		var theMonth = monthNames[currentDate.getMonth() + 1]
		msie4 = ((navigator.appName == "Microsoft Internet Explorer") &&
		(parseInt(navigator.appVersion) >= 4 ));
		if (msie4) {
			var theYear = currentDate.getYear() 
		}
		else {
			var theYear = currentDate.getYear() + 1900
			}
			return theDay + ", " + currentDate.getDate() + " " + theMonth + " " + theYear

			} 
					
	document.write(customDateString())
	

//---> time
function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function funClock() {
if (!document.layers && !document.all)
return;
var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();
var dn = "";
if (hours >= 24) {
dn = "";
hours = hours - 24;
}
if (hours == 0) {
hours = 24;
}
if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}
movingtime = "<b>"+ hours + ":" + minutes + ":" + seconds + " " + dn + "</b>";
if (document.layers) {
document.layers.clock.document.write(movingtime);
document.layers.clock.document.close();
}
else if (document.all) {
clock.innerHTML = movingtime;
}
setTimeout("funClock()", 1000)
}
window.onload = funClock;
// End -->

