
var request_module='index';var request_job='index';var request_action='show';plugin('topdiv');plugin('form');includeCss(web_dir+'/css/loginbox.css');var redirect='';var authfunction='';function auth(url)
{redirect=url;if(typeof(url)=='function')
{authfunction=url;redirect='javascript:authfunction()';}
_auth(url,show_login);}
function show_login()
{if(JQ('#login_status')[0])JQ('#login_status').empty();var html='<form id="loginform" method="post" action="javascript:void(0);"><ul><li><span>用户名：</span><input type="text" name="username" id="username" validate="required:true" value="" size="20"></li><li><span>密&nbsp; 码：</span><input type="password" name="password" id="password"  value="" validate="required:true" size="20"><input name="redirect" id="redirect" value="'+redirect+'" type="hidden" /><input type="hidden" name="is_corp" id="is_corp" value="0"></li><li id="span_checkcode" style="display:none"><span>验证码：</span> <input type="hidden" name="checkcode_open" id="checkcode_open" value="0" /><input validate="required:true"  name="checkcode" id="checkcode" type="text" disabled="disabled"  class="input" style="width:60px;float:left" ><img id="checkcodeImg" src="" onClick="this.src=\'/index.php/login/checkcode\'" alt="刷新图片" align="absmiddle" style="cursor:pointer"></li><li><button type="submit">登  录</button>&nbsp;<a href="/html/login.htm"><button type="button">注 册</button></a></li><li><input name="remember" class="jzmm" type="checkbox" value="1">记住登录状态</li><li><a href="/index.php/login/forgetpass">忘记密码?</a></li></ul></form>';topdiv.show({content:html,title:'用户登录',onShow:function(){JQ('#loginform').validate({submitHandler:function(){_login(ajax.getFormValues('loginform'));}})},onClose:function(){if(JQ("#login_status")[0])login_status();}});JQ('#checkcodeImg').attr('src','/index.php/login/checkcode?t='+time());}
function close_login()
{topdiv.close();}
function login_status()
{if(!JQ('#login_status')[0]){echo('<div id="login_status"></div>')};JQ('#login_status').html((iflogin()?"<strong>"+user_name+"</strong>您好欢迎来到易找网！<a href='javascript:_logout();'>退出</a>":'您好欢迎来到易找网！<a href="/html/login.htm">[会员登录]</a><a href="/html/reg/personal.htm">[注册]</a>')+'<a  href="javascript:void(0);" onclick="SetHome(this)">设为首页</a>│<a href="javascript:void(0)" onclick="AddFavorite(\'http://www.ez.cn\',\'易找网\');">收藏本站</a><!--│<a href="#">推荐给朋友</a>│<a href="#">网站帮助</a>-->');}
function login_web(){if(!JQ('#login_web')[0])echo('<div id="login_web"></div>');JQ('#login_web').html(iflogin()?_login_web(function(res){JQ('#login_web').html(res)}):'<div id="logintab"><ul><li class="loginnow"><a href="javascript:void(0)" onclick="toptab(this,\'personal\',\'loginnow\',\'loginbar\');" >个人登录</a></li><li><a href="javascript:void(0)" onclick="toptab(this,\'corp\',\'loginnow\',\'loginbar\');">企业登录</a> </li></ul></div><div id="personal" class="loginbar"><form id="form1" name="form1" class="logform" method="post" action="javascript:void(0)"><ul><li><label>用户名：</label><input type="text" name="username" id="username" class="name" /></li><li><label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label><input name="password"  id="password"  type="password" validate="required:true" class="password"/></li><li><input name="remember" id="remember" type="checkbox" value="1" />记住我<span class="forget"><a href="/html/forgetpass.htm" target="_blank">忘记密码</a></span><input type="hidden" name="is_corp" id="is_corp" value="0"><input name="logbtn" type="image" id="logbtn" src="/images/job/loginbtn.jpg"  onclick="_login(ajax.getFormValues(\'form1\'))"/></li></ul><div id="goregsiter"><a href="/index.php/reg/personal">加入易找网，好工作尽在咫尺！</a></div><div id="jrbtn"><a href="/index.php/reg/personal"><img src="/images/job/jrbtn.jpg" /></a></div></form></div><div id="corp" class="loginbar" style="display:none">         <form id="form2" name="form2" class="logform" method="post" action="javascript:void(0)"><ul><li><label>用户名：</label><input type="text" name="username" id="username" class="name" /></li><li><label>密&nbsp;&nbsp;&nbsp;&nbsp;码：</label><input name="password"  id="password"  type="password" validate="required:true" class="password"/></li><li><input type="hidden" name="is_corp" id="is_corp" value="1"><input name="logbtn" type="image" id="logbtn" src="/images/job/loginbtn.jpg"  onclick="_login(ajax.getFormValues(\'form2\'))"/></li></ul><div id="goregsiter"><a href="/index.php/reg/corpshow">加入易找企业会员，找人才不再难。</a></div><div id="jrbtn"><a href="/index.php/reg/corpshow"><img src="/images/job/qybtn.JPG" /></a></div></form>   </div >');}
function ucfirst(str){var f=str.charAt(0).toUpperCase();return f+str.substr(1);}
function SetHome(obj){try{obj.style.behavior='url(#default#homepage)';obj.setHomePage('http://www.ez.cn/');}catch(e){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");}catch(e){alert("抱歉，此操作被浏览器拒绝！\n\n请在浏览器地址栏输入“about:config”并回车然后将[signed.applets.codebase_principal_support]设置为'true'");};}else{alert("抱歉，您所使用的浏览器无法完成此操作。\n\n您需要手动将'http://www.ez.cn/'设置为首页。");};};};function AddFavorite(sURL,sTitle)
{try
{window.external.addFavorite(sURL,sTitle);}
catch(e)
{try
{window.sidebar.addPanel(sTitle,sURL,"");}
catch(e)
{alert("加入收藏失败，请使用Ctrl+D进行添加");}}}
function toptab(obj,go,style,content){JQ(obj).parent().siblings().removeClass(style);JQ(obj).parent().addClass(style);JQ('.'+content).hide();JQ('#'+go).show();}
function showArea($str,$a,$b){if($str.length>1){if($str.indexOf(','))
{var arr=$str.split(',');_getarea('1',arr[0],function(res){JQ('#'+$a).empty().append(res)});_getarea(arr[0],arr[1],function(res){JQ('#'+$b).empty().append(res)});}}}
function favorPosition(formName)
{if(chkCheckBoxChs('cp_id[]')==false)
{alert('请至少选择一项!');return;}else{_favorPosition(ajax.getFormValues(formName));}}
function chkCheckBoxChs(objNam){var obj=document.getElementsByName(objNam);var objLen=obj.length;var objYN;var i;objYN=false;for(i=0;i<objLen;i++){if(obj[i].checked==true){objYN=true;break;}}
return objYN;}
function selector(){var selector={induList:[],funcList:[],selIndu:function(type,amount){var html;indued=JQ('#data_'+type).val();if(indued)
{var arrindued=indued.split('+');for(key in arrindued)
{this.add(arrindued[key]);}}
_getIndu(function(res){if(res){html='<div class="layer"><div class=""><h2>您选择的职位是：</h2><div class="laybtn"><input type="button" name="" id="" value="确定" onclick="selector.save(\''+type+'\')"/><input type="button" name="" id="" value="清空" onclick="selector.empty(\'indu\');" /></div></div><div class="dcl"></div><div class="laycon"><ul id="hySelecting" class="ulindu"></ul></div><div class="dcl"></div><div class="laycon"><h2>服务业：</h2><div class="cl"/><ul class="ulindu">';for(key in res)
{html+='<li class="hy'+res[key].i_id+' liindu"><input type="checkbox" name="cb'+res[key].i_id+'"  value="'+res[key].i_name+'" onclick="selector.selInduItem('+res[key].i_id+',\''+res[key].i_name+'\',\''+amount+'\')" >'+res[key].i_name+'</li>';}
html+='</ul></div></div>';topdiv.show({content:html,title:'从事的工作行业',width:700,height:400,onClose:function(){},onShow:function(){if(indued){var arr_indued=indued.split('+');for(var c in arr_indued)
{JQ('input[name^=cb]').each(function(){if(JQ(this).val()==arr_indued[c]){JQ(this).attr('checked',true);JQ(this).parent().clone().appendTo('#hySelecting');}});}}}})}})},selFunc:function(type,amount){var func_html;funced=JQ('#data_'+type).val();if(funced)
{var arrfunced=funced.split('+');for(key in arrfunced)
{this.addFunc(arrfunced[key]);}}
_getFunc(0,function(res){if(res){func_html='<div class="layer"><div class=""><h2>您选择的职位是：</h2><div class="laybtn"><input type="button" name="" id="" value="确定" onclick="selector.save(\''+type+'\')"/><input type="button" name="" id="" value="清空" onclick="selector.empty(\'func\');" /></div></div><div class="dcl"></div><div class="laycon"><ul id="zwSelecting" class="ulindu"></ul></div><div class="dcl"></div><div class="laycon"><h2>服务业：</h2><div class="cl"/><ul class="ulindu">';for(key in res)
{func_html+='<li id="zw'+res[key].f_id+'" class="liindu"><a href="javascript:void(0)" onclick="selector.showSub('+res[key].f_id+',\''+amount+'\');">'+res[key].f_name+'</a>';func_html+='</li>'}
func_html+='</ul></div></div>';topdiv.show({content:func_html,title:'从事的工作职位',width:700,height:400,onClose:function(){},onShow:function(){if(selector.funcList.length>0){for(var c in selector.funcList)
{_getFunc(selector.funcList[c],'name',function(res){JQ('#zwSelecting').append('<li class="lisubfunc subzw'+res.f_id+'"><input type="checkbox" value="'+res.f_name+'" name="subcb110" onclick="selector.selFuncItem('+res.f_id+',\''+res.f_name+'\','+amount+');" checked/>'+res.f_name+'</li>');});}}}})}})},showSub:function(pid,amount){var show_html='';_getFunc(pid,function(res){show_html+='<ul class="ulsubfunc">';for(key in res){show_html+='<li class="lisubfunc subzw'+res[key].f_id+'" ><input type="checkbox" onclick="selector.selFuncItem('+res[key].f_id+',\''+res[key].f_name+'\',\''+amount+'\');" name="subcb'+res[key].f_id+'" value="'+res[key].f_name+'" />'+res[key].f_name+'</li>';}
show_html+='</ul>';topdiv.show({id:'nowfunc_sub',closetime:3,modal:false,overlay:0,position:[20,40,'#zw'+pid],content:show_html,onShow:function(){if(selector.funcList.length>0){for(var c in selector.funcList)
{JQ('input[name^=subcb]').each(function(){if(JQ(this).val()==selector.funcList[c]){JQ(this).attr('checked',true);}});}}}})});},selFuncItem:function(id,name,amount){if(JQ('input[name=subcb'+id+']').attr('checked')==true)
{if(JQ('#zwSelecting').find('.subzw'+id).html())
{JQ('#zwSelecting .subzw'+id).remove();this.delFunc(name);}else{if(this.funcList.length>=amount){JQ('input[name=subcb'+id+']').attr('checked',false);return alert("现在从事的行业，您最多选择"+amount+"个!");}else{JQ('.subzw'+id).clone().appendTo('#zwSelecting');this.addFunc(name);}}}else{JQ('#zwSelecting .subzw'+id).remove();JQ('input[name=subcb'+id+']').attr('checked',false);this.delFunc(name);}},clickFunc:function(obj,id){offset=JQ(obj).offset();JQ('#subfunc'+id).css('left',(offset.left-220)+'px');JQ('#subfunc'+id).css('top',(offset.top-150)+'px');JQ('.ulsubfunc').hide();JQ('#subfunc'+id).show();JQ('#subfunc'+id).mouseover(function(){JQ(this).show();});JQ('#subfunc'+id).mouseout(function(){JQ(this).hide();});JQ(obj).blur(function(){JQ('.ulsubfunc').hide();});},selInduItem:function(id,name,amount){if(JQ('input[name=cb'+id+']').attr('checked')==true)
{if(JQ('#hySelecting').find('.hy'+id).html())
{JQ('#hySelecting .hy'+id).remove();this.del(name);}else{if(this.induList.length>=amount){JQ('input[name=cb'+id+']').attr('checked',false);return alert("您最多选择"+amount+"个!");}else{JQ('.hy'+id).clone().appendTo('#hySelecting');this.add(name);}}}else{JQ('#hySelecting .hy'+id).remove();JQ('input[name=cb'+id+']').attr('checked',false);this.del(name);}},add:function(item){var newer=true;if(this.induList){for(var i in this.induList)
{if(this.induList[i]==item){newer=false;break;}}}
if(newer){this.induList.push(item);}},del:function(item){if(this.induList){for(var i in this.induList)
{if(this.induList[i]==item){this.induList.splice(i,1);break;}}}},addFunc:function(item){var newer=true;if(this.funcList){for(var i in this.funcList)
{if(this.funcList[i]==item){newer=false;break;}}}
if(newer){this.funcList.push(item);}},delFunc:function(item){if(this.funcList){for(var i in this.funcList)
{if(this.funcList[i]==item){this.funcList.splice(i,1);break;}}}},save:function(type){if(type.indexOf('indu')>0)
{var data=this.induList.join('+');}else if(type.indexOf('func')>0)
{var data=this.funcList.join('+');}
JQ('#'+type).empty().html(data);JQ('#data_'+type).val(data);this.empty();topdiv.close();},empty:function(type){if(type=='indu'){this.induList=[];if(JQ('#hySelecting')[0])JQ('#hySelecting').empty();JQ('input[name^=cb]').attr('checked',false);}else if(type=='func'){this.funcList=[];if(JQ('#zwSelecting')[0])JQ('#zwSelecting').empty();JQ('input[name^=subcb]').attr('checked',false);}}};return selector;}
var selector=new selector();document.write("<script type=\"text/javascript\">\n");document.write("var PamsAjaxConfig = {\n");document.write("requestURI: \"/index.php/index/ajaxRun?request_action=show&_=1264476309\",\n");document.write("method: \"POST\",\n");document.write("statusMessages: \"1\",\n");document.write("jsFunPrefix: \"_\",\n");document.write("jsFunCachePrefix: \"_c_\",\n");document.write("debug: \"\"\n");document.write("};\n");document.write("var PamsAjaxLoaded=false;\n");document.write("function _login(){return ajax.call(\"login\", arguments, false);}\n");document.write("function _c_login(){return ajax.call(\"login\", arguments, \"file\");}\n");document.write("function _jqc_login(){return ajax.call(\"login\", arguments, \"jq\");}\n");document.write("function _login2(){return ajax.call(\"login2\", arguments, false);}\n");document.write("function _c_login2(){return ajax.call(\"login2\", arguments, \"file\");}\n");document.write("function _jqc_login2(){return ajax.call(\"login2\", arguments, \"jq\");}\n");document.write("function _logout(){return ajax.call(\"logout\", arguments, false);}\n");document.write("function _c_logout(){return ajax.call(\"logout\", arguments, \"file\");}\n");document.write("function _jqc_logout(){return ajax.call(\"logout\", arguments, \"jq\");}\n");document.write("function _AddFavor(){return ajax.call(\"AddFavor\", arguments, false);}\n");document.write("function _c_AddFavor(){return ajax.call(\"AddFavor\", arguments, \"file\");}\n");document.write("function _jqc_AddFavor(){return ajax.call(\"AddFavor\", arguments, \"jq\");}\n");document.write("function _favorPosition(){return ajax.call(\"favorPosition\", arguments, false);}\n");document.write("function _c_favorPosition(){return ajax.call(\"favorPosition\", arguments, \"file\");}\n");document.write("function _jqc_favorPosition(){return ajax.call(\"favorPosition\", arguments, \"jq\");}\n");document.write("function _DelFavor(){return ajax.call(\"DelFavor\", arguments, false);}\n");document.write("function _c_DelFavor(){return ajax.call(\"DelFavor\", arguments, \"file\");}\n");document.write("function _jqc_DelFavor(){return ajax.call(\"DelFavor\", arguments, \"jq\");}\n");document.write("function _getarea(){return ajax.call(\"getarea\", arguments, false);}\n");document.write("function _c_getarea(){return ajax.call(\"getarea\", arguments, \"file\");}\n");document.write("function _jqc_getarea(){return ajax.call(\"getarea\", arguments, \"jq\");}\n");document.write("function _getareaName(){return ajax.call(\"getareaName\", arguments, false);}\n");document.write("function _c_getareaName(){return ajax.call(\"getareaName\", arguments, \"file\");}\n");document.write("function _jqc_getareaName(){return ajax.call(\"getareaName\", arguments, \"jq\");}\n");document.write("function _getIndu(){return ajax.call(\"getIndu\", arguments, false);}\n");document.write("function _c_getIndu(){return ajax.call(\"getIndu\", arguments, \"file\");}\n");document.write("function _jqc_getIndu(){return ajax.call(\"getIndu\", arguments, \"jq\");}\n");document.write("function _getFunc(){return ajax.call(\"getFunc\", arguments, false);}\n");document.write("function _c_getFunc(){return ajax.call(\"getFunc\", arguments, \"file\");}\n");document.write("function _jqc_getFunc(){return ajax.call(\"getFunc\", arguments, \"jq\");}\n");document.write("function _refreshResume(){return ajax.call(\"refreshResume\", arguments, false);}\n");document.write("function _c_refreshResume(){return ajax.call(\"refreshResume\", arguments, \"file\");}\n");document.write("function _jqc_refreshResume(){return ajax.call(\"refreshResume\", arguments, \"jq\");}\n");document.write("function _login_web(){return ajax.call(\"login_web\", arguments, false);}\n");document.write("function _c_login_web(){return ajax.call(\"login_web\", arguments, \"file\");}\n");document.write("function _jqc_login_web(){return ajax.call(\"login_web\", arguments, \"jq\");}\n");document.write("</script>\n");document.write("<script type=\"text/javascript\" src=\"/tmp/PamsAjax.js?_=1264476309\"></script>\n");document.write("\n");
