function getBeat()
{
	var now = new Date();
	var off = (now.getTimezoneOffset() + 60)*60;
	var theSeconds = (now.getHours() * 3600) + (now.getMinutes() * 60) + now.getSeconds() + off;
	var beat = Math.floor(theSeconds/86.4);
	if (beat > 1000) beat -= 1000;
	if (beat < 0) beat += 1000;
	return beat;
}

function startclock() {
	taddr=0;
	if (navigator.appVersion.substring(0,1) >= 4) {
		if (taddr == 0) {
			prttime();
			taddr = setInterval("prttime()",2000);
		}
	}
}

function stopclock() {
	if (taddr != 0) {
		clearInterval(taddr);
		taddr = 0;
	}
}

function prttime() {
	var now = new Date();
	var off = (now.getTimezoneOffset() + 60)*60;
	var theSeconds = (now.getHours() * 3600) + (now.getMinutes() * 60) + now.getSeconds() + off;
	var beat = Math.floor(theSeconds/86.4);
	if (beat > 1000) beat -= 1000;
	if (beat < 0) beat += 1000;
	beats = beat;

	document.getElementById("beats_counter").innerHTML = "@" + beats;
	//window.document.clockview.beats.value = "@" + beats;
}