
var container1, container2;

function init() {
	container1 = document.getElementById("time_front");
	container2 = document.getElementById("time_shadow");

      dateUpdate();
      var activ = window.setInterval("dateUpdate()", 1000);
}

function dateUpdate() {
      var now = new Date();

      var datestring = ((now.getDate()< 10) ? "0" : "") + now.getDate();
      datestring += "." + ((now.getMonth() < 9) ? "0" : "" ) + (now.getMonth() + 1);
      datestring += "." + now.getFullYear();
      datestring += " - " + ((now.getHours() < 10) ? "0" : "") + now.getHours();
      datestring += ":" + ((now.getMinutes() < 10) ? "0" : "") + now.getMinutes();
      datestring += ":" + ((now.getSeconds() < 10) ? "0" : "") + now.getSeconds();

	container1.innerHTML = datestring;
	container2.innerHTML = datestring;
}



//window.onload = init;