﻿var wdate = "", wtime = "", yy = "", mt = "", dd = "", mm = "", ss = "";

function scr_time() {

wtime = "";
actual = new Date();
yy = actual.getFullYear().toString();
mt = actual.getMonth() + 1;
dd = actual.getDate().toString();
mt = mt.toString();

wdate = dd + ".";
if (mt.length == 1) wdate += "0";
wdate += mt + ".";
wdate += yy;

hh = actual.getHours().toString();
mm = actual.getMinutes().toString();
ss = actual.getSeconds().toString();

if (hh.length == 1) wtime += " ";
wtime += hh + ":";
if (mm.length == 1) wtime += "0";
wtime += mm + ":";
if (ss.length == 1) wtime += "0";
wtime += ss;

document.forms.timedate.date.value = wdate + "  " + wtime;
setTimeout ("scr_time()",500);
}

