﻿// JScript File
function confirm_delete()
{
  if (confirm("Bạn có chắc xóa mẫu tin này?")==true)
    return true;
  else
    return false;
}

function showDateVN()
{
	var strdate;
	var dt = new Date();
	var strarrDay = new Array("Chủ nhật", "Thứ hai", "Thứ ba", "Thứ tư", "Thứ năm", "Thứ sáu", "Thứ bảy"); 
	var strarrMonth = new Array("01","02","03","04","05","06","07","08","09","10","11","12"); 
	
	
	
	var strThu = dt.getDay();
	strThu = strarrDay[strThu] + ", ";
	var strDay=dt.getDate();
	if (strDay<10) strDay="0" + strDay
	var strMonth= dt.getMonth();
	strMonth= strarrMonth[strMonth] ;
	var strYears = dt.getYear();
	if (strYears<1900) strYears += 1900;
	
//	strdate=strThu + " ngày " + strDay + "-" + strMonth + "-" + strYears

    strdate=strThu + " ngày " + strDay + " tháng " + strMonth + " năm " + strYears
	window.document.write (strdate);
}

function showDateEN()
{
	var strdate;
	var dt = new Date();
	var strarrDay = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); 
	var strarrMonth = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); 
	
	
	
	var strThu = dt.getDay();
	strThu = strarrDay[strThu] + ", ";
	var strDay=dt.getDate();
	if (strDay<10) strDay="0" + strDay
	var strMonth= dt.getMonth();
	strMonth= strarrMonth[strMonth] ;
	var strYears = dt.getYear();
	if (strYears<1900) strYears += 1900;
	

    //Sunday, August 27, 1989
    //strdate=strThu + " ngày " + strDay + " month " + strMonth + " year " + strYears
    
    strdate = strThu + strMonth  + " " + strDay + ", " + strYears
	window.document.write (strdate);
}


