function formValidate() {
	 var txt = document.getElementById("searchWords").value;
      var ResourceType=document.getElementById("subjectType").value;
      var sreachType=document.getElementById("sreachType").value;
      if(txt == "" || txt == "多个搜索按空格分开"){
        if(sreachType=="按标题"){
          alert("请输入标题后再提交！");
           return false;
        }else{
          alert("请输入关键字后再提交！");
          return false;
        }
      }else{
      		document.Sreachform.action="search.do?method=simpleSearch";
	        document.Sreachform.submit();	 
      }
}

