// Get today's current date.
var now = new Date();

// Array list of days.
var days = new Array('Воскресенье','Понедельник','Вторник','Среда','Четверг','Пятница','Суббота');

// Array list of months.
var months = new Array('января','февраля','марта','апреля','мая','июня','июля','августа','сентября','октября','ноября','декабря');

// 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 = date + " " + months[now.getMonth()] + " " +
               " " +
                (fourdigits(now.getYear())) + " года";

// Print out the data.
document.write("" +today+ "");
