
	function showResult(xmlHttpResult){		
		smc_ShowResult(xmlHttpResult,"divError","divMain","");
	} 		

	function submitFormGopY(oForm){
		
		//return true;
		if(checkGopY(false)==false){
			return false;
		}else{
			try {
				var url="../run/mainajax.php?modul=gopY&action=Add" ;
				var aParams = smc_GetRequestOfForm(oForm);
				smc_XmlHttpSend(url,"POST",aParams,"showResult",true);
			} catch (e) {
				alert(e.description);
			}
			return false;
		}
	}

  //check text isnull
 function checkGopY() {
	if (isWhitespace(document.fgopy.tieu_de.value)) {
		alert("Tiêu đề không được rỗng");
		document.fgopy.tieu_de.focus();
		return false;
	}
	if (isWhitespace(document.fgopy.noi_dung.value)) {
		alert("Nội dung không được rỗng");
		document.fgopy.noi_dung.focus();
		return false;
	}
}
