function formCheck2() {
	  if ("" == document.form2.keyword.value) {
	    alert(" 请输入关键词 !")
	    //document.form2.keyword.focus()
	    return false
	  }
  return true
	}

function formCheck() {
	  if ("" == document.theform.mailsubject.value) {
	    alert("请输入题目")
	    document.theform.mailsubject.focus()
	    return false
	  }
	
	    if ("" == document.theform.email.value) {
	    alert("请输入您的邮件地址")
	    document.theform.email.focus()
	    return false
	  }
	  var email = document.theform.email.value
	  var is_error = false
	  var pn_0 = email.indexOf("@")
	  var pn_1 = email.indexOf(".",pn_0)
	  var pn_2 = email.length
	  if (pn_0<1 || pn_1<pn_0+2 || pn_1+2>pn_2) is_error=true
	  if (is_error) {
	    alert("请输入正确的邮件地址")
	    document.theform.email.focus()
	    return false
	  }
	  if ("" == document.theform.text1.value) {
	    alert("请输入提问或意见的内容")
	    document.theform.text1.focus()
	    return false
	  }
	  return true
	}
function textCounter(text1, countfield, maxlimit) {
// 定义函数，传入3个参数，分别为表单区的名字，表单域元素名，字符限制；
if (text1.value.length > maxlimit) 
//如果元素区字符数大于最大字符数，按照最大字符数截断； 
text1.value = text1.value.substring(0, maxlimit);
else
//在记数区文本框内显示剩余的字符数； 
countfield.value = maxlimit - text1.value.length;
}