var today = new Date()
var thisHours = today.getHours()
var thisMinutes = today.getMinutes()
var weekdayNames = ['Ch? nh?t', 'Th? hai', 'Th? ba', 'Th? tư', 'Th? năm', 'Th? sáu', 'Th? b?y']
var monthNamesR = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12']
var thisDay = today.getDay()
var thisDate = today.getDate()
var currMonth = today.getMonth()
var currYear = today.getFullYear()
if(today.getMinutes() < 10) {thisMinutes = "0" + today.getMinutes()}
if(today.getHours() < 10) {thisHours = "0" + today.getHours()}
function priviet() {
if((thisHours < 12) && (thisHours >= 6))
{  document.write('<img src=images/nukeviet_04.gif>')}
if((thisHours >= 12) && (thisHours < 18))
{  document.write('<img src=images/nukeviet_04_2.gif>')}
if((thisHours >= 18) && (thisHours <= 23))
{  document.write('<img src=images/nukeviet_04_3.gif>')}
if((thisHours >= 0) && (thisHours < 6))
{  document.write('<img src=images/nukeviet_04_4.gif>')}
}
function datetime() {
document.write(weekdayNames[thisDay] + ", ngày " + thisDate + "/" + monthNamesR[currMonth] + "/" + currYear)
}

function datetime_Date() {
document.write(weekdayNames[thisDay] + ", ngày " + thisDate + "/" + monthNamesR[currMonth] + "/" + currYear + "  " + thisHours + ":" + thisMinutes)
}

