// JavaScript Document

<!--
function paivanmaara() {
  calendar = new Date();
  day = calendar.getDay();
  month = calendar.getMonth();
  date = calendar.getDate();
  year = calendar.getYear();
  if (year < 1000)
  year+=1900
  cent = parseInt(year/100);
  g = year % 19;
  k = parseInt((cent - 17)/25);
  i = (cent - parseInt(cent/4) - parseInt((cent - k)/3) + 19*g + 15) % 30;
  i = i - parseInt(i/28)*(1 - parseInt(i/28)*parseInt(29/(i+1))*parseInt((21-g)/11));
  j = (year + parseInt(year/4) + i + 2 - cent + parseInt(cent/4)) % 7;
  l = i - j;
  emonth = 3 + parseInt((l + 40)/44);
  edate = l + 28 - 31*parseInt((emonth/4));
  emonth--;
  var dayname = new Array ("Sunnuntai", "Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai");
  var monthname = new Array ("tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukukuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta");

  document.write(dayname[day] + ", " + date + ". " + monthname[month] + " " + year);

  if ((month == 0)  && (date == 1))  document.write(", " + "Uudenvuoden päivä");
  if ((month == 0)  && (date == 6))  document.write(", " + "Loppiainen");
  if ((month == 0)  && (date == 27))  document.write(", " + "Vainojen uhrien muistopäivä");
  if ((month == 1)  && (date == 5))  document.write(", " + "Runebergin päivä");
  if ((month == 1)  && (date == 11))  document.write(", " + "Kansallinen hätäkeskuspäivä");
  if ((month == 1)  && (date == 14)) document.write(", " + "Ystävän päivä");
  if ((month == 1)  && (date == 28)) document.write(", " + "Kalevalan päivä");
  if ((month == 2)  && (date == 8)) document.write(", " + "Kansainvälinen naisten päivä");
  if ((month == 3)  && (date == 9))  document.write(", " + "Mikael Agricolan päivä");
  if ((month == 3)  && (date == 27)) document.write(", " + "Kansallinen veteraanipäivä");
  if ((month == 3)  && (date == 28)) document.write(", " + "Tekijänoikeuspäivä");
  if ((month == 3)  && (date == 30)) document.write(", " + "Vappuaatto");
  if ((month == 4)  && (date == 1))  document.write(", " + "Vappupäivä");
  if ((month == 4)  && (date == 4))  document.write(", " + "Kirjan ja ruusun päivä");
  if ((month == 4)  && (date == 9))  document.write(", " + "Eurooppa-päivä");
  if ((month == 4)  && (date == 12)) document.write(", " + "J.V. Snellmanin päivä");
  if ((month == 4)  && (date == 18)) document.write(", " + "Kansainvälinen museopäivä");
  if ((month == 4)  && (date == 25)) document.write(", " + "Kansainvälinen pyyhepäivä");
  if ((month == 4)  && (date == 28)) document.write(", " + "Kansainvälinen naapuripäivä");
  if ((month == 4)  && (date == 31)) document.write(", " + "Kansainvälinen tupakaton päivä");
  if ((month == 5)  && (date == 4))  document.write(", " + "Puolustusvoimain lippujuhlan päivä");
  if ((month == 5)  && (date == 5))  document.write(", " + "Maailman ympäristöpäivä");
  if ((month == 6)  && (date == 6))  document.write(", " + "Eino Leinon päivä");
  if ((month == 6)  && (date == 9))  document.write(", " + "Suomen merivoimien vuosipäivä");
  if ((month == 8) && (date == 19)) document.write(", " + "Kansainvälinen Ihmisarvon päivä");
  if ((month == 8) && (date == 21)) document.write(", " + "Kansainvälinen rauhanpäivä");
  if ((month == 8) && (date == 22)) document.write(", " + "Autoton päivä");
  if ((month == 8) && (date == 26)) document.write(", " + "Autoton päivä");
  if ((month == 9)  && (date == 1)) document.write(", " + "Maailman vegaanipäivä");
  if ((month == 9)  && (date == 10)) document.write(", " + "Aleksis Kiven päivä");
  if ((month == 9)  && (date == 17)) document.write(", " + "Kansainvälinen ylioppilaidenpäivä");
  if ((month == 9)  && (date == 24)) document.write(", " + "Yhdistyneiden kansakuntien päivä");
  if ((month == 10) && (date == 6))  document.write(", " + "Ruotsalaisuuden päivä");
  if ((month == 10) && (date == 20)) document.write(", " + "Lapsen oikeuksien päivä");
  if ((month == 11) && (date == 6))  document.write(", " + "Itsenäisyyspäivä");
  if ((month == 11) && (date == 13)) document.write(", " + "Lucian päivä");
  if ((month == 11) && (date == 24)) document.write(", " + "Jouluaatto");
  if ((month == 11) && (date == 25)) document.write(", " + "Joulupäivä");
  if ((month == 11) && (date == 26)) document.write(", " + "Tapaninpäivä");
  if ((month == 11) && (date == 31)) document.write(", " + "Uudenvuoden aatto"); 
}
//-->
