// JavaScript Document

function gotourl(i)
{
	window.location=i;
}

function PasteTime()
{
var AmPm="am"
var newdate=new Date()
var h=newdate.getHours()
var m=newdate.getMinutes()
var s=newdate.getSeconds()

m=checkTime(m)
s=checkTime(s)

if (h > 12)
{	h=h-12
	AmPm="pm"
}

else if (h == 0)
{
	h=12
}

document.getElementById('divtime').innerHTML=h+":"+m+":"+s+AmPm
t=setTimeout('PasteTime()',500)
}

function checkTime(i)
{
if (i<10) 
  {i="0" + i}
  return i
}
