﻿function displayDayOfName(lang)
{
	todaysDate = new Date();
	vdayarray = new Array("Chủ Nhật", "Thứ Hai", "Thứ Ba", "Thứ Tư", "Thứ Năm", "Thứ Sáu", "Thứ Bảy"); 
	edayarray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thusday", "Friday", "Saturday"); 
	montharray = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
	if(lang == 0) //vietnamese
		document.write(vdayarray[todaysDate.getDay()] + ", " + " ngày " + todaysDate.getDate() + "/" + montharray[todaysDate.getMonth()] + "/");
	else
		document.write(edayarray[todaysDate.getDay()] + ", " + todaysDate.getDate() + "/" + montharray[todaysDate.getMonth()] + "/"); 
	if(todaysDate.getYear() < 1000)
		document.write(todaysDate.getYear() + 1900); 
	else 
		document.write(todaysDate.getYear());
}
