function onssubmit()
{

	document.theform.submit();
}

function check_key(){

   if(document.form1.sear.value==''){
      alert("请输入关键词");
	 return false;
   }
    return true;
}




 function emailCheck() {
 
 topic=document.theform.topic.value;
if(topic=='')
{alert("请输入标题!");
return false;
}

details=document.theform.details.value;
if(details=='')
{alert("请填写详细内容!");
return false;
}

         var chkbox_count=0;
         for (var i=0; i <= document.theform.elements.length - 1; i++) {
                  var elemname = eval("document.theform.elements[" + i + "].name")
 ;
                 if (elemname != "") {
                         if (document.theform.elements[i].checked) {
                                 chkbox_count = chkbox_count + 1;
                         }
                 }
         }
         if (chkbox_count > 5 ) {
                 alert("最多选择5个公司");
                 return false;
         }
         if (chkbox_count == 0) {
                 alert("请选择1到5个公司发送邮件");
                 return false;
         }
		 

return true;
}