cDate = Class.create();
cDate.prototype = {
	initialize: function( aDays, aMonths ) {
		this.aDays = aDays;
		this.aMonths = aMonths;
		
		this.calcNow();
	},
	
	calcNow: function() {
		var dt = new Date();
		this.innerHTML = this.aDays[ dt.getDay() ] + " " + dt.getDate() + " " + this.aMonths[ dt.getMonth() ] + " " + dt.getFullYear()
		setTimeout( "document.getElementById( '" + this.id + "' ).calcNow()", 10000 );
	}	
	
}

cTime = Class.create();
cTime.prototype = {
	initialize: function() {
		this.calcNow();
	},
	
	calcNow: function() {
		var dt = new Date();
		this.innerHTML = dt.getHours() + ":" + dt.getMinutes() + ":" + dt.getSeconds();
		setTimeout( "document.getElementById( '" + this.id + "' ).calcNow()", 1000 );
	}	
	
}


