// JavaScript Document
window.setInterval(settime, 100);
function settime() 
{
var time1=new Date();
var hours;
var ampm;
if (time1.getHours() >12) {
hours= time1.getHours() -12;
ampm="pm"
}
else {

hours=time1.getHours();
ampm="am"
}
document.getElementById("try").innerHTML=hours + " " + time1.getMinutes() + "  " + time1.getSeconds() + ampm;
document.getElementById("try").style.fontColor="darkblue";

}
