﻿function tS(){
	x=new Date();
	x.setTime(x.getTime());
	return x;
} 

function lZ(x){
	return (x>9)?x:'0'+x;
}

function tH(x){
	ap=(x>11)?' PM':' AM';
	if(x==0){
		x=12;
	}
	return (x>12)?x-=12:x;
} 

function fY(x){
	return (x<500)?x+1900:x;
} 

function dT(){
	if(fr==0){
		fr=1;
		document.write('<style="font-size: 8pt; font-family: Tahoma"><span id="tP">'+eval(oT)+'</span></font>');
	}
		tP.innerText=eval(oT); setTimeout('dT()',1000);
	} 
	var dN=new Array('Chủ Nhật','Thứ Hai','Thứ Ba','Thứ Tư','Thứ Năm','Thứ Sáu','Thứ Bảy'),mN=new Array('/01','/02','/03','/04','/05','/06','/07','/08','/09','/10','/11','/12'),ap,fr=0,oT="dN[tS().getDay()]+' - ' +' '+lZ(tS().getDate())+mN[tS().getMonth()]+'/'+fY(tS().getYear())";
	
