﻿<!-- Begin
function MakeArrayday(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function MakeArraymonth(size) {
this.length = size;
for(var i = 1; i <= size; i++) {
this[i] = "";
}
return this;
}
function funClock() {

var runTime = new Date();
var hours = runTime.getHours();
var minutes = runTime.getMinutes();
var seconds = runTime.getSeconds();


if (minutes <= 9) {
minutes = "0" + minutes;
}
if (seconds <= 9) {
seconds = "0" + seconds;
}

var dname = new Array();
dname[1] = "Thứ hai";
dname[2] = "Thứ ba";
dname[3] = "Thứ tư";
dname[4] = "Thứ năm";
dname[5] = "Thứ sáu";
dname[6] = "Thứ bẩy";
dname[0] = "Chủ nhật";


myday = runTime.getDay();
mymonth = runTime.getMonth();
mymonth = mymonth +1;
myweekday= runTime.getDate();
myyear= runTime.getYear();
year = myyear;
if (year < 2000)    
	year = year + 1900; 

movingtime = 'Ngày '+ myweekday + "/" + mymonth + "/" + myyear + "-" + hours + ":" + minutes + ":" + seconds;
document.getElementById('clock').innerHTML = movingtime;
setTimeout("funClock()", 1000)
}

funClock();