function check_comment_form(frm){
	if(frm.name.value==''){
		alert('Nhập tên của bạn !');
		frm.name.focus();
		return false;
	}
	if(frm.email.value=='' || !isEmail(frm.email.value)){
		alert('Nhập dúng email của bạn !');
		frm.email.focus();
		return false;
	}
	if(frm.title.value==''){
		alert('Nhập tiêu đề !');
		frm.title.focus();
		return false;
	}
	
	if(frm.conval.value!=frm.check_code.value){
		alert('Mã bảo vệ không đúng !');
		frm.comment.focus();
		return false;
	}
	if(frm.comment.value==''){
		alert('Nhập nội dung bình luận !');
		frm.comment.focus();
		return false;
	}
	return true;
}
function isEmail(s)
{
	if (s.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]{2,4}$/) != -1)
            return true ;
        else
            return false ;
    
}