function MakeArray(n) {
	this.length = n
	return this
}
monthNames = new MakeArray(12)
monthNames[1] = "січня"
monthNames[2] = "лютого"
monthNames[3] = "березня"
monthNames[4] = "квітня"
monthNames[5] = "травня"
monthNames[6] = "червня"
monthNames[7] = "липня"
monthNames[8] = "серпня"
monthNames[9] = "вересня"
monthNames[10] = "жовтня"
monthNames[11] = "листопада"
monthNames[12] = "груденя"
dayNames = new MakeArray(7)
dayNames[1] = "неділя"
dayNames[2] = "понеділок"
dayNames[3] = "вівторок"
dayNames[4] = "середа"
dayNames[5] = "четвер"
dayNames[6] = "п'ятниця"
dayNames[7] = "субота"

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 + "  року"
}

function showFilled(Value) {
  return (Value > 9) ? "" + Value : "0" + Value;
}
function StartClock24() {
  TheTime = new Date;
  document.clock.showTime.value = showFilled(TheTime.getHours()) + ":" + showFilled(TheTime.getMinutes()) + ":" + showFilled(TheTime.getSeconds());
  setTimeout("StartClock24()",1000)
}