function $$(n){return n?document.getElementById(n):undefined}function Ajax(n){typeof AjaxClass=="undefined"&&Pcwl.Use("AjaxClass");var t=new AjaxClass;t.onsuccess=function(t){if(n.isReturnJson==!0){typeof JSON=="undefined"&&Pcwl.Use("JSON");var i=JSON.parse(t);n.callBack(i)}else n.callBack(t)},t.get(n.url,n.content,n.isyb,n.method,n.type)}function AjaxJson(n){n.isReturnJson=!0,Ajax(n)}function GetForm(n){typeof AjaxClass=="undefined"&&Pcwl.Use("AjaxClass");var t=new AjaxClass;return t.GetForm(n)}function GetJsonByForm(n){typeof AjaxClass=="undefined"&&Pcwl.Use("AjaxClass");var t=new AjaxClass;return t.GetJsonObject(n)}function SetSort(n){var t=$("#sort").val();t!=n?($("#sort").val(n),GotoPage(1)):GotoPage($("#pages").val())}function GotoPage(n){$("#pages").val(n),document.forms.SearchResultForm.onsubmit()&&document.forms.SearchResultForm.submit()}function GetSearchCondition(){var n=[],t=0,i;return n[t++]=$("#SearchResultForm #keyword").val(),n[t++]=$("#SearchResultForm #nokeyword").val(),n[t++]=$("#SearchResultForm #type").val(),n[t++]=$("#SearchResultForm #isall").val(),n[t++]=$("#SearchResultForm #city").val(),n[t++]=$("#SearchResultForm #workwill").val(),n[t++]=$("#SearchResultForm #industry").val(),n[t++]=$("#SearchResultForm #deal").val(),n[t++]=$("#SearchResultForm #isnodeal").val(),n[t++]=$("#SearchResultForm #update").val(),n[t++]=$("#SearchResultForm #publishdate").val(),n[t++]=$("#SearchResultForm #workyear").val(),n[t++]=$("#SearchResultForm #isnowork").val(),n[t++]=$("#SearchResultForm #jobtype").val(),n[t++]=$("#SearchResultForm #edu").val(),n[t++]=$("#SearchResultForm #isnoedu").val(),n[t++]=$("#SearchResultForm #age").val(),i=n.join(",")}function GetAllSearchCondition(){var r=document.forms.SearchResultForm,n=[],t=0,i;return n[t++]=GetSearchCondition(),n[t++]=$("#SearchResultForm #pages").val(),n[t++]=$("#SearchResultForm #sort").val(),i=n.join(",")}function OnSearch(){document.forms.SearchResultForm.onsubmit()&&document.forms.SearchResultForm.submit()}function SendAppByList(n){Pcwl.Use("Pcwl.Person.JobApp",!0,function(t){t.SendAppByList(n)})}function SendAppById(n){Pcwl.Use("Pcwl.Person.JobApp",!0,function(t){t.SendAppById(n)})}function CollectById(n){Pcwl.Use("Pcwl.Person.JobApp",!0,function(t){t.CollectById(n)})}function CollectByList(n){Pcwl.Use("Pcwl.Person.JobApp",!0,function(t){t.CollectByList(n)})}function AddSearcher(){var n=$("#keyword").val()=="请输入职位名称或企业名称"?"":$("#keyword").val();Pcwl.Use("Pcwl.Person.Searcher",!0,function(t){t.AddSearchBySearchCondition({FirstName:n,FormId:"SearchResultForm"})})}function PageInit(){$$("search_res_type").onclick=function(n){var t=this;Pcwl.Use("Pcwl.JobCategory",!0,function(i){i.Show(n,t,{AlertId:"postBox",Title:"请选择职位类别",AlertBackId:"postBoxBack",TextId:"postText",ValueId:"workwill",FirstText:"请选择",MaxSelect:5}),i.OnSure=function(n){if(n)if($$("postText").style.color="#535353",$$("postText").innerHTML=$$("postText").innerHTML,document.getElementById("select_search_res_type")!=undefined)document.getElementById("select_search_res_type").innerHTML=$$("postText").innerHTML+" x";else{var i=document.getElementById("SxBox"),r=document.getElementById("fd_4"),t=document.createElement("a");t.setAttribute("id","select_search_res_type"),t.setAttribute("class","fd_3 condition"),t.innerHTML=$$("postText").innerHTML+" x",i.insertBefore(t,r),document.getElementById("fd_4").style.display="inline"}else $$("postText").style.color="#a0a0a0",document.getElementById("select_search_res_type")!=undefined&&(document.getElementById("SxBox").removeChild(document.getElementById("select_search_res_type")),document.getElementById("fd_4").style.display="none")}})}}function PageCityShows(){$$("search_res_places").onclick=function(n){var t=this;Pcwl.Use("Pcwl.CityControl",!0,function(i){i.Show(n,t,{AlertId:"cityBox",Title:"请选择工作地区",TextId:"cityText",ValueId:"city",FirstText:"工作地区",Offset:{Relative:t.parentNode.parentNode,OffsetLeft:0,OffsetTop:t.parentNode.offsetHeight+1},MaxSelect:5}),i.OnSure=function(n){if(n)if($$("cityText").style.color="#535353",document.getElementById("select_search_res_places")!=undefined)document.getElementById("select_search_res_places").innerHTML=$$("cityText").innerHTML+" x";else{var i=document.getElementById("SxBox"),r=document.getElementById("fd_4"),t=document.createElement("a");t.setAttribute("id","select_search_res_places"),t.setAttribute("class","fd_3 condition"),t.innerHTML=$$("cityText").innerHTML+" x",i.insertBefore(t,r),document.getElementById("fd_4").style.display="inline"}else $$("cityText").style.color="#a0a0a0",document.getElementById("select_search_res_places")!=undefined&&(document.getElementById("SxBox").removeChild(document.getElementById("select_search_res_places")),document.getElementById("fd_4").style.display="none")}})}}function ClearTopNavFormData(){$("#RegisterWinForm")[0].reset(),$("#LoginWinForm")[0].reset(),$("#LoginWinForm2")[0].reset(),$(".entry_error").html(""),$("form .entry input[type='text'],form .entry input[type='password']").removeClass("error"),$("form .entry label").show()}function ShowUserInfoPanel(n){$(n).find(".top_xl").show()}function HideUserInfoPanel(n){$(n).find(".top_xl").hide()}function RefreshAllResume(){var n=function(n){n.IsSuccessful?alertMsg("刷新简历成功!"):n.Reason==1?(Pcwl.Use("Pcwl.Person.Login"),Pcwl.Person.Login.GetNormalBox(),Pcwl.Person.Login.LoginSuccess=function(){RefreshAllResume()}):alertMsg("操作失败!")};AjaxJson({url:"/person/AjaxRefreshAllResume",content:null,callBack:n})}function GetUserAgreement(){Pcwl.Use("UserAgreement",!0,function(n){n.ShowPersonAgreementAlert()})}function alertMsg(n,t,i){var u,h,a,r,c,f,l,e,s;i=i||new Function("return true"),n=n||"",t=t||0;var w=document.body.scrollTop||document.documentElement.scrollTop,v=document.all?!0:!1,p=v&&!window.XMLHttpRequest,b=document.documentElement.scrollTop||document.body.scrollTop,k=document.documentElement.scrollLeft||document.body.scrollLeft,o=function(){var i,r,n,t,u,f;return window.innerHeight&&window.scrollMaxY?(i=document.body.scrollWidth,r=window.innerHeight+window.scrollMaxY):document.body.scrollHeight>document.body.offsetHeight?(i=document.body.scrollWidth,r=document.body.scrollHeight):(i=document.body.offsetWidth,r=document.body.offsetHeight),self.innerHeight?(n=self.innerWidth,t=self.innerHeight):document.documentElement&&document.documentElement.clientHeight?(n=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(n=document.body.clientWidth,t=document.body.clientHeight),f=r确定",e.onclick=function(){return document.body.removeChild(r),document.body.removeChild(u),i(!0),!0},f.appendChild(e),t===1&&(s=document.createElement("a"),s.id="alertMsg_btn2",s.href="javascript:void(0)",s.innerHTML="取消",s.onclick=function(){return document.body.removeChild(r),document.body.removeChild(u),i(!1),!1},f.appendChild(s)),document.body.appendChild(r)}function settime(n,t){t==0?(n.text("重新获取验证码"),n.show(),n.next("span").hide()):(n.hide(),n.next("span").show(),n.next("span").text("重新发送("+t+")"),t--,timer=setTimeout(function(){settime(n,t)},1e3))}var VerifyApplySubFlag,AfterLoginSuccessfulEvent,timer,KindlyReminder;typeof Pcwl=="undefined"&&(Pcwl={}),Pcwl.Version="1.0.0.33",Pcwl.ResourcePath="http://img.pcwl.com/",Pcwl.Load=function(n,t,r,u){function a(n){if(!n)return"";n=n.split("?")[0].toLowerCase();var t=n.lastIndexOf(".");return t!=-1?n.substring(n.lastIndexOf(".")+1):""}var o,e,s;if(n){for(t=arguments[1]?arguments[1]:!1,r=arguments[2]?arguments[2]:this.LoadSuccess,u=arguments[3]?arguments[3]:this.LoadFailure,o=a(n),o||(o=this.Load.FileType),e=o=="js"?"script":"style",s=document.getElementsByTagName(e),i=0;i0&&t-1 in n)}function fe(n){var t=pi[n]={};return i.each(n.match(s)||[],function(n,i){t[i]=!0}),t}function ru(n,r,u,f){if(i.acceptData(n)){var h,o,c=i.expando,l=n.nodeType,s=l?i.cache:n,e=l?n[c]:n[c]&&c;if(e&&s[e]&&(f||s[e].data)||u!==t||"string"!=typeof r)return e||(e=l?n[c]=b.pop()||i.guid++:c),s[e]||(s[e]=l?{}:{toJSON:i.noop}),("object"==typeof r||"function"==typeof r)&&(f?s[e]=i.extend(s[e],r):s[e].data=i.extend(s[e].data,r)),o=s[e],f||(o.data||(o.data={}),o=o.data),u!==t&&(o[i.camelCase(r)]=u),"string"==typeof r?(h=o[r],null==h&&(h=o[i.camelCase(r)])):h=o,h}}function uu(n,t,r){if(i.acceptData(n)){var e,o,s=n.nodeType,u=s?i.cache:n,f=s?n[i.expando]:i.expando;if(u[f]){if(t&&(e=r?u[f]:u[f].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in e)?t=[t]:(t=i.camelCase(t),t=t in e?[t]:t.split(" ")),o=t.length;o--;)delete e[t[o]];if(r?!li(e):!i.isEmptyObject(e))return}(r||(delete u[f].data,li(u[f])))&&(s?i.cleanData([n],!0):i.support.deleteExpando||u!=u.window?delete u[f]:u[f]=null)}}}function fu(n,r,u){if(u===t&&1===n.nodeType){var f="data-"+r.replace(iu,"-$1").toLowerCase();if(u=n.getAttribute(f),"string"==typeof u){try{u="true"===u?!0:"false"===u?!1:"null"===u?null:+u+""===u?+u:tu.test(u)?i.parseJSON(u):u}catch(e){}i.data(n,r,u)}else u=t}return u}function li(n){var t;for(t in n)if(("data"!==t||!i.isEmptyObject(n[t]))&&"toJSON"!==t)return!1;return!0}function ot(){return!0}function d(){return!1}function pu(){try{return r.activeElement}catch(n){}}function ff(n,t){do n=n[t];while(n&&1!==n.nodeType);return n}function kt(n,t,r){if(i.isFunction(t))return i.grep(n,function(n,i){return!!t.call(n,i,n)!==r});if(t.nodeType)return i.grep(n,function(n){return n===t!==r});if("string"==typeof t){if(go.test(t))return i.filter(t,n,r);t=i.filter(t,n)}return i.grep(n,function(n){return i.inArray(n,t)>=0!==r})}function uf(n){var i=sf.split("|"),t=n.createDocumentFragment();if(t.createElement)while(i.length)t.createElement(i.pop());return t}function di(n,t){return i.nodeName(n,"table")&&i.nodeName(1===t.nodeType?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n.appendChild(n.ownerDocument.createElement("tbody")):n}function ki(n){return n.type=(null!==i.find.attr(n,"type"))+"/"+n.type,n}function tr(n){var t=vo.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function bt(n,t){for(var u,r=0;null!=(u=n[r]);r++)i._data(u,"globalEval",!t||i._data(t[r],"globalEval"))}function bi(n,t){if(1===t.nodeType&&i.hasData(n)){var u,f,o,s=i._data(n),r=i._data(t,s),e=s.events;if(e){delete r.handle,r.events={};for(u in e)for(f=0,o=e[u].length;o>f;f++)i.event.add(t,u,e[u][f])}r.data&&(r.data=i.extend({},r.data))}}function lo(n,t){var r,f,u;if(1===t.nodeType){if(r=t.nodeName.toLowerCase(),!i.support.noCloneEvent&&t[i.expando]){u=i._data(t);for(f in u.events)i.removeEvent(t,f,u.handle);t.removeAttribute(i.expando)}"script"===r&&t.text!==n.text?(ki(t).text=n.text,tr(t)):"object"===r?(t.parentNode&&(t.outerHTML=n.outerHTML),i.support.html5Clone&&n.innerHTML&&!i.trim(t.innerHTML)&&(t.innerHTML=n.innerHTML)):"input"===r&&ci.test(n.type)?(t.defaultChecked=t.checked=n.checked,t.value!==n.value&&(t.value=n.value)):"option"===r?t.defaultSelected=t.selected=n.defaultSelected:("input"===r||"textarea"===r)&&(t.defaultValue=n.defaultValue)}}function u(n,r){var s,e,h=0,f=typeof n.getElementsByTagName!==o?n.getElementsByTagName(r||"*"):typeof n.querySelectorAll!==o?n.querySelectorAll(r||"*"):t;if(!f)for(f=[],s=n.childNodes||n;null!=(e=s[h]);h++)!r||i.nodeName(e,r)?f.push(e):i.merge(f,u(e,r));return r===t||r&&i.nodeName(n,r)?i.merge([n],f):f}function co(n){ci.test(n.type)&&(n.defaultChecked=n.checked)}function hr(n,t){if(t in n)return t;for(var r=t.charAt(0).toUpperCase()+t.slice(1),u=t,i=sr.length;i--;)if(t=sr[i]+r,t in n)return t;return u}function ft(n,t){return n=t||n,"none"===i.css(n,"display")||!i.contains(n.ownerDocument,n)}function cr(n,t){for(var f,r,o,e=[],u=0,s=n.length;s>u;u++)r=n[u],r.style&&(e[u]=i._data(r,"olddisplay"),f=r.style.display,t?(e[u]||"none"!==f||(r.style.display=""),""===r.style.display&&ft(r)&&(e[u]=i._data(r,"olddisplay",yr(r.nodeName)))):e[u]||(o=ft(r),(f&&"none"!==f||!o)&&i._data(r,"olddisplay",o?f:i.css(r,"display"))));for(u=0;s>u;u++)r=n[u],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?e[u]||"":"none"));return n}function lr(n,t,i){var r=eo.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function ar(n,t,r,u,f){for(var e=r===(u?"border":"content")?4:"width"===t?1:0,o=0;4>e;e+=2)"margin"===r&&(o+=i.css(n,r+a[e],!0,f)),u?("content"===r&&(o-=i.css(n,"padding"+a[e],!0,f)),"margin"!==r&&(o-=i.css(n,"border"+a[e]+"Width",!0,f))):(o+=i.css(n,"padding"+a[e],!0,f),"padding"!==r&&(o+=i.css(n,"border"+a[e]+"Width",!0,f)));return o}function vr(n,t,r){var e=!0,u="width"===t?n.offsetWidth:n.offsetHeight,f=p(n),o=i.support.boxSizing&&"border-box"===i.css(n,"boxSizing",!1,f);if(0>=u||null==u){if(u=y(n,t,f),(0>u||null==u)&&(u=n.style[t]),st.test(u))return u;e=o&&(i.support.boxSizingReliable||u===n.style[t]),u=parseFloat(u)||0}return u+ar(n,t,r||(o?"border":"content"),e,f)+"px"}function yr(n){var u=r,t=er[n];return t||(t=pr(n,u),"none"!==t&&t||(rt=(rt||i("