/*
// @ Script: Ho tro
// @ Author: Nguyen Dong Khoa
// @ Email: ndkhoa83@yahoo.com
*/
function showCustom(path, name, width, height) {
	winFiles = window.open(path, name, "width="+width+", height="+height+"");
	winFiles.focus();
	// Output: onClick="showCustom('Samples.htm', 300, 200)"
}
function showCustomDynamic(path, name, width, height, url) {
	winFiles = window.open(path+"?urlImage="+url, name, "width="+width+", height="+height+"");
	winFiles.focus();
	// Output: onClick="showCustom('Samples.htm', 300, 200)"
}
function ndk_date_vn() {
		var mydate=new Date()
		var year=mydate.getYear()
		if (year < 1000)
			year+=1900
		var day=mydate.getDay()
		var month=mydate.getMonth()
		var daym=mydate.getDate()
		if (daym<10)
			daym="0"+daym
		var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
		var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
		document.write("<STRONG><font color=black>"+dayarray[day]+", "+montharray[month]+" "+daym+"th "+year+"</font></STRONG>")
	}
function ndk_date_en() {
		var mydate=new Date()
		var year=mydate.getYear()
		if (year < 1000)
			year+=1900
		var day=mydate.getDay()
		var month=mydate.getMonth()
		var daym=mydate.getDate()
		if (daym<10)
			daym="0"+daym
		var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
		var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
		document.write("<STRONG><font color=black>"+dayarray[day]+", "+montharray[month]+" "+daym+"th "+year+"</font></STRONG>")
}
	
function ndk_clock()
	/*{
		var time = new Date();
		var hour = time.getHours();
		var minute = time.getMinutes();
		var second = time.getSeconds();
		var phantom = " " + ((hour > 12) ? hour - 12 : hour);
		phantom += ((minute < 10) ? "h:0" : "h:") + minute;
		phantom += ((second < 10) ? "':0" : "':") + second;
		phantom += (hour >= 12) ? " PM" : " AM";
		contentClock.innerHTML = "<div align=center><b>"+phantom+"</b></div>";
		//Truy xuat:
		//<body onLoad="ndk_clock()">
		//<td width="191" id="contentClock">&nbsp;</td>
		id = setTimeout("ndk_clock()",1000);
	}*/
	{
		 var now = new Date();
  var year = now.getYear();
  var month = now.getMonth() + 1;
  var date = now.getDate();
  var hours = now.getHours();
  var minutes = now.getMinutes();
  var seconds = now.getSeconds();
  var day = now.getDay();
  Day = new MakeArray(7);
  Day[0]="Ch&#7911; nh&#7853;t";
  Day[1]="Th&#7913; hai";
  Day[2]="Th&#7913; ba";
  Day[3]="Th&#7913; t&#432;";
  Day[4]="Th&#7913; n&#259;m";
  Day[5]="Th&#7913; s&aacute;u";
  Day[6]="Th&#7913; b&#7843;y";
  var timeValue = "";
  timeValue += (Day[day]) + "   ";
  month = ((month < 10) ? "0" : "") + month + "-";
  //timeValue += ((month < 10) ? " 0" : " ") + month + "-";
  timeValue += date + "-" + month + year + "    ";
  contentClock.innerHTML = "<div align=center><b>"+timeValue+"</b></div>";
  timerID = setTimeout("showtime()",1000);
	}
	