<!--
function chkblanksearch(tf) {
	if (tf.srch.value == "") {
		alert('กรุณาป้อนคำที่ต้องการค้นหาด้วย');
		tf.srch.focus();
		return false;
	}
}
function chkblanknewpost(tf) {
	if (tf.slgroup.value == "") {
		alert('กรุณาเลือกหมวดหมู่กระทู้ด้วย');
		tf.slgroup.focus();
		return false;
	}
	if (tf.txttopic.value == "") {
		alert('กรุณาป้อนหัวข้อกระทู้ด้วย')
		tf.txttopic.focus();
		return false;
	}
	if (tf.txtname.value == "") {
		alert('กรุณาป้อนชื่อผู้ตอบด้วย')
		tf.txtname.focus();
		return false;
	}
	if (tf.txtemail.value!="") {
			if (tf.txtemail.value.indexOf("@")==-1 || tf.txtemail.value.indexOf(".")==-1 || tf.txtemail.value.indexOf(" ")!=-1 || tf.txtemail.value.length<6) 	{
				alert('รูปแบบอีเมล์ไม่ถูกต้อง');
				tf.txtemail.focus();return false
			} 
		}
	if (tf.txtdetail.value =="") {
		alert('กรุณาป้อนรายละเอียดกระทู้ด้วย')
		tf.txtdetail.focus();
		return false;
	}
}
function chkblankform(tf) {
	if (tf.txtname.value == "") {
		alert('กรุณาป้อนชื่อผู้ตอบด้วย')
		tf.txtname.focus();
		return false;
	}
	if (tf.txtemail.value!="") {
			if (tf.txtemail.value.indexOf("@")==-1 || tf.txtemail.value.indexOf(".")==-1 || tf.txtemail.value.indexOf(" ")!=-1 || tf.txtemail.value.length<6) 	{
				alert('รูปแบบอีเมล์ไม่ถูกต้อง');
				tf.txtemail.focus();return false
			} 
		}
	if (tf.txtcomment.value =="") {
		alert('กรุณาป้อนคำตอบด้วย')
		tf.txtcomment.focus();
		return false;
	}
}
function jumptof(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

//-->
