
function dspSwitch(id) {
	var d = document.getElementById(id).style;
	d.display = (d.display == 'block') ? 'none' : 'block';
}

function lz(v) {
	return (v<10)?('0'+v):v;
}

function clock(start) {
	var t = new Date();
	t.setTime(t.getTime() - start);
	document.getElementById('time').innerHTML =
		(t.getHours() - 1) + ':' + lz(t.getMinutes()) + ':' + lz(t.getSeconds()) + '.' + Math.round(t.getMilliseconds()/110);
	setTimeout('clock(' + start + ')', 100);
}

window.onload = function() {
	if (document.getElementById('time')) {
		clock((new Date()).getTime());
	}
}
