function tS(){
	x=new Date();
	x.setTime(x.getTime());
	return x;
}

function lZ(x){
	return (x>9)?x:'0'+x;
}

function tH(x){
	if(x==0){
		x=12;
	}
	return (x>12)?x-=12:x;
}

function dT(){
	document.getElementById('tP').innerHTML=eval(oT);
	setTimeout('dT()',1000);
}

function aP(x){
	return (x>11)?'pm':'am';
}

function y4(x){
	return (x<500)?x+1900:x;
}

var mN=new Array('January','February','March','April','May','June','July','August','September','October','November','December')
//oT="tH(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+aP(tS().getHours())+' '+'-'+' '+' '+tS().getDate()+' '+mN[tS().getMonth()]+' '+y4(tS().getYear())";
oT="lZ(tS().getHours())+':'+lZ(tS().getMinutes())+':'+lZ(tS().getSeconds())+' '+'-'+' '+' '+tS().getDate()+' '+mN[tS().getMonth()]+' '+y4(tS().getYear())";

function body_onload(){
	dT();
}
