function chkFrmRegMail(obj){
	
	if(obj.txtMailAddress.value=="")
	{
		alert("Bạn chưa nhập địa chỉ email.");
		obj.txtMailAddress.focus();
		return false;
	}
	if (obj.txtMailAddress.value.indexOf('@',0)==-1 || obj.txtMailAddress.value.indexOf('.')==-1)
	{
		alert ("Địa chỉ email nhập sai quy cách.");
		obj.txtMailAddress.focus();
		return false;
	}
	return true;
}
function sconfirm(strMess,strURL){
	var yn;
	yn=window.confirm(strMess);
	if (yn==true){
		document.location.href=strURL;
		}
}
function askconf(strMess){
	var yn;
	yn=window.confirm(strMess);
	if (yn==true){
		return true;
		}
	return false;
}
function openWin(theURL,winName,features) {
  	window.open(theURL,winName,features);