function TellFriendOpen(){	window.open('/tellfriend.aspx?track=1036','Share','width=580,height=480,resizable=yes,scrollbars=yes,status=0');}
function StrCode(str){if(encodeURIComponent) return encodeURIComponent(str);if(escape) return escape(str);}
function UnStrCode(str){if(decodeURIComponent ) return decodeURIComponent (str);if(unescape) return unescape(str);}
function Trim(s){var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/);return (m == null)?"":m[1];}
function HtmlEncode(text){var re = {'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;'};for (i in re) text = text.replace(new RegExp(i,'g'), re[i]);return text;}
function HtmlDecode(text){var re = {'&lt;':'<','&gt;':'>','&amp;':'&','&quot;':'"'};for (i in re) text = text.replace(new RegExp(i,'g'), re[i]);return text;}
function gid(id){return document.getElementById?document.getElementById(id):null;}
function gname(name){return document.getElementsByTagName?document.getElementsByTagName(name):new Array()}
var get_e_src = function(e){if(e) return e.target;if(window.event) return window.event.srcElement;return null;};
function addEvent(obj,evType,fn,useCapture ){if (obj.addEventListener){obj.addEventListener( evType, fn, useCapture );return true;}if (obj.attachEvent) return obj.attachEvent( "on" + evType, fn );alert( "Unable to add event listener for " + evType + " to " + obj.tagName );}
function Browser(){var ua, s, i;this.isIE = false;this.isNS = false;this.isOP = false;this.isSF = false;ua = navigator.userAgent.toLowerCase();s = "opera";if ((i = ua.indexOf(s)) >= 0){this.isOP = true;return;}s = "msie";if ((i = ua.indexOf(s)) >= 0) {this.isIE = true;return;}s = "netscape6/";if ((i = ua.indexOf(s)) >= 0) {this.isNS = true;return;}s = "gecko";if ((i = ua.indexOf(s)) >= 0) {this.isNS = true;return;}s = "safari";if ((i = ua.indexOf(s)) >= 0) {this.isSF = true;return;}}
function ClickButton(event, buttonid){var btnObj = gid(buttonid);if (btnObj){var e = (event||window.event);if (e.keyCode == 13){btnObj.click();return false;}}return true;}
function WarpClass(eID,tID,fID,ev){var eObj = document.getElementById(eID);var tObj = document.getElementById(tID);var fObj = document.getElementById(fID);if (eObj && tObj){if (!tObj.style.display || tObj.style.display == "block"){tObj.style.display = "none";eObj.className = "Warp";if (fObj) fObj.style.display = "none";}else{tObj.style.display = "block";eObj.className = "UnWarp";if (ev) eval(ev);if (fObj) fObj.style.display = "block";}}}

function mcl(show, div, btn, over, padd){var objdiv = gid(div);var objbtn = gid(btn);if (objdiv && objbtn){var browser = new Browser();if (show){objdiv.style.display = "block";if (browser.isIE && over){var allselect = gname("select");for (var i=0; i<allselect.length; i++){allselect[i].style.visibility = "hidden";}}objdiv.style.top = (objbtn.offsetTop + objbtn.offsetHeight - 2) + "px";objdiv.style.left = (objbtn.offsetLeft - (padd?0:50)) + "px";}else{objdiv.style.display = "none";if (browser.isIE && over){var allselect = gname("select");for (var i=0; i<allselect.length; i++){allselect[i].style.visibility = "visible";}}}}}
function CopyURL(){if (window.clipboardData){var copy = window.location.href;var ok = window.clipboardData.setData("Text", copy);if (ok){alert("已经把当前网址复制到剪贴板，\n\n"+"您可以使用(Ctrl+V或鼠标右键)粘贴功能，\n\n"+"发送到MSN、QQ、Blog或者论坛。\n");}}}
function SelectTagGet(svalue,tvalue){if(svalue!=null){if(tvalue=="10")location.href = "/" + svalue + "/food";else if(tvalue=="20")location.href = "/" + svalue + "/shopping";else if(tvalue=="30")location.href = "/" + svalue + "/life";else if(tvalue=="40")location.href = "/" + svalue + "/service";else location.href = "/" + svalue + "/food";}}
function SearchClass(city, sel1, sel2, sel3){var sel1Obj = gid(sel1);var sel2Obj = gid(sel2);var sel3Obj = gid(sel3);if (sel1Obj && sel2Obj && sel3Obj){var sel1Value = sel1Obj.value;var sel2Value = sel2Obj.value;var sel3Value = sel3Obj.value;if (sel2Value == "0") sel2Value = "";if (sel3Value == "0"){sel3Value = "";}else{sel3Value = "&d=" + sel3Value;}var SearchURL = "/search/m/" + city + "/" + sel1Value + "/" + StrCode(sel2Value + sel3Value);location.href = SearchURL;}}
function SearchKeyword(city, sel1, sel2, sel3){var sel1Obj = gid(sel1);var sel2Obj = gid(sel2);var sel3Obj = gid(sel3);if (sel1Obj && sel2Obj && sel3Obj){var sel1Value = sel1Obj.value;var sel2Value = sel2Obj.value;var sel3Value = sel3Obj.value;if (!sel3Value){alert("请输入搜索关键字!");sel3Obj.focus();return;}sel3Value = Trim(sel3Value);sel3Value = sel3Value.replace("%","");sel3Value = sel3Value.replace("\"","");var SearchURL = "/search/k/" + city + "/" + sel1Value + "/" + sel2Value + "/" + StrCode(sel3Value);location.href = SearchURL;}}

