/*
Time and date.
*/
var months = new Array(12);
months[0] = "Jan";
months[1] = "Feb";
months[2] = "Mar";
months[3] = "Apr";
months[4] = "May";
months[5] = "Jun";
months[6] = "Jul";
months[7] = "Aug";
months[8] = "Sep";
months[9] = "Oct";
months[10] = "Nov";
months[11] = "Dec";

var days = new Array(7);
days[0] = "Sun";
days[1] = "Mon";
days[2] = "Tue";
days[3] = "Wed";
days[4] = "Thu";
days[5] = "Fri";
days[6] = "Sat";

var now = new Date();
var day = days[now.getDay()];
var date = now.getDate().toString();
if (date.length <2) date = "0" + date;
var month = months[now.getMonth()];
var year = now.getYear();
if(year < 2000)	year = year + 1900;
var toDay = day + ", " + date + " " + month +  " " + year +" ";

/*
Time and date in Vietnamese.
*/
var thangs = new Array(12);
thangs[0] = "01";
thangs[1] = "02";
thangs[2] = "03";
thangs[3] = "04";
thangs[4] = "05";
thangs[5] = "06";
thangs[6] = "07";
thangs[7] = "08";
thangs[8] = "09";
thangs[9] = "10";
thangs[10] = "11";
thangs[11] = "12";

var thus = new Array(7);
thus[0] = "Ch&#7911; nh&#7853;t";
thus[1] = "Th&#7913; 2";
thus[2] = "Th&#7913; 3";
thus[3] = "Th&#7913; 4";
thus[4] = "Th&#7913; 5";
thus[5] = "Th&#7913; 6";
thus[6] = "Th&#7913; 7";

var gio = new Date();
var thu = thus[gio.getDay()];
var ngay = gio.getDate().toString();
if (ngay.length <2) ngay = "0" + ngay;
var thang = thangs[gio.getMonth()];
var Homnay = thu + ", " + ngay + "/" + thang +  "/" + year;