//ham in ngay thang

function inngay(nam){
				today = new Date(); 
				weekday = today.getDay();
				if (weekday == 6) document.write('Th&#7913; b&#7843;y');
				if (weekday == 0) document.write('Ch&#7911; nh&#7853;t');
				if (weekday == 1) document.write('Th&#7913; hai');
				if (weekday == 2) document.write('Th&#7913; ba');
				if (weekday == 3) document.write('Th&#7913; t&#432;');
				if (weekday == 4) document.write('Th&#7913; n&#259;m');
				if (weekday == 5) document.write('Th&#7913; s&aacute;u');
				document.write(', ng&agrave;y ');
				date = today.getDate(); 
				document.write(date); 
				month = today.getMonth();
				if (month == 0) document.write(' th&aacute;ng 1');
				if (month == 1) document.write(' th&aacute;ng 2');
				if (month == 2) document.write(' th&aacute;ng 3');
				if (month == 3) document.write(' th&aacute;ng 4');
				if (month == 4) document.write(' th&aacute;ng 5');
				if (month == 5) document.write(' th&aacute;ng 6');
				if (month == 6) document.write(' th&aacute;ng 7');
				if (month == 7) document.write(' th&aacute;ng 8');
				if (month == 8) document.write(' th&aacute;ng 9');
				if (month == 9) document.write(' th&aacute;ng 10');
				if (month == 10) document.write(' th&aacute;ng 11');
				if (month == 11) document.write(' th&aacute;ng 12'); 
				document.write (' n&#259;m ');document.write(nam);
			}
			
function HightLight(what, onoff)
{	var className = ((onoff == 1) ? 'mainmenu_over' : 'mainmenu');
	what.parentNode.cells[0].className = className;
	//what.parentNode.cells[1].className = className;
}

function Redirect(url)
{
	document.location = url;
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