function InitRequest(){var C_req = null;try{C_req = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){try{C_req = new ActiveXObject("Microsoft.XMLHTTP");}catch(oc){C_req = null;}}if (!C_req && typeof XMLHttpRequest != "undefined"){try{C_req = new XMLHttpRequest();}catch(fa){alert("对不起!您的浏览器不支持该功能,请使用Internet Explorer 6.0或FireFox浏览器!");C_req = null;}}return C_req;}
function PostRequest(url, data){var AjaxRequestObj = InitRequest();if (AjaxRequestObj != null){AjaxRequestObj.onreadystatechange = function (){if (AjaxRequestObj.readyState == 4 && AjaxRequestObj.responseText){ProcessAjaxData(AjaxRequestObj.responseText);}};AjaxRequestObj.open("POST", url, true);AjaxRequestObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");AjaxRequestObj.send(data);}}
function ProcessAjaxData(data){eval(data);}
function DialogShow(showdata,ow,oh,w,h){var objDialog = gid("Msg");if(objDialog!=null) objDialog.innerHTML = "<div class=\"Loading\" style=\"margin-top:20px;\">" + showdata + "</div>";}
function DialogHide(){var objDialog = gid("Msg");if(objDialog!=null) objDialog.innerHTML = "";}
function Track(id){var PostData = "do=track&id=" + id;PostRequest(window.location.protocol + "//" + window.location.host + "/AJAX_Comm.aspx", PostData);}
function checkLogin(content,n) {
	if (n == 0 && content.value == "输入关键字-例如：销售"){
	content.value="";
	}
	if (n == 1){
		if(content.value == "输入关键字-例如：销售"){content.value="";}	
	}
	if (n == 2 && content.value == ""){content.value = "输入关键字-例如：销售";}
}
function display(num){
 document.getElementById('c'+num).className="cc1";
 document.getElementById('n'+num).style.display="";
 for(var i=1;i<=10;i++){
 if(i!=num){
 if(document.getElementById('c'+i)!=null&&document.getElementById('n'+i)!=null){
 document.getElementById('c'+i).className="cc2";
 document.getElementById('n'+i).style.display="none";
 }
 }
 }
}
function turnit(content,img)
{
	var conobj;
	var imgobj;
	conobj=document.getElementById(content);
	imgobj=document.getElementById(img);

	if(conobj.style.display=="none")
	{
		conobj.style.display="";
		imgobj.src="/t1/img/u.gif";
	}
	else
	{
		conobj.style.display="none"; 
		imgobj.src="/t1/img/d.gif";
	}
}
function show(id,pic){
	if (document.getElementById(id).style.display=="none"){
		document.getElementById(id).style.display="block";
		document.getElementById(pic).src="/t1/img/cl.gif";
	}else{
		document.getElementById(id).style.display="none";
		document.getElementById(pic).src="/t1/img/op.gif";
	}
}
var EnmAds = new Array();
var enmadsNum = 0;
enmadsNum = EnmAds.push("<div class=\"ad\">专业职位搜索引擎</div>");
enmadsNum = EnmAds.push("<div class=\"ad\">一网打尽各路招聘</div>");
enmadsNum = EnmAds.push("<div class=\"ad\">(免费)专家在线为您指点找工作</div>");
var i = 0;
var interval = 6000;
function playEnmAds(){
document.all.EnmAdsDiv.filters.revealTrans.apply();
document.all.EnmAdsDiv.innerHTML = EnmAds[i];
document.all.EnmAdsDiv.filters.revealTrans.play(); 
}
function showEnmAds(){
playEnmAds();
if(i<enmadsNum-1){
i++;
}else{
i = 0;
}
timer = setTimeout("showEnmAds()",interval);
}
function viewpost(uid,url){
window.open ('/apply.do?motion=viewPost&uid='+uid,'','');
}
function  findHotKey(name){        

	window.location.href=name+".html";
}
function checkLogin(content,n) {
	if (n == 0 && content.value == "输入关键字-例如：销售"){
	   
		content.value="";
	}
	if (n == 1){
		if(content.value == "输入关键字-例如：销售"){content.value="";}
		
	}
	if (n == 2 && content.value == ""){content.value = "输入关键字-例如：销售";}
}
	function readcookie()
    {
	 var c = document.cookie.split(";");
	 for(var j=0;j<c.length;j++){
       var cookiepair = c[j].split("=");
        if(cookiepair[0] != null
           && cookiepair[1] != null)
        {
            var truevalue = "";
            var arraycode = cookiepair[1].split("+");
            for(var i = 0; i < arraycode.length; ++i)
                truevalue += String.fromCharCode(arraycode[i]);
            if(cookiepair != null)
            {        
              if("pro"==Trim(cookiepair[0])){					  
					  pro.value=cookiepair[1];
					  citylist(pro,city);
					  searchForm.province.value=cookiepair[1];
			   } 
			   if("city"==Trim(cookiepair[0])){
			   
					showcity(pro,city,cookiepair[1]);
					searchForm.province.value=pro.value;
					searchForm.location.value=city.value;
			   }  
			}
        }
	}
        
    }
    function Trim(str){
 if(str.charAt(0) == " "){
  str = str.slice(1);
  str = Trim(str); 
 }
 return str;
}
function  selPovince(){
	citylist(pro,city);
	searchForm.province.value=pro.value;
	searchForm.location.value='';
	el=document.getElementById("locationtext");
	if(el!=null){
		if(pro.selectedIndex>0){
			el.innerHTML=pro.options[pro.selectedIndex].text;
		}
	}
}
function selCity(){
	searchForm.location.value=city.value;
	el=document.getElementById("locationtext");
	if(el!=null){
		if(city.selectedIndex>0){
			el.innerHTML=city.options[city.selectedIndex].text;
		}
	}
}
function  setLocationView(){
	el=document.getElementById("locationtext");
	if(el!=null){
		if(city.selectedIndex>0){
			
			el.innerHTML=city.options[city.selectedIndex].text;
		}else if(pro.selectedIndex>0){
			
			el.innerHTML=pro.options[pro.selectedIndex].text;
		}
	}
}

function onchecksubmit() {

	document.searchForm.postkind.value=document.searchForm.ppostkind.value;

}
	
function changesel(thesel,id){
	
	document.searchForm.postkind.value=id;
	document.searchForm.ppostkind.value=id;
	document.searchForm.submit();
}	
function  findPostBycorpname(name){        
			document.searchForm.content.value=name;
		    document.searchForm.province.value="";
			document.searchForm.location.value="";
			document.searchForm.postkind.value="";
			document.searchForm.publishdate.value="";
			el=document.searchForm.kinfo;
			if(el!=null){
				el="";
			}
			document.searchForm.submit();	 
}

function openapply(url){
	window.open ('/apply.do?postId='+url,'u_apply','');
}
  function selpostkind(id){
  
  	document.searchForm.postkind.value=id;
	document.searchForm.page.value=1;
	checktime();
	
  }
 function gosubmit(){  
  	document.searchForm.domain.value="";	
  	document.searchForm.page.value=1;
  	checktime();
 }
lasttime=0;
function checktime(){	
	d = new Date();
	nowtime=d.getTime();
	
	
	if((nowtime-lasttime)<5000){
		alert("请稍候");		
	}else{	
		lasttime=nowtime;		
		document.searchForm.submit();
	}


}
  function dosubmit(page2){  
  	document.searchForm.page.value=page2;
	checktime();
  }  

function showform(){
con="";
con +="<form name=\"searchForm\" method=\"get\" action=\"\/sou.do\">";
con +="<ul>";
con +="<select name=\"ppostkind\" style=\'width:175px\' onchange=\"onchecksubmit()\">";
con +="<option value=\"\" selected=\"selected\">请选择职位类别<\/option>";
con+='<option value="120000">计算机/IT</option>';
con+='<option value="140000">电子/电气/通信</option>';
con+='<option value="160000">机械工程</option>';
con+='<option value="180000">生产/运营</option>';
con+='<option value="200000">金融（银行/证券/保险）</option>';
con+='<option value="240000">财会/审计/统计</option>';
con+='<option value="260000">经营/管理</option>';
con+='<option value="280000">销售/市场/广告/公关</option>';
con+='<option value="300000">创意与设计</option>';
con+='<option value="320000">人力资源/行政/文职</option>';
con+='<option value="360000">生物/制药/化工/环保</option>';
con+='<option value="420000">医疗卫生/美容保健</option>';
con+='<option value="460000">建筑/房地产/物业</option>';
con+='<option value="480000">普通文职员工</option>';
con+='<option value="500000">外贸/物流/运输</option>';
con+='<option value="520000">顾问/培训师</option>';
con+='<option value="540000">律师/法律</option>';
con+='<option value="560000">教师/教育/培训</option>';
con+='<option value="580000">科研人员</option>';
con+='<option value="620000">翻译</option>';
con+='<option value="660000">旅游/酒店/餐饮</option>';
con+='<option value="680000">影视/写作/媒体/文体</option>';
con+='<option value="720000">公务员</option>';
con+='<option value="740000">商业零售</option>';
con+='<option value="780000">地矿/冶炼工程师</option>';
con+='<option value="840000">毕业生/实习/兼职</option>';
con+='<option value="860000">技术研发</option>';
con+='<option value="880000">技工</option>';
con+='<option value="900000">其他</option>';
con +="<\/select>";
con +="<\/ul>";
con +="<ul>";
con +="<select name=\"publishdate\" style=\'width:80px;\'>";
con +="<option value=\"1\" selected=\"selected\">今天<\/option>";
con +="<option value=\"2\">两天内<\/option>";
con +="<option value=\"7\">一周内<\/option>";
con +="<option value=\"\">一个月内<\/option>";
con +="<\/select>";
con +="<\/ul>";
con +="<input type=\"hidden\" name=\"fs\" value=\"\" \/>";
con +="<input type=\"hidden\" name=\"province\" value=\"\" \/>";
con +="<input type=\"hidden\" name=\"location\" value=\"\" \/>";
con +="<input type=\"hidden\" name=\"postkind\" value=\"\" \/>";
con +="<input type=\"hidden\" name=\"page\" value=\"1\" \/>";
con +="<input type=\"hidden\" name=\"cname\" value=\"\"\/>";
con +="<input type=\"hidden\" name=\"pname\" value=\"\"\/>";
con +="<input type=\"hidden\" name=\"s\" value=\"\"\/>";
con +="<ul>";
con +="<input name=\"words\" type=\"text\" class=\"searchbox\" value=\"输入关键字-例如：销售\" onclick=\"this.focus();checkLogin(this,0)\" onblur=\"checkLogin(this,2)\" onfocus=\"checkLogin(this,1)\" \/>";
con +="<\/ul>";
con +="<ul>";
con +="          <select  name=\"u\" class=\"ip3\" style=\'width:75px;\' >";
con +="            <option value=\"\" selected=\"selected\">所有职位<\/option>";
con +="            <option value=\"lietou\">猎头职位<\/option>";
con +="            <option value=\"famous\">名企职位<\/option>";
con +="          <\/select>";
con +="<\/ul>";
con +="<ul>";
con +="<input type=\"button\" name=\"Submit\" value=\"给我搜\" style=\"cursor:pointer;\" onclick=\"subsou();\"\/>";
con +="<\/ul>";
con +="<ul><\/ul>";
con +="<\/form>";

el=document.getElementById("search");
el.innerHTML=con;

}
function showpostlist1(postname){
	try{
		temp1=searchForm.postkind.value;
		
		if(temp1.length==6){
			temp=temp1.substring(0,3)+"000";
			turnit('c'+temp,'i'+temp);
			postkindshow=document.getElementById('c'+temp);
			postkindshow.innerHTML = postkindshow.innerHTML.replace(postname,"<font color=#FF0000>"+postname+"</font>");
		}
	}catch(error){
	}
}
function showhead(){
el=document.getElementById("head");
el1=document.getElementById("search");
eln=document.getElementById("banner");
elm=document.getElementById("m");
elm.parentNode.insertBefore(el1,elm);
el1.parentNode.insertBefore(el,el1);
el1.parentNode.insertBefore(eln,el1);
}
function indexFinish(){
els1=document.all.item("new1");
els=document.all.item("new");
bottomel=document.getElementById("bottom");
if(els1!=null)bottomel.parentNode.insertBefore(els1,bottomel);
if(els!=null)bottomel.parentNode.insertBefore(els,bottomel);
}