function updatingClock()

{

jstime = new Date()

hours = jstime.getHours()

minutes = jstime.getMinutes()

if (minutes<10){minpre = "0"

	minpre +=minutes

	minutes=minpre}

seconds = jstime.getSeconds()

if (seconds<10){secpre = "0"

	secpre +=seconds

	seconds=secpre}


timestring = " Bom dia! Agora são: "

timestring = " Boa tarde! Agora são: "

timestring = " Boa noite! Agora são: "

if (hours <= 24){timestring = "Bom dia! Agora são:"}	

if (hours >= 12){timestring = "Boa tarde! Agora são:"}	

if (hours >= 18){timestring = "Boa noite! Agora são:"}	

timestring +=hours

timestring +=":"

timestring +=minutes

timestring +=":"

timestring +=seconds

window.status = timestring

timerID=setTimeout("updatingClock()",1000);

}
