// JavaScript Document
var now = new Date();

// Array list of days.
var days = new Array('AHAD','ISNIN','SELASA','RABU','KHAMIS','JUMAAT','SABTU');

// Array list of months.
var months = new Array('JANUARI','FEBRUARI','MAC','APRIL','MEI','JUN','JULAI','OGOS','SEPTEMBER','OKTOBER','NOVEMBER','DISEMBER');

// Calculate the number of the current day in the week.
var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
today =  days[now.getDay()];
todays = date + " " + 
			     months[now.getMonth()] + " " +
               
                (fourdigits(now.getYear())) ;
