function setTime(oDestination) {
	var oDate = new Date();
		var sHours = oDate.getHours();
		if ( sHours < 10 ) { sHours = '0' + sHours; }
		var sMinute = oDate.getMinutes();
		if ( sMinute < 10 ) { sMinute = '0' + sMinute; }
		var sSecond = oDate.getSeconds();
		if ( sSecond < 10 ) { sSecond = '0' + sSecond; }
	if ( oDestination ) { this.oDestinationTime = oDestination; }
	if ( this.oDestinationTime ) {
		this.oDestinationTime.innerHTML = sHours+':'+sMinute+':'+sSecond;
	}
	setTimeout('oTime.xTime()', 1000);
}//setTime

function setDate(oDestination) {
	var oDate = new Date();
	var sDay = oDate.getDate();
	if ( sDay < 10 ) { sDay = '0' + sDay; }
	var sMonth = oDate.getMonth()+1;
	if ( sMonth < 10 ) { sMonth = '0' + sMonth; }
	var sYear = oDate.getYear();
	if ( sYear < 999 ) { sYear += 1900; }
		var iWeekDay = oDate.getDay();
	if ( oDestination ) {
		oDestination.innerHTML = this.aWeekDay[iWeekDay] + ', ' + 
		sDay + '.' + sMonth + '.' + sYear;
	}
}//setDate

function de() {
	this.aWeekDay.push("Sonntag");
	this.aWeekDay.push("Montag");
	this.aWeekDay.push("Dienstag");
	this.aWeekDay.push("Mittwoch");
	this.aWeekDay.push("Donnerstag");
	this.aWeekDay.push("Freitag");
	this.aWeekDay.push("Samstag");
}//de

function ClassTime() {
	this.aWeekDay = new Array();
	this.oDestinationTime;
	this.xTime = setTime;
	this.xDate = setDate;
	this.xde = de;
}//ClassTime

