﻿ function $$$(id) {return document.getElementById(id);}
    String.prototype.Trim = function(){ return this.replace(/^\s+|\s+$/g,"")}
    String.prototype.LTrim = function(){ return this.replace(/^\s+/g,"")}
    String.prototype.RTrim = function(){ return this.replace(/\s+$/g,"")}
    function ClearKeyWord()
    {
        var sCont=$$$("sName").value.Trim();
        if(sCont=="输入单位名称或职位名称")
        {
            $$$("sName").value="";
        }
    }
    function AddKeyWord()
    {
        var sCont=$$$("sName").value.Trim();
        if(sCont=="")
        {
            $$$("sName").value="输入单位名称或职位名称";
        }
    }                          
    
    function OpenWindow()
    {
        var sDaLei=$$$("jobMainCatalogry_1").value;
        var sXiaoLei=$$$("jobfunction_1").value;
        var sSheng=$$$("Sheng_1").value;
        var sTime=$$$("selTime").value;
        var sName=$$$("sName").value;
		if($$$("sName").value=="单位名称或职位名称")
		{
			sName="";
		}
        var type="";
        if($$$("rJob").checked==true)
        {
            type="1";
        }
        if($$$("rName").checked==true)
        {
            type="2";
        }
        var url="/usercontrol/seachcompany.aspx?A="+sDaLei+"&B="+sXiaoLei+"&C="+sSheng+"&D="+sTime+"&E="+sName+"&F="+type;
		url=encodeURI(url);
        window.open(url,'_blank')
    }

 function OpenWinRc()
 {
    var spre="/company/Search_Speed_Onstage.aspx?";
	var jobMainCatalogry=$$$("jobMainCatalogry_SearchSpeed").value;
	var Fxueli=$$$("Fxueli_SearchSpeed").value;
	var Fyear=$$$("Fyear_SearchSpeed").value;
	var Fupdate=$$$("Fupdate_SearchSpeed").value;
	if($$$("keyWord_SearchSpeed").value=="请输入专业名称") $$$("keyWord_SearchSpeed").value="";
	var keyWord=encodeURIComponent($$$("keyWord_SearchSpeed").value);
    spre+="&jobMainCatalogry="+jobMainCatalogry+"&Fxueli="+Fxueli+"&Fyear="+Fyear+"&Fupdate="+Fupdate+"&keyWord="+keyWord;
    window.open(spre,"","","");
 }
 
  function OpenWinRc1()
 {
    var spre="/company/Search_Speed_Onstage1.aspx?";
    var Fschool=$$$("Fschool").value;
	var jobMainCatalogry=$$$("jobMainCatalogry_SearchSpeed").value;
	var Fxueli=$$$("Fxueli_SearchSpeed").value;
	var Fyear=$$$("Fyear_SearchSpeed").value;
	var Fupdate=$$$("Fupdate_SearchSpeed").value;
	if($$$("keyWord_SearchSpeed").value=="请输入专业名称") $$$("keyWord_SearchSpeed").value="";
	var keyWord=encodeURIComponent($$$("keyWord_SearchSpeed").value);
    spre+="&Fschool="+Fschool+"&jobMainCatalogry="+jobMainCatalogry+"&Fxueli="+Fxueli+"&Fyear="+Fyear+"&Fupdate="+Fupdate+"&keyWord="+keyWord;
    window.open(spre,"","","");
 } 
 function switchTop(sSourceId,sSourceImg,targetId,targetImg,showId)
	{
		
		$$$(sSourceId).src=sSourceImg;
		$$$(targetId).src=targetImg;
		
		switch(showId)
		{
			case "searchRc":
				$$$("searchZw").style.display="none";
				$$$("searchRc").style.display="block";
				break;
			case "searchZw":
				$$$("searchRc").style.display="none";
				$$$("searchZw").style.display="block";
				break;
		}
	}
	function lookhelp() {

	var newWindow=window.open("","sercherHelpBox","width=500,height=378");
	
	newWindow.document.write("<title>不可不看的搜索技巧</title>");
	newWindow.document.write("<style type=\"text/css\">");
	newWindow.document.write("<!--");
	newWindow.document.write("body {margin:0;padding:0;}");
	newWindow.document.write("#sercherHelpBox { font-size:12px; width:500px; font-family:\"宋体\"; background:#EFEFEF;}");
	newWindow.document.write("#sercherHelpBox strong {color:#DD7724;}");
	newWindow.document.write("#sercherHelpBox div {background:#FEFAF1;margin:2px;border:solid 1px #C0AC91;padding:0 0 10px 0;}");
	newWindow.document.write("#sercherHelpBox h1 { font-size:14px; text-align:center; }");
	newWindow.document.write("#sercherHelpBox dl { display:block;margin:0 10px; }");
	newWindow.document.write("#sercherHelpBox dl dt {display:block;font-weight:bold;margin:5px 0;}");
	newWindow.document.write("#sercherHelpBox dl dd {display:block;margin:0;line-height:19px;}");
	newWindow.document.write("#sercherHelpBox dl dd p {margin:0;display:block;padding:0 0 0 20px;text-indent:25px;}");
	newWindow.document.write("#sercherHelpBox dl dd ol {display:block;padding:0 0 0 10px;}");
	newWindow.document.write("#sercherHelpBox dl dd ol li {display:block;text-indent:25px;}");
	newWindow.document.write("-->");
	newWindow.document.write("</style>");
	newWindow.document.write("<div id=\"sercherHelpBox\">");
	newWindow.document.write("  <div>");
	newWindow.document.write("    <h1>河北人才网网搜索技巧</h1>");
	newWindow.document.write("    <dl>");
	newWindow.document.write("      <dt>一、关键字</dt>");
	newWindow.document.write("      <dd>");
	newWindow.document.write("        <ol>");
	newWindow.document.write("          <li> 关键字的输入可帮助你准确找到您感兴趣的职位或者公司，但是您在输入职位关键字时要注意：相同工作内容的岗位在不同公司可能会有不同名称，如“文员”在有的企业叫“文秘”、“行政人员”，甚至有可能叫“经理助理”等名称；“营销”也可能叫“销售”、“推销”、“市场人员”等，所以您在搜索时要合理设置搜索关键字，可多次使用不同关键字搜索。 </li>");
	newWindow.document.write("          <li> 因为很多企业在发布职位时，职位的工作地区和工作岗位分类选择的不是很明确，会导致有些职位不能查出来，例如：很多企业将职务为“软件项目经理”放入经营管理类->项目经理中，导致很多求职者通过选择计算机类来查找时无法找到该职位，所以建议求职者<strong>尽量选择大类</strong>或者<strong>经常使用关键字搜索</strong>（<strong>其它条件都选择不限</strong>）！</li>");
	newWindow.document.write("        </ol>");
	newWindow.document.write("      </dd>");
	newWindow.document.write("      <dt>二、发布日期</dt>");
	newWindow.document.write("      <dd><p>很多公司会常年招聘某些职位，但人事经理不会每天更新这些职位，这样则会出现您搜索不到这些职位的情况（<strong>如：您选择职位发布日期为一周内</strong>）；</p>");
	newWindow.document.write("      <dd><p>所以如果您想应聘此类职位，建议您在查询条件中选择“<strong>发布日期：三个月内</strong>”，以免错失良机！</p></dd>");
	newWindow.document.write("      </dd>");
	newWindow.document.write("    </dl>");
	newWindow.document.write("  </div>");
	newWindow.document.write("</div>");

}

function searchHot_wyb(e)
{
	var url="/usercontrol/seachcompany.aspx?A="+e.id+"&B=&C=&D=&E=&F=";
	url=encodeURI(url);
    window.open(url,'_blank')
}