window.setInterval(
	function(){
		var mil = new Date()
		var minutes = mil.getMinutes() 
		var hours = mil.getHours()
		var seconds = mil.getSeconds()
		var miltime = ""
		miltime += hours
		miltime += ((minutes < 10) ? ":0" : ":") + minutes
		miltime += ((seconds < 10) ? ":0" : ":") + seconds
		miltime += (hours >= 12) ? " " : " "
		document.getElementById('thistime').innerHTML=miltime;
	}, 50
);
function longMonthArray() {
	this[0] = "января";
	this[1] = "февраля";
	this[2] = "марта";
	this[3] = "апреля";
	this[4] = "мая";
	this[5] = "июня";
	this[6] = "июля";
	this[7] = "августа";
	this[8] = "сентября";
	this[9] = "октября";
	this[10] = "ноября";
	this[11] = "декабря";
  return (this);
}
function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}
window.setInterval(
function ()
{
   longMonths = new longMonthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
	 year = d.getYear();
   str = day + " " + longMonths[month] + " "+getLongYear(year);
   document.getElementById('thisdate').innerHTML=str;
  }, 50
);
/*function writeDate()
{
   writeDateLong(0);
}*/
