// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');

// Array list of months.
var months = new Array('Jan','Feb','Mar','Aprl','May','June','July','Aug','Sept','Oct','Nov','Dec');

var randomnumber=Math.floor(Math.random()*11)

// Calculate the number of the current day in the week.
var date = (((now.getDate()<10) ? "0" : "")-randomnumber)+ now.getDate();

// Calculate four digit year.
function fourdigits(number)	{
	return (number < 1000) ? number + 1900 : number;
								}

// Join it all together
today =  
              months[now.getMonth()] + " " +
               date + ", " +
                (fourdigits(now.getYear())) ;

// Print out the data.
document.write(" " +today+ ".");
