function checkForm() {
		var frm = document.frmFeedback;
		if (trim(frm.txtname.value) == "") {
			alert("Vui long nhap ho ten cua ban!");
			frm.txtname.focus();
			return false;
		}
		if (trim(frm.drpYear.value) == "") {
			alert("Vui long chon nien khoa!");
			frm.drpYear.focus();
			return false;
		}
		if (frm.drpType.value == "") {
			alert("Vui long chon ban lien lac!");
			frm.drpType.focus();
			return false;
		}
		if (frm.drpSex.value == "") {
			alert("Vui long chon gioi tinh!");
			frm.drpSex.focus();
			return false;
		}
		if (trim(frm.txtbirthday.value) == "") {
			alert("Vui long nhap ngay sinh!");
			frm.txtbirthday.focus();
			return false;
		}	
		if (frm.txtaddress.value.length > 250) {
			alert("Dia chi cua ban khong duoc qua 250 ky tu");
			frm.txtaddress.focus();
			return false;
		}
		if (frm.txtemail.value != "") 
		{
			var email=frm.txtemail.value;
			var emailPat = /^(\".*\"|[A-Za-z]\w*)@(\[\d{1,3}(\.\d{1,3}){3}]|[A-Za-z]\w*(\.[A-Za-z]\w*)+)$/;
			var matchArray = email.match(emailPat);
			if (matchArray == null) {
				alert("Dia chi email khong hop le!");
				frm.txtemail.focus();
				return false;
			}
		}	
		
		if (trim(frm.txtcontent.value) == "") {
			alert("Vui long nhap noi dung gioi thieu!");
			frm.txtcontent.focus();
			return false;
		}
		if (frm.txtcontent.value.length > 1000) {
			alert("Noi dung thong tin khong duoc qua 1000 ky tu!");
			frm.txtcontent.focus();
			return false;
		}
		$.ajax({
				type:"POST", url: "modules/register/dopage.asp",
				data:{
					  'isNew':		'add',
					  'year':		$('#drpYear').val(),
					  'name':		$('#txtname').val(),
					  'avartar':	$('#txtFileImage').val(),
					  'typeid':		$('#drpType').val(),
					  'sex':		$('#drpSex').val(),
					  'birthday':	$('#txtbirthday').val(),
					  'phone':		$('#txtphone').val(),
					  'mobile'	:   $('#txtmobile').val(),
					  'address':	$('#txtaddress').val(),
					  'email': 		$('#txtemail').val(),
					  'nick': 		$('#txtnick').val(),
					  'content': 	$('#txtcontent').val(),
					  'catid': 		frm.hidcatid.value
				},
				success: function(data) {					
					$('#formContent').html(data) ;
					
				},
				errror: function(data) {
					alert(data) ;
				}
		});
	}
