// Dang Thanh update 2007.06.20
	var xmlHttp;
	function showResultSearch(xmlHttpResult){
		//		smc_ShowResult(xmlHttpResult,divNameShowError,divNameShowResult,urlGoto)
		smc_ShowResult(xmlHttpResult,"divError","divMain","");
		onFlagBack();		// Dang THanh udpate 2007.06.20		
		return;
	} 
	//==========send mail=============================================================================
	function sendMail(oForm){
		if(CheckSendMial(false)==false){
			return false;
		}
		try {
			var url="../run/mainajax.php?modul=lienHe&action=send";
			var aParams =smc_GetRequestOfForm(oForm);
			smc_XmlHttpSend(url,"POST",aParams,"showResultSearch",true);
		} catch (e) {
			alert(e.description);
		}
		return false;
	}
	//==========CheckSendMial==========================================================================
	function CheckSendMial(){
		document.flienhe.to.value = getOptionsValue(document.flienhe.mail_to);
		if (isWhitespace(document.flienhe.hovaten.value)) {
			alert("Họ và tên không được rỗng");
			document.flienhe.hovaten.focus();
			return false;
		}
		if (isWhitespace(document.flienhe.dienthoai.value)) {
			alert("Điện thoại không được rỗng");
			document.flienhe.dienthoai.focus();
			return false;
		}
		if (isNaN(document.flienhe.dienthoai.value)==true) {
			alert("Điện thoại phải là kiểu số");
			document.flienhe.dienthoai.focus();
			return false;
		}
		if (document.flienhe.dienthoai.value.length>11) {
			alert("Điện thoại tối đa có 11 chữ số");
			document.flienhe.dienthoai.focus();
			return false;
		}
		if (isWhitespace(document.flienhe.email.value)) {
			alert("Email không được rỗng");
			document.flienhe.email.focus();
			return false;
		}
		if (!isEmail(document.flienhe.email.value)) {
			alert("Email bạn nhập không đúng");
			document.flienhe.email.focus();
			return false;
		}
		if (isWhitespace(document.flienhe.yeucau.value)) {
			alert("Yêu cầu không được rỗng");
			document.flienhe.yeucau.focus();
			return false;
		}
	}
