 document.write ('<span id="time" class="clock">.</span>');
 
 function getNow() {
    var jetzt = new Date();
    var strTime = Format(jetzt.getDate()) + '.' + 
                                  Format(jetzt.getMonth()+1) + '.' + 
                                  jetzt.getYear() + ' '+ 
                                  Format(jetzt.getHours()) + ':' + 
                                  Format(jetzt.getMinutes()) + ':' + 
                                  Format(jetzt.getSeconds());
    
    document.getElementById("time").firstChild.data=strTime;
    
    window.setTimeout("getNow()",500);                                    
 }
 function Format(zahl) {
    t= '00'+zahl;
    p = t.length;
    return t.substr(p-2,2);
 }
 getNow();

