<!-- Hide the script
//
// (C) 2000 Bill Stevenson
// This is a y2k compliant script which prints the system date to the screen,
// based on the date specified in the viewer's operating system
//
// You may use this script in your website provided that this notice remains at the top
//

var months=new Array(13);	// set up an array for string literal months
months[1]="Января";		// array starts at [1] rather than [0] for
months[2]="Февраля";		// familiar month numbering convention, could
months[3]="Марта";		// just as easily be [0..11] but that is less clear
months[4]="Апреля";
months[5]="Мая";
months[6]="Июня";
months[7]="Июля";
months[8]="Августа";
months[9]="Сентября";
months[10]="Октября";
months[11]="Ноября";
months[12]="Декабря";

var today=new Date();				// store date in today

var lmonth=months[today.getMonth() + 1];	// pull out month name
var date=today.getDate();			// pull out numerical date
var year=today.getFullYear();			// pull out numerical year
var daynum = today.getDay() + 1;		// pull out day number

if(daynum==1) day = "Воскресенье";		// match day name to day number
if(daynum==2) day = "Понедельник";
if(daynum==3) day = "Вторник";
if(daynum==4) day = "Среда";
if(daynum==5) day = "Четверг";
if(daynum==6) day = "Пятница";
if(daynum==7) day = "Суббота";

// make entire date into one variable, allows easy adjustment of format

// us format: var todaysdate= (day + ", " + date + " " + lmonth + " " + year);

var todaysdate= (day + ", " + date + " " + lmonth + " " + year);

// write date to screen

document.write(todaysdate);

// end hiding-->