function StartClock(){
		var thetime=new Date();
		var ndayofweek=thetime.getDay();
		var nday=thetime.getDate();
		var nmonth=thetime.getMonth();
		var nyear=thetime.getYear();
		var AorP=" ";
		if (ndayofweek==0) ndayofweek="Chủ nhật";
		if (ndayofweek==1) ndayofweek="Thứ hai";
		if (ndayofweek==2) ndayofweek="Thứ ba";
		if (ndayofweek==3) ndayofweek="Thứ tư";
		if (ndayofweek==4) ndayofweek="Thứ năm";
		if (ndayofweek==5) ndayofweek="Thứ sáu";
		if (ndayofweek==6) ndayofweek="Thứ bảy";
		nmonth+=1;
		if (nyear<=99) nyear="19"+nyear;
		if ((nyear>99) && (nyear<2000)) nyear+=1900;
		document.getElementById("Clock").innerText = ndayofweek +', '+nday+'-'+nmonth+'-'+nyear+' ';
}

function OpenWin(url, name, att)
{
	if ( att == "" )
		att = "width=500,height=350,left=200,top=100";
		
	o= window.open( url, name, att );
	o.focus();
}
function isValidEmailAdd(field){
	var valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_.@";
	var temp;

	for (var i=0; i<field.length; i++){
		temp = "" + field.substring(i, i+1);
		if (valid.indexOf(temp) == "-1") return false;
	}
	//if (field.indexOf("@") == "-1") return false;
	//if (field.indexOf(".") == "-1") return false;
	
	return true;
}