var timeStr, dateStr, Timer;
function clock() {
        now = new Date();

        // время
        hours = now.getHours();
        minutes = now.getMinutes();
        seconds = now.getSeconds();
        timeStr = "" + hours;
        timeStr += ((minutes < 10) ? ":0" : ":") + minutes;
        timeStr += ((seconds < 10) ? ":0" : ":") + seconds;
		document.write(timeStr + "<br />");

        // дата
        date= now.getDate();
        month= now.getMonth()+1;
        year= now.getYear()-100;
        dateStr= "" + ((date<10) ? "0" : "") + date;
        dateStr+= ((month<10) ? "\.0" : "\.") + month;
        dateStr+= "\." + ((year<10) ? "0" : "") + year;
		document.write(dateStr);

//        Timer = setTimeout("clock()",1000);
}
