﻿function DateVN()
{
    var dat, hour, min, sec, data1 , data2;
    var months = new Array(13);
      months[1]="1";
      months[2]="2";
      months[3]="3";
      months[4]="4";
      months[5]="5";
      months[6]="6";
      months[7]="7";
      months[8]="8";
      months[9]="9";
      months[10]="10";
      months[11]="11";
      months[12]="12";
      var time = new Date();
      var lmonth = months[time.getMonth() + 1];
      var date = time.getDate();
      var year = time.getYear();
      if (year < 2000)
      year = year + 1900;
      today = new Date();
      thisDay = today.getDay() + 1;
      if(thisDay == 1) thisDay = "Chủ Nhật";
      if(thisDay == 2) thisDay = "Thứ Hai";
      if(thisDay == 3) thisDay = "Thứ Ba";
      if(thisDay == 4) thisDay = "Thứ Tư";
      if(thisDay == 5) thisDay = "Thứ Năm";
      if(thisDay == 6) thisDay = "Thứ Sáu";
      if(thisDay == 7) thisDay = "Thứ Bảy";
      data1 =  thisDay + ", " + date + "/" + lmonth + "/" + year  ;
      document.write(data1);
}

function DateEN()
{
    var dat, hour, min, sec, data1 , data2;
    var months = new Array(13);
      months[1]="1";
      months[2]="2";
      months[3]="3";
      months[4]="4";
      months[5]="5";
      months[6]="6";
      months[7]="7";
      months[8]="8";
      months[9]="9";
      months[10]="10";
      months[11]="11";
      months[12]="12";
      var time = new Date();
      var lmonth = months[time.getMonth() + 1];
      var date = time.getDate();
      var year = time.getYear();
      if (year < 2000)
      year = year + 1900;
      today = new Date();
      thisDay = today.getDay() + 1;
      if(thisDay == 1) thisDay = "Sunday";
      if(thisDay == 2) thisDay = "Monday";
      if(thisDay == 3) thisDay = "Tuesday";
      if(thisDay == 4) thisDay = "Wednesday";
      if(thisDay == 5) thisDay = "Thursday";
      if(thisDay == 6) thisDay = "Friday";
      if(thisDay == 7) thisDay = "Saturday";
      data1 =  thisDay + ", " + date + "/" + lmonth + "/" + year  ;
      document.write(data1);
}

function ItemMinimize(Name)
	{
		var MItem = document.getElementById('IDM_'.concat(Name));
		//var Image = document.getElementById('IDI_'.concat(Name));
		
		if (MItem.style.display!='')
		{
			//MItem.setAttribute('style','display:""');
			MItem.style.display='';
			//Image.src='Images/min.gif';
		}
		else
		{
			//MItem.setAttribute('style','display:none');
			MItem.style.display='none';
			//Image.src='Images/max.gif';
		}
	}