document.write("") function showcompany(str,str2) { var x=event.x; var y=event.y; txt="
公司介绍:
"; txt=txt+str+"
招聘职位:
"; txt=txt+str2+"
"; document.getElementById("pup").innerHTML=txt; document.getElementById("pup").style.visibility="visible"; document.getElementById("pup").style.left=x+10; document.getElementById("pup").style.pixelTop=y+document.body.scrollTop+10; } function showzw(str) { var x=event.x; var y=event.y; txt=""; txt=txt+"
"; txt=txt+"职位描述
"; txt=txt+str+"
"; document.getElementById("pup").innerHTML=txt; document.getElementById("pup").style.visibility="visible"; document.getElementById("pup").style.left=x+10; document.getElementById("pup").style.pixelTop=y+document.body.scrollTop+10; } function hidepup() { document.getElementById("pup").style.innerHTML=""; document.getElementById("pup").style.visibility="hidden"; } function reloadajax(url,cc) { //创建对象 if (window.ActiveXObject) { eval("xmlHttp"+cc+" = new ActiveXObject('Microsoft.XMLHTTP');"); } else { eval("xmlHttp"+cc+" = new XMLHttpRequest();"); } if(eval("xmlHttp"+cc)) { eval("xmlHttp"+cc).open('GET',url,true); eval("xmlHttp"+cc).setRequestHeader('Content-Type','application/x-www-form-urlencoded'); eval("xmlHttp"+cc).send(); eval("xmlHttp"+cc).onreadystatechange=function() { if(eval("xmlHttp"+cc).readyState==4) { if(eval("xmlHttp"+cc).status==200) { eval("document.getElementById(cc).innerHTML = xmlHttp"+cc+".responseText"); if (cc=="uppagevar"){document.getElementById("up").disabled="";} if (cc=="nextpagevar"){document.getElementById("next").disabled="";} } } } } else { document.write('抱歉,您的浏览器不支持XMLHttpRequest,请使用IE6以上版本!'); //alert('抱歉,您的浏览器不支持XMLHttpRequest,请使用IE6以上版本!'); } } function search_reload(){ var maxpage=document.getElementById("maxpage").value; var keyvar=document.getElementById("keyvar").value; var page=document.getElementById("page").value; var pagenum=document.getElementById("pagenum").value; if (parseInt(page)>1&&parseInt(page)1){ if (document.getElementById("up").disabled==""){ document.getElementById("up").disabled="disabled"; document.getElementById("searchbody").innerHTML=document.getElementById("uppagevar").innerHTML; page=parseInt(page)-parseInt("1"); document.getElementById("page").value=page; document.getElementById("pagezt").innerHTML=page+"/"+""+maxpage+""; search_reload(); }else{ alert("服务器正在返回数据...请重试!"); } } } function tonextpage(){ var maxpage=document.getElementById("maxpage").value; var page=document.getElementById("page").value; if (parseInt(page)"+maxpage+""; search_reload(); }else{ alert("服务器正在返回数据...请重试!"); } } } function shenqing(id){ var url="ahjobajax.asp?oo=1&selectedid="+id; var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.Open("GET",url , false); xmlhttp.Send(); var txt=xmlhttp.responseText; if (txt=="您未登陆,请登陆!"){ myalert('/pers/pers_sign.asp','visible',500); } if (txt=="wcd"){myalert('/pers/wcdts.asp','visible',500);} if (txt!="wcd"&&txt!="您未登陆,请登陆!"){alert(txt);} } function showmenu(cc,cc2){ document.getElementById('menu').innerHTML=document.getElementById(cc).innerHTML; if (document.getElementById("menua0").className=='daohang2'){document.getElementById("menua0").className='daohang';} if (document.getElementById("menua1").className=='daohang2'){document.getElementById("menua1").className='daohang';} if (document.getElementById("menua2").className=='daohang2'){document.getElementById("menua2").className='daohang';} if (document.getElementById("menua3").className=='daohang2'){document.getElementById("menua3").className='daohang';} if (document.getElementById("menua4").className=='daohang2'){document.getElementById("menua4").className='daohang';} document.getElementById(cc2).className='daohang2'; } function changpass(){ if (document.getElementById("cpass").value=="确认修改"){ if (document.getElementById("newpass").value.length<6){alert("密码不能小于6位!");}else{ xx=geturlhtml("accountchang.asp?password="+document.getElementById("newpass").value); alert("您已经将密码修改为:"+document.getElementById("newpass").value); document.getElementById("account").style.visibility="hidden"; document.getElementById("passdiv").innerHTML="******"; document.getElementById("cpass").value="修改密码"; bianhei("hide"); } myalert('','hide'); } if (document.getElementById("cpass").value=="修改密码"){ document.getElementById("passdiv").innerHTML=""; document.getElementById("cpass").value="确认修改"; } } function showacc(){ myalert('pers_acc_ajax.asp','visible',500); } function shouchang(cc){ url="ahjobajax.asp?oo=2&selectedid="+cc; txt=geturlhtml(url); if (txt=="您未登陆,请登陆!"){ myalert('/pers/pers_sign.asp','visible',500); } if (txt=="wcd"){myalert('/pers/wcdts.asp','visible',500);} if (txt!="wcd"&&txt!="您未登陆,请登陆!"){alert(txt);} } function clianxi(){ myalert("lianxi.asp","visible",500); } function cemail(){ myalert("youxiang.asp","visible",500); } function changevar(cc){ cc1=cc+"_s"; cc2=cc+"_span" document.getElementById(cc).style.background="#ffffff"; document.getElementById(cc1).style.visibility="visible"; document.getElementById(cc2).style.display="none"; } function queren(cc){ cc1=cc+"_s"; cc2=cc+"_span" if (cc=="useremail"){ if (document.getElementById(cc).value.indexOf("@")==-1||document.getElementById(cc).value.indexOf(".")==-1){alert("邮箱格式书写不正确!");return false;} } if (cc=="shouji"){ if (!(document.getElementById(cc).value.length==11||document.getElementById(cc).value.length==12)){alert("您的手机号码长度不正确,请检查!");return false;} } if (cc=="dianhua"){ if ((document.getElementById(cc).value.length<11||document.getElementById(cc).value.length>13)){alert("您的电话号码长度不正确,请检查!");return false;} } if (cc=="qq"){ if ((document.getElementById(cc).value.length<5||document.getElementById(cc).value.length>10)){alert("您的QQ号码长度不正确,请检查!");return false;} } url="lianxi.asp?queren=yes&leixing="+cc+"&tvar="+document.getElementById(cc).value; xx=geturlhtml(url); if (xx=="ok"){ document.getElementById(cc2).innerHTML="已保存!"; document.getElementById(cc).style.background="#eeeeee"; document.getElementById(cc1).style.visibility="hidden"; document.getElementById(cc2).style.display=""; }else{ alert("执行错误,没有保存,请致电0510-82697686"); } } function goto(url){ if (url=="start.asp"){ document.getElementById("main").document.body.style.overflow="auto"; }else{ document.getElementById("main").document.body.style.overflow="auto"; } if (document.getElementById("checkinfo").value=="no") {document.getElementById("main").src="info.asp";alert("温馨提示:请填写基本信息。");}else{document.getElementById("main").src=url;} } function changall(){ document.getElementById("info_div").style.background=""; document.getElementById("jingyan_div").style.background=""; document.getElementById("qz_div").style.background=""; document.getElementById("pingjia_div").style.background=""; document.getElementById("edu2_div").style.background=""; document.getElementById("px_div").style.background=""; document.getElementById("wy_div").style.background=""; document.getElementById("jn_div").style.background=""; document.getElementById("jsj_div").style.background=""; document.getElementById("photo_div").style.background=""; } function changdh(id){ changall(); document.getElementById(id).style.background="#C6E0ED"; //alert("xxxxx"); } function cwcd(){ wcd=geturlhtml("wcd.asp?type=2"); if (wcd>0){ document.getElementById("bili").innerHTML=" "+wcd+"%"; document.getElementById("bilibiao").width=wcd+"%"; wcddhtext=geturlhtml("wcd.asp?type=3"); document.getElementById("wcddh").innerHTML=wcddhtext; }else{ document.getElementById("bili").innerHTML="0%"; document.getElementById("bilibiao").width=0; wcddhtext=geturlhtml("wcd.asp?type=3"); document.getElementById("wcddh").innerHTML=wcddhtext; } } function onchangevar1(cc){ if (document.getElementById("birthday").value!=document.getElementById("birthday").value1){ age1=document.getElementById("birthday").value.split("-"); age1=age1[0]; var aDate=new Date(); var thisYear=aDate.getYear(); age2=thisYear-age1; document.getElementById("birthday_err").innerHTML=" 您的年龄是"+age2.toString()+" "; }else{ } } function onchangevar(){ timer1=setInterval(onchangevar1,100); }