// ***********************************************
// AUTHOR: WWW.CGISCRIPT.NET, LLC
// URL: http://www.cgiscript.net
// Use the script, just leave this message intact.
// Download your FREE CGI/Perl Scripts today!
// ( http://www.cgiscript.net/scripts.htm )
// ***********************************************
      var now = new Date();
      var days = new Array(
        'sunnuntai','maanantai','tiistai',
        'keskiviikko','torstai','perjantai','lauantai');
      
var months = new Array(
        '01','02','03','04','05',
        '06','07','08','09','10',
        '11','12');

      var date = ((now.getDate()<10) ? "0" : "")+ now.getDate();
        function fourdigits(number){
          return (number < 1000) ? number + 1900 : number;}

      today = days[now.getDay()] + " " +  date + "." + months[now.getMonth()]  + "." +(fourdigits(now.getYear()));
      document.write(today);
