function tagesdatum() {
    var now = new Date();
    var dayNames = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag");
    document.write(dayNames[now.getDay()] + ',');

    var tag = now.getDate();
    if (tag < 10) tag = '0' + tag;
    document.write('' + tag + '');
}
