
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// =================================================================
// Deutsche nachbearbeitung @ F0rris
//
// Ich habe das Script noch etwas umgebaut und geändert so das es
// das datum im Deutschen Style anzeigt
// =================================================================

// Acceptable TheFontStyle values are (exactly!):
//     plain
//     bold
//     italic
//     bolditalic

var TheFontFace  = "Arial";
var TheFontColor = "#ffffff";
var TheFontSize  = "1";
var TheFontStyle = "bold";


var TheSeparator = ".";



var ShowDay ="yes";


var Days = new Array("Sonntag","Montag","Dienstag","Mitwoch","Donnerstag","Freitag","Samstag");
var TheDate = new Date();

var TheWeekDay = TheDate.getDay();
var Day ="";
if (ShowDay == "yes"){
    Day = Days[TheWeekDay];
    Day += " ";}

var TheMonth = TheDate.getMonth() + 1;
if (TheMonth < 10) TheMonth = "0" + TheMonth;

var TheMonthDay = TheDate.getDate();
if (TheMonthDay < 10) TheMonthDay = "0" + TheMonthDay;

var TheYear = TheDate.getYear();
if (TheYear < 1000) TheYear += 1900;

var FontTagLeft  = "";
var FontTagRight = "";

if (TheFontStyle == "bold"){
    FontTagLeft = "<b>";
    FontTagRight ="</b>";}

if (TheFontStyle == "italic"){
    FontTagLeft = "<i>";
    FontTagRight ="</i>";}

if (TheFontStyle == "bolditalic"){
    FontTagLeft = "<b><i>";
    FontTagRight = "</i></b>";}

var D = "";
D += "<font color='"+TheFontColor+"' face='"+TheFontFace+"' size='"+TheFontSize+"'>";
D += FontTagLeft+Day+TheMonthDay+TheSeparator+TheMonth+TheSeparator+TheYear+FontTagRight;
D += "</font>";

document.write(D);