// JavaScript Document
	
function CheckValue(theForm)
{
    if(document.theForm.messagemark.value == "")
 {
	 alert("请选择咨询问题类型，谢谢！")
	 document.theForm.messagemark.focus();
	 return (false);
 }
else if(document.theForm.name.value == ""|| document.theForm.name.value.length > 10 || document.theForm.name.value.length  <2)
 {
	 alert("姓名不少于2个字符、不能超过10个字符，谢谢！")
	 document.theForm.name.focus();
	 return (false);
 }
  else if(document.theForm.contact.value == "" || document.theForm.contact.value.length  > 30 || document.theForm.contact.value.length  <8 )
 {
	 alert("联系方式不少于8个字符、不能超过30个字符，谢谢！")
	 document.theForm.contact.focus();
	 return (false);
 }


   else if(document.theForm.message.value.length>300)
 {
	 alert("留言不能超过300个字符，谢谢！")
	 document.theForm.message.focus();
	 return (false);
 }

    else if(document.theForm.message.value=="" ||document.theForm.message.value==document.theForm.message.defaultValue )
 {
	 alert("请您留言！")
	 document.theForm.message.focus();
	 return (false);
 }
return (true);
}


