// Script featured on Able2Know.com
// Find free scripts & get free help: http://search.able2know.com/web_development/scripts/
<!-- Original:  Chris (javascript@crashedstar.com) -->
<!-- Web Site:  http://www.crashedstar.com/ -->

function getthedate(){
	var mydate=new Date()
	var year=mydate.getYear()
	if (year < 1000) year+=1900
	var month=mydate.getMonth()+1
	var daym=mydate.getDate()
	var hours=mydate.getHours()
	var minutes=mydate.getMinutes()
	var seconds=mydate.getSeconds()

	d = new Date();
	Time24H = new Date();
	Time24H.setTime(d.getTime() + (d.getTimezoneOffset()*60000) + 3600000);
	InternetTime = Math.round((Time24H.getHours()*60+Time24H.getMinutes()) / 1.44);
	if (InternetTime < 10) InternetTime = '00'+InternetTime;
	else if (InternetTime < 100) InternetTime = '0'+InternetTime;

	if (daym<10) daym="0"+daym
	if (month<10) month="0"+month
	if (hours<=0) hours="0"+hours
	if (minutes<=9) minutes="0"+minutes
	if (seconds<=9) seconds="0"+seconds
	
	var cdate=daym+"."+month+"."+year+", "+hours+":"+minutes+":"+seconds+", @"+InternetTime+", "
	if (document.all)
		document.all.clock.innerHTML=cdate
	else if (document.getElementById)
		document.getElementById("clock").innerHTML=cdate
	else
		document.write(cdate)
}

if (!document.all&&!document.getElementById) getthedate()

function goforit(){
  if (document.all||document.getElementById) setInterval("getthedate()",1000)
}

window.onload=goforit
