function news_comment(){

	var theForm = document.form_comment;
	var emailRE = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	var errMsg = "";
	var setfocus = "";

	if (theForm['ans_comment'].value == ""){
		errMsg = "กรุณาระบุความคิดเห็น";
		setfocus = "['ans_comment']";
	}
	if (!emailRE.test(theForm['ans_email'].value)){
		errMsg = "กรุณาระบุอีเมล์ให้ถูกต้อง";
		setfocus = "['ans_email']";
	}
	if (theForm['ans_name'].value == ""){
		errMsg = "กรุณาระบุชื่อ";
		setfocus = "['ans_name']";
	}
	if (errMsg != ""){
		alert(errMsg);
		eval("theForm" + setfocus + ".focus()");
	}
	else theForm.submit();

}

