var tick;
							
function takeYear(theDate) 
{
	x = theDate.getYear();
	var y = x % 100;
	y += (y < 38) ? 2000 : 1900;
	return y;
}
 
function stop()
{
	clearTimeout(tick);
}

function getClock()
{
	var theDate=new Date();
	var h,m,s;
	var time="      ";
	var date="";
	h=theDate.getHours();
	m=theDate.getMinutes();
	s=theDate.getSeconds();
	d=theDate.getDate();
	mth=theDate.getMonth();
	y=takeYear(theDate);

	if(s<10) s="0"+s;
	if(m<10) m="0"+m;
	if(h<10) h="0"+h;
	if(d<10) d="0"+d;
	mth = mth + 1;
	if(mth<10) mth="0"+mth;

	time += h+":"+m+":"+s;
	date += mth + '-' + d + '-' + y;

	document.getElementById("rtime").innerHTML=date + " &#8226; " + time;
	tick=setTimeout("getClock()",1000);    
}