function Checkform(){
      var d =new Date();
      var searchword = "gang_wei_bh!=0 and jie_zhi_rq >"+ d.getYear() + "." + (d.getMonth()+1) + "." + d.getDate() + " " + d.getHours() + ":" + d.getMinutes() + ":" + d.getSeconds();    
      var searchform = document.getElementById('TheForm');
      var hidJobArea =document.getElementById('CityMainCatalogry').value;
      var hidFuntype = document.getElementById('jobfunction').value;  
      var keywords = document.getElementById('keywords').value; 
//职位
    if(hidFuntype!=""){
        hidFuntype = hidFuntype.replace(/00/g,"%");
        searchword +=" and (gang_wei_lb=('" + hidFuntype + "%') or gang_wei_lb =('%,"+hidFuntype+"%'))";     
   	}
//地区
    if(hidJobArea!=""){
        hidJobArea = hidJobArea.replace(/0000/g,"%");
        hidJobArea = hidJobArea.replace(/00/g,"%");
        searchword +=" and (gong_zuo_dd=('" + hidJobArea + "%') or gong_zuo_dd =('%,"+hidJobArea+"%'))";     
    }
//行业  
/*  
    if(hidIndustry!=""){
      if(hidIndustry.indexOf(',')==-1){
        searchword +=" and hang_ye_lb=('" + hidIndustry + "')";     
      }else{
        var str1 =hidIndustry.split(',');
        for(var i=0;i<str1.length;i++){
          if(i==0){
              searchword += " and (hang_ye_lb=('" + str1[i] + "') or";
          }else if(i==(str1.length-1)){
              searchword += " hang_ye_lb=('" + str1[i] + "'))";  
          }else{
              searchword += " hang_ye_lb=('" + str1[i] + "')) or";  
          }
        }
      }
    }
  
//发布时间
     if(PubSchedule!=""){
       var now = new Date();
       var theDate = new Date(Date.parse(now) - PubSchedule*86400000);
       searchword += " and fa_bu_sj >= "+ theDate.getYear() + "." + (theDate.getMonth()+1) + "." + theDate.getDate() + " " + theDate.getHours() + ":" + theDate.getMinutes() + ":" + theDate.getSeconds();
      }
 **/ 	  
//关键字
   if(keywords=='输入单位名称或职位名称'){
      keywords ='';
   }
   if(keywords!=""){
     if(searchform.keywordtype[1].checked){
        searchword += " and dan_wei_mc =('%"+keywords+"%')";
     }else if(searchform.keywordtype[0].checked){
        searchword += " and gang_wei_mc =('%"+keywords+"%')";
     }else{
        searchword += " and (dan_wei_mc =('%"+keywords+"%') or gang_wei_mc=('%"+keywords+"%'))";
     }
    }      
    
    searchform.searchword.value =  searchword;
   	//searchform.action="http://www1.nbrc.com.cn/nbrs/rc/zhiwei/result.jsp";
    //searchform.submit();
}