<!--
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("Ch&#7911; nh&#7853;t","Th&#7913; hai","Th&#7913; ba","Th&#7913; t&#432;","Th&#7913; n&#259;m","Th&#7913; s&#225;u","Th&#7913; b&#7843;y")   
				var montharray=new Array("/01","/02","/03","/04","/05","/06","/07","/08","/09","/10","/11","/12")    
				
function toSubmit(theForm,act){
	var strAction=String(theForm.action);
	var tmparr=strAction.split("?");
	theForm.action=tmparr[0]+"?action="+act;
	theForm.submit();
	return;				
}

function getDblActiveText(theObject) {
	var URL=String(document.location.href);
	var pos_author=URL.search(/author/g);
	var pos_title=URL.search(/title/g);
	var pos_keyword=URL.search(/keyword/g);
	var theForm=theObject.form;
	if (pos_author>0)
	{theForm.Text1.value=theObject.value;
	}else if (pos_title>0)
	{theForm.Text2.value=theObject.value;
	}else if(pos_keyword>0){
	theForm.Text3.value=theObject.value;
	}else{
	theForm.Text1.value=theObject.value;
	}
	
}

function ValidateSearchForm(theForm,msg)
{ var text1=String(theForm.Text1.value);
  var text2=String(theForm.Text2.value);
  var text3=String(theForm.Text3.value);
	
	if (text1.length<=0&&text2.length<=0&&text3.length<=0)
	{
		alert(msg);
		return false;
	}
 
  return true;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
   //-->
   



