function RedirectToURL(a) { self.location = a } function TargettedSubmit(a, b, c) { b.value = c; a.submit() } function ValidateAndRedirectToURL(a, b) { confirm(a) && RedirectToURL(b) } function GoBack(a) { a || (a = -1); 0 < a && (a *= -1); self.history.go(a) } function GoForward(a) { a || (a = 1); self.history.go(a) } function CloseCurrentWindow() { self.close() } function SubmitFormAndCloseCurrentWindow(a) { a.submit(); CloseCurrentWindow() }
function CloseCurentWindowAndRefreshParent(a, b) { if (!self.opener.closed) self.opener.location.href = b ? self.opener.location.pathname + b + "&Parm1=" + a + "&Time=" + escape(new Date) : self.opener.location.pathname + "?Time=" + escape(new Date) + "&Parm1=" + a; CloseCurrentWindow() } function refreshParentWindow() { if (self.opener && !self.opener.closed) { var a = new String(self.opener.location.href), b = self.opener.location.href, b = -1 < a.indexOf("?") ? b + "&" : b + "?"; self.opener.location.href = b + "Time=" + escape(new Date) } }
function addQueryStringParam(a, b, c, d) { a = new String(a); null == d && (d = !1); a = -1 == a.indexOf("?") ? a + "?" : a + "&"; a += b + "="; d && (c = escape(c)); return a + c } function setQueryStringParam(a, b, c, d) { a = deleteQueryStringParam(a, b); return a = addQueryStringParam(a, b, c, d) } function setQueryStringParamV2(a, b, c, d) { a = deleteQueryStringParamV2(a, b); return a = addQueryStringParam(a, b, c, d) }
function deleteQueryStringParam(a, b) { var c = new String(a), d = 0, e = 0; -1 < c.indexOf(b + "=") && (d = c.indexOf("?" + b + "="), -1 == d && (d = c.indexOf("&" + b + "=")), -1 < d && (e = c.indexOf("&", d + 1), c = c.substring(0, d), -1 < e && (c += c.substring(e)))); return c }
function deleteQueryStringParamV2(a, b) { var c = new String(a), d = 0, e = 0; -1 < c.indexOf(b + "=") && (c = c.replace("?", "&"), d = c.indexOf("&" + b + "="), -1 < d && (e = c.indexOf("&", d + 1), strTmpString = c.substring(d, e), c = -1 < e ? c.replace(RegExp(strTmpString, "gim"), "") : strTmpString, -1 == c.indexOf("?") && (c = c.replace("&", "?")))); return c } function setRefresh(a) { return setQueryStringParamV2(a, "Time", new Date, !0) }
function RedirectParent(a) { if (!self.opener.closed) self.opener.location = "" != a ? setQueryStringParam(a, "Time", new Date, !0) : setQueryStringParam(self.opener.location.pathname, "Time", new Date, !0) } function CloseCurentWindowAndRedirectFromParent(a) { RedirectParent(a); CloseCurrentWindow() } function FocusParent() { self.opener.closed || self.opener.focus() } function closeCurrentWindowAndFocusParent() { FocusParent(); CloseCurrentWindow() }
function PopupWindow(a, b, c, d) { var e = null; null == d && (d = "New"); null == b && (b = 0.4 * screen.availWidth); null == c && (c = 0.6 * screen.availHeight); e = window.open(a, d, "toolbar=yes,location=no,directories=yes,status=yes,scrollbars=yes,resizable=yes,width=" + b.toString() + ",height=" + c.toString() + ",menubar=yes"); e.focus() } function viewJob(a, b, c) { var d = ""; null != c && (d = "&keywords=" + escape(c)); document.location.href = "/JobSeekerx/ViewJob.asp?cjid=" + a + "&accountno=" + b + d }
function saveJob(a) { document.location.href = "/JobSeeker/AddJobToInbox.asp?jobid=" + a } function sendJob(a) { document.location.href = "/JobSeekerx/SendJobForm.asp?jobid=" + a } function applyToJob(a) { document.location.href = "/JobSeekerX/ApplyToJobSwitchForm.asp?jobid=" + a } function applyToRedirectJob(a) { window.open("/JobSeekerX/ApplyToJobRedirect.asp?JobID=" + a); return !1 } function viewProfile(a) { document.location.href = "/JobSeekerx/ViewCompanyProfile.asp?CompanyProfileID=" + a }
function formatLocation(a, b, c, d) { 0 == a ? document.write("-anywhere-") : 1 < a ? document.write("-multiple-") : document.write(formatLocationPart(b) + formatLocationPart(c) + d) } function formatLocationPart(a, b) { var c = /\s*-\s*/g; null == b && (b = "-"); return null == a || "" == a || "" == a.replace(c, "") ? "" : a + b } function formatTitle(a, b) { a = "" + (null == a ? "" : a); if (null == b) b = a.length; null != b && a.length > b && (a = a.slice(0, b) + "..."); document.write(a) }
function formatPhoneNumber(a) { var b = new String(Trim(a)); if (0 == b.length) return ""; var b = b.replace(/[^0-9xX]/g, ""), b = b.replace(/[xX]/g, "x"), c = "", d = b.indexOf("x"); -1 != d && (c = " " + b.substr(d), b = b.substr(0, d)); d = b.length; if (0 == d) return c; switch (d) { case 10: a = b.replace(/(\d{3})(\d{3})(\d{4})/g, "($1) $2-$3"); a += c; break; case 11: "1" == b.substr(0, 1) && (a = b.substr(1), a = a.replace(/(\d{3})(\d{3})(\d{4})/g, "($1) $2-$3"), a += c); break; default: a = "" } return a }
function toTop() { var a = document.getElementById("contentContainer"); null != a && a.scrollIntoView() } function scrollTo(a, b) { null == b && (b = !1); var c = document.getElementById(a); null != c && c.scrollIntoView(b) } function configureBackButton(a, b, c) { null == a && (a = "Back"); b = "" == b || null == b ? "Back" : b; a = document.getElementById(a); if (null != a) history.length > getHistoryObjectArrayBase() ? (a.value = b, "function" != typeof c && (c = function() { history.back() }), a.onclick = c) : (a.value = "Close", a.onclick = function() { window.close() }) }
function getHistoryObjectArrayBase() { var a = DetectUserAgent(); intHistoryStart = 0; (isGecko = -1 != "chrome firefox safari".indexOf(a)) && (intHistoryStart = 1); return intHistoryStart } function DetectUserAgent() { var a = navigator.userAgent.toLowerCase(); return 0 <= a.indexOf("msie") ? "explorer" : 0 <= a.indexOf("opera") ? "opera" : 0 <= a.indexOf("firefox") ? "firefox" : 0 <= a.indexOf("safari") ? "safari" : 0 <= a.indexOf("chrome") ? "chrome" : 0 <= a.indexOf("konqueror") ? "konqueror" : "somethingElse" }
function deleteJobAgent(a) { pageDialog.message = "Are you sure you want to delete this job search agent?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/JobSeeker/ChangeJobSearchProfile.asp?agent=Full&actn=DELETE&UserAgentID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function extendJobAgentExpiration(a, b) { var c = "Are you sure you want to deactivate this job search agent?", d = "Confirm deactivate operation"; b && (c = "Are you sure you want to extend expiration date and activate this job search agent?", d = "Confirm extend operation"); pageDialog.message = c; pageDialog.title = d; pageDialog.onOk = function() { document.location.href = "/JobSeeker/ExtendAgentExpirationDate.asp?UserAgentID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function editJobAgent(a) { document.location.href = "/JobSeekerX/SearchJobsForm.asp?agent=Full&UserAgentID=" + a + "&actn=change" } function showJobAgentHistory(a) { document.location.href = "/JobSeeker/ViewUserAgentRuns.asp?UserAgentID=" + a }
function deleteCoverLetter(a) { pageDialog.message = "Are you sure you want to delete this cover letter?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/JobSeeker/ChangeCoverLetter.asp?CoverLetterID=" + a + "&actn=delete" }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function viewCoverLetter(a) { var b = "/JobSeeker/ViewCoverLetter.asp?CoverLetterID=" + a; isEmployerSection() && (b = "/Employer/ViewCoverLetter.asp?CoverLetterID=" + encodeURIComponent(a)); document.location.href = b } function editCoverLetter(a) { document.location.href = "/JobSeeker/ChangeCoverLetterForm.asp?CoverLetterID=" + a + "&actn=change" } function copyCoverLetter(a) { document.location.href = "/JobSeeker/ChangeCoverLetterForm.asp?BaseCoverLetterID=" + a + "&actn=create" }
function deleteResume(a) { pageDialog.message = "Are you sure you want to delete this resume?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/JobSeeker/ChangeResume.asp?ResumeID=" + a + "&actn=delete" }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() } function refreshResume(a) { document.location.href = "/JobSeeker/RefreshResume.asp?ResumeID=" + a }
function viewResume(a) { document.location.href = isEmployerSection() ? "/Employer/ViewResume.asp?ResumeID=" + encodeURIComponent(a) : "/JobSeeker/ViewResume.asp?ResumeID=" + encodeURIComponent(a) } function viewResumeNoEncode(a) { document.location.href = "/JobSeeker/ViewResume.asp?ResumeID=" + a } function viewResumeById(a, b) { var c = "?CRID=" + a + "&userID=" + b; document.location.href = isEmployerSection() ? "/Employer/ViewResume.asp" + c : "/JobSeeker/ViewResume.asp" + c }
function viewJobApplication(a) { var b = "", b = isEmployerSection() ? "/Employer/ViewResume.asp?JobApplicationID=" + encodeURIComponent(a) : "/JobSeeker/ViewResume.asp?JobApplicationID=" + encodeURIComponent(a); document.location.href = b } function forwardResume(a) { document.location.href = "/JobSeeker/ForwardResumeForm.asp?ResumeID=" + a } function setResumeAsDefault(a) { document.location.href = "/JobSeeker/SetResumeAsDefault.asp?ResumeID=" + a }
function showResumeHistory(a) { document.location.href = "/JobSeeker/ViewResumeStatistics.asp?ItemID=" + a } function jobApplicationsForResume(a) { var b = "", b = isEmployerSection() ? "/Employer/ViewJobApplicationsForResume.asp?ResumeID=" + a : "/JobSeeker/ViewJobApplicationsForResume.asp?ResumeID=" + a; document.location.href = b }
function jobApplicationsForJob(a) { var b = "", b = isEmployerSection() ? "/Employer/ViewJobApplicationsForJob.asp?JobID=" + a : "/JobSeeker/ViewJobApplicationsForJob.asp?JobID=" + a; document.location.href = b } function jobApplications() { document.location.href = "/JobSeeker/ViewJobApplications.asp" }
function changeResume(a, b) { var c = "", b = parseInt(b); switch (b) { case 1: c = "ChangeResumeShortForm.asp"; break; case 2: c = "ChangeResumeForm.asp"; break; case 3: c = "ChangeResumeUploadedForm.asp"; break; default: c = "ChangeResumeFormAny.asp" } document.location.href = "/JobSeeker/" + c + "?ResumeID=" + a } function whoViewedMyResume(a) { self.location.href = "/JobSeeker/ViewCompaniesWhoViewedResume.asp?ResumeID=" + a } function showResumeOptions(a) { self.location.href = "/JobSeeker/ViewResumeOptions.asp?ResumeID=" + a }
function editSearchProfile(a) { document.location.href = "/JobSeekerX/SearchJobsForm.asp?ProfileID=" + a + "&actn=change" } function deleteSearchProfile(a) { pageDialog.message = "Are you sure you want to delete this search profile?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/JobSeeker/ChangeJobSearchProfile.asp?ProfileID=" + a + "&actn=delete" }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function editInboxItem(a) { document.location.href = isEmployerSection() ? "/Employer/ChangeInboxItemForm.asp?InboxItemID=" + a + "&actn=change" : "/JobSeeker/ChangeInboxItemForm.asp?ItemID=" + a + "&actn=change" } function executeSearchProfile(a) { document.location.href = "/JobSeekerX/SearchJobs.asp?ProfileID=" + a } function createSearchAgent(a, b) { document.location.href = "/JobSeekerX/SearchJobsForm.asp?agent=Full&ProfileID=" + a + "&actn=create&JobSearchProfileName=" + (null == b ? "" : b) }
function viewJobById(a, b) { var c = "", c = isEmployerSection() ? "/Employer/ViewJob.asp?JobID=" + encodeURIComponent(a) : "/JobSeekerX/ViewJob.asp?JobID=" + encodeURIComponent(a) + (null == b ? "" : "&iiid=" + b); document.location.href = c } function viewJobNoEncode(a) { document.location.href = "/JobSeekerX/ViewJob.asp?JobID=" + a }
function deleteInboxItem(a) { pageDialog.message = "Are you sure you want to delete this item from in-box?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = isEmployerSection() ? function() { document.location.href = "/Employer/ChangeInboxItem.asp?actn=DELETE&InboxItemID=" + a } : function() { document.location.href = "/JobSeeker/ChangeInboxItem.asp?actn=DELETE&ItemID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function highlightResItemRow(a) { a = document.getElementById(a); null != a && (unhighlightTableRows("table.jobSeekerTable tr"), toggleHighlightRow(a.parentNode.parentNode.parentNode, !0)) } function toggleHighlightRow(a, b) { "boolean" != typeof b && (b = !1); if (null != a) a.className = b ? "highlight" : "" } function unhighlightTableRows(a) { if (null == a || "" == a) a = "table tr"; var b = null, c = null; try { c = jQuery(a) } catch (d) { c = $$(a) } for (rowIndex = 0; rowIndex < c.length; rowIndex++) b = c[rowIndex], toggleHighlightRow(b, !1) }
function formatCompanyString(a, b) { var a = "" + (null == a ? "" : a), c = new String(""), c = new String(a), c = HTMLDecode(c); if (null == b) b = a.length; null != b && a.length > b && (c = c.slice(0, b) + "..."); var d = HTMLDecode(a), c = '<a href="/JobSeekerx/SearchJobs.asp?cnme=' + URLEncode(d) + '"> ' + c + "</a>"; document.write(c) } function editResumeSearchProfile(a) { document.location.href = "/Employer/SearchResumesForm.asp?ProfileID=" + a + "&actn=change" }
function deleteResumeSearchProfile(a) { pageDialog.message = "Are you sure you want to delete this search profile?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/Employer/ChangeResumeSearchProfile.asp?ProfileID=" + a + "&actn=delete" }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() } function executeResumeSearchProfile(a) { document.location.href = "/Employer/SearchResumesTable.asp?ProfileID=" + a }
function createResumeSearchAgent(a, b) { document.location.href = "/Employer/SearchResumesForm.asp?agent=Full&ProfileID=" + a + "&actn=create&ResumeSearchProfileName=" + b } function createResumeSearchAgentV2(a, b) { document.location.href = "/Employer/ChangeSearchAgentForm.asp?agent=Full&ProfileID=" + a + "&actn=create&ResumeSearchProfileName=" + b }
function deleteResumeAgent(a) { pageDialog.message = "Are you sure you want to delete this Resume search agent?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/Employer/ChangeResumeSearchProfile.asp?agent=Full&actn=DELETE&UserAgentID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function extendResumeAgentExpiration(a, b) { var c = "Are you sure you want to deactivate this Resume search agent?", d = "Confirm deactivate operation"; b && (c = "Are you sure you want to extend expiration date and activate this Resume search agent?", d = "Confirm extend operation"); pageDialog.message = c; pageDialog.title = d; pageDialog.onOk = function() { document.location.href = "/Employer/ExtendAgentExpirationDate.asp?UserAgentID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function editResumeAgent(a) { document.location.href = "/Employer/ChangeSearchAgentForm.asp?agent=Full&UserAgentID=" + a + "&actn=change" } function showResumeAgentHistory(a) { document.location.href = "/Employer/ViewUserAgentRuns.asp?UserAgentID=" + a } function editAnyResume(a) { document.location.href = "/JobSeeker/ChangeResumeFormAny.asp?ResumeID=" + a + "&actn=change" }
function getOrderItemViewLinks(a, b, c) {
    var d = new String('<a title="click to view details" href="#URL#">#CAPTION#</a>'), c = parseInt(c), e = new String(""), e = -1 < (new String(document.location.href)).toLowerCase().indexOf("/employer") ? "/Employer" : "/JobSeeker"; switch (c) { case 123: e = d.replace("#URL#", e + "X/ViewProduct.asp?ProductID=" + a); break; case 122: e = d.replace("#URL#", e + "X/ViewPackage.asp?PackageID=" + a); break; case 341: e = d.replace("#URL#", e + "/ViewPromotion.asp?PromotionID=" + a); break; default: e = "" } return e.replace("#CAPTION#",
b)
} function viewPackage(a) { a = (-1 < (new String(document.location.href)).toLowerCase().indexOf("/employer") ? "/Employerx" : "/JobSeekerx") + "/ViewPackage.asp?PackageID=" + a; document.location.href = a } function isEmployerSection() { var a = (new String(window.location.href)).toLowerCase(); return -1 < a.indexOf("/employer/") || -1 < a.indexOf("/employerx/") } function changeJob(a) { document.location.href = "/Employer/ChangeQuickJobForm.asp?actn=change&JobID=" + a + "&TargetURL=" + document.URL }
function deleteJob(a) { pageDialog.message = "Are you sure you want to delete this job?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/Employer/ChangeQuickJob.asp?actn=delete&JobID=" + a + "&TargetURL=" + document.URL }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() } function cloneJob(a) { document.location.href = "/Employer/ChangeQuickJobForm.asp?actn=create&JobID=" + a }
function showJobHistory(a) { document.location.href = "/Employer/ViewJobStatistics.asp?ItemID=" + a } function contactUs() { var a = isEmployerSection() ? "/EmployerX/ContactForm.asp" : "/Resources/ContactForm.asp"; document.location.href = a } function sendResume(a) { document.location.href = "/Employer/SendResumeForm.asp?enrid=" + a } function saveResume(a) { document.location.href = "/Employer/AddResumeToInbox.asp?ResumeID=" + a } function contactJobseeker(a) { document.location.href = "/Employer/ContactJobSeekerForm.asp?enrid=" + a }
function isSecureClientSite() { return -1 < (new String(window.location.href)).toLowerCase().indexOf("https://secure.searchease.com") } function changeOrder(a) { var b = "", c = "", b = "", c = document.location; "https:" == c.protocol.toLowerCase() && (b = "http://" + c.host); c = isEmployerSection() ? "/Employer" : "/JobSeeker"; window.location.href = b + c + "/ViewIncompleteOrder.asp?actn=change&OrderID=" + a } function viewOrder(a) { var b = isEmployerSection() ? "/Employer" : "/JobSeeker"; document.location.href = b + "/ViewOrder.asp?OrderID=" + a }
function deleteOrder(a) { pageDialog.message = "Are you sure you want to delete this order?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { var b = "" + document.location.href, c = (isEmployerSection() ? "/Employer" : "/JobSeeker") + "/ChangeOrder.asp?actn=delete&OrderID=" + a; document.location.href = c + ("&TargetURL=" + b) }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function viewOrderChargeAttempts(a) { var b = isEmployerSection() ? "/Employer" : "/JobSeeker"; document.location.href = b + "/ViewOrderBadChargeAttempts.asp?OrderID=" + a } function placeOrder(a) { var b = isEmployerSection() ? "/Employer" : "/JobSeeker"; document.location.href = b + "/PlaceOrderForm.asp?OrderID=" + a } function viewJobAnswers(a) { document.location.href = "/Employer/ViewJobQuestionAnswers.asp?JobApplicationID=" + a }
function deleteEmployerQuestion(a) { pageDialog.message = "Are you sure you want to delete this question?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/Employer/ChangeEmployerQuestion.asp?actn=DELETE&QuestionID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() } function editEmployerQuestion(a) { document.location.href = "/Employer/ChangeEmployerQuestionForm.asp?actn=CHANGE&QuestionID=" + a }
function deleteSelAnswerItem(a, b) { pageDialog.message = "Are you sure you want to delete this answer?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { beginDeleteAnswerItem(a, b) }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() } function beginDeleteAnswerItem(a, b) { var c = jQueryGetAjaxOptions("#answHistory", "/Components/ViewEmployerAnswersItems.asp", "actn=DELETE&AnswerItemID=" + a + "&QuestionID=" + b); jQuery.ajax(c) }
function editAnswerItemAjax(a) { a = jQueryGetAjaxOptions("#answBuilder", "/Components/ChangeEmployerAnswerForm.asp", "actn=CHANGE&AnswerOptionID=" + a, null, function() { prepareAllInputsForHints("answBuilder") }); jQuery.ajax(a) } function beginGetNewAnswerForm(a) { a = jQueryGetAjaxOptions("#answBuilder", "/Components/ChangeEmployerAnswerForm.asp", "actn=CREATE&QuestionID=" + a, null, function() { prepareAllInputsForHints("answBuilder") }); jQuery.ajax(a) }
function loadAnswerItems(a) { a = jQueryGetAjaxOptions("#answHistory", "/Components/ViewEmployerAnswersItems.asp", "QuestionID=" + a); jQuery.ajax(a) } function submitEmployerAnswerForm(a, b) { if (!validateAnswer()) return !1; if (null == b || "" == b) b = "FormEmployerAnswer"; AjaxFormSubmit(b, function() { loadAnswerItems(a) }, function() { hideValidationMessage("validationMessageAnswers"); beginGetNewAnswerForm(a) }) } function viewCompanyProfile(a) { document.location.href = "/Employer/ViewCompanyProfile.asp?CompanyProfileID=" + a }
function editCompanyProfile(a) { document.location.href = "/Employer/ChangeCompanyProfileForm.asp?CompanyProfileID=" + a + "&actn=change" } function deleteCompanyProfile(a) { pageDialog.message = "Are you sure you want to delete this Company Profile?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/Employer/ChangeCompanyProfile.asp?CompanyProfileID=" + a + "&actn=delete" }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function statisticsCompanyProfile(a) { document.location.href = "/Employer/ViewCompanyProfileStatistics.asp?ItemID=" + a } function deleteResponseMessage(a) { pageDialog.message = "Are you sure you want to delete this response message?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { document.location.href = "/Employer/ChangeResponseMessage.asp?actn=DELETE&ResponseMessageID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function editResponseMessage(a) { document.location.href = "/Employer/ChangeResponseMessageForm.asp?actn=change&ResponseMessageID=" + a } function saveFormAndViewResume(a, b) { var c; document.getElementById("TargetURL").value = "/JobSeeker/ViewResume.asp?ResumeID=" + b; a.submit() } function revealContacts(a) { document.location.href = "/Employer/RevealContacts.asp?rid=" + a } function editEmployerUser(a) { document.location.href = "/Employer/Manager/ChangeEmployerUserForm.asp?actn=change&UserID=" + a }
function deleteEmployerUser(a) { pageDialog.message = "All records created by user(s) you are deleting will be deleted. Are you sure you want to proceed?"; pageDialog.title = "Confirm delete operation"; pageDialog.onOk = function() { var b = "/Employer/Manager/BulkChangeUsers.asp?BulkOperationType=DeleteSelected&UID=" + a; document.location.href = b + "&TargetURL=ViewUsers.asp" }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show() }
function loginAsUser(a) { window.open("/Employer/Manager/LoginAsUser.asp?UserID=" + a) } function viewUserPermissions(a) { document.location.href = "/Employer/ViewUserPermissions.asp?UserID=" + a } function viewUserPermissionsWithReturn(a) { document.location.href = "/Employer/Manager/ViewUserPermissionsWithReturn.asp?UserID=" + a } function viewUserStatistics(a) { var b = isEmployerSection() ? "/Employer" : "/JobSeeker"; document.location.href = b + "/ViewUserStatistics.asp?ItemID=" + a }
function viewEventParticipants(a) { document.location.href = "/JobSeekerX/SearchCompanyProfiles.asp?evnt=" + a }
function TextHasMSOfficeStyles(a) { if ("" == Trim(a) || null == a) return !1; var b = null, b = /class=\"MsoPlainText\"/gim; if (b.test(a)) return !1; b = /\[if gte mso(.*?)\](.*?)&lt;xml&gt;(.*?)\[endif\]/gim; if (b.test(a)) return !0; b = /\[if supportFields\](.*?)\[endif\]/gim; if (b.test(a)) return !0; b = /\[if gte vml(.*?)[0-9]\](.*?)\[endif\]/gim; if (b.test(a)) return !0; b = /&lt;\/v:formulas&gt;/gim; if (b.test(a)) return !0; b = /@page\sSection/gim; if (b.test(a)) return !0; b = /mso\-(.+)/gim; return b.test(a) ? !0 : !1 }
function IsHtmlValidForEntry(a) { if ("" == Trim(a) || null == a) return !0; htmlRegExp = RegExp("&lt;/?(?:!doctype|html|head|title|link|meta|style|script|body)(.*?)/?&gt;", "gim"); return !htmlRegExp.test(a) }
function configureBackToSearchResultsBtn(a) { var b = "top" == a, a = "bottom" == a; !b && !a && (a = b = !0); if (a) a = document.getElementById("BackBottom"), a.className = "", a.value = "Back to Search Results"; if (b) b = document.getElementById("content"), b.innerHTML = '<fieldset id="ContainerButtonBarTop" class="actionBar"><input id="BackTop" name="BackTop" type="button" value="Back to Search Results" onclick="self.history.back()"/></fieldset>' + b.innerHTML }
function showDocumentWithPreview(a) { a = parseInt(a); if (!(0 >= a)) { var b = document, c = b.getElementById("mediaItem" + a); if (null != c) { var d = b.getElementById("gPreviewUrl" + a).value, e = b.getElementById("selectDocument" + a); if (null != e) { var e = e.options[e.options.selectedIndex].value, f = b.getElementById("siteUrlWithPathEnc" + a).value, a = b.getElementById("siteUrlWithPath" + a).value, b = ""; 0 <= e.indexOf("googlePreview,") ? (e = e.replace("googlePreview,", ""), b = d + f + e + "&embedded=true") : b = a + e; c.src = b } } } }
function deleteUserAuthProvider(a, b) {
    var c = "", d = jQuery("#siteName").val(), e = jQuery("#prov" + b).data("providerName"), f = jQuery("#userAuthProvidersCount").val(); intProvidersCount = parseInt(f); f = isNaN(f) ? 0 : f; pageDialog.message = c + ("Unlinking your " + e + " account from your " + d + " will not allow you to sign on using that account. ") + ("However, you will still be able to sign on with " + d + " login and password") + (1 < f ? " or other linked account(s). " : ". ") + "Are you sure you would like to proceed?"; pageDialog.title =
"Confirm unlink operation"; pageDialog.onOk = function() { document.location.href = "ChangeUserAuthProvider.asp?actn=DELETE&UserAuthProviderID=" + a }; pageDialog.onCancel = function() { }; pageDialog.modal = !0; pageDialog.show()
} function getResumeFromLinkedInProfile(a) { a = parseInt(a); if (!(isNaN(a) || 0 >= a)) document.location.href = "/Auth/OAuth/LinkedIn/Login.aspx?actn=CREATE_RESUME&providerId=4&accountType=1&UserID=" + a }
function addOccurrenceToCalendar(a) { window.location.href = "/Resources/DownloadEventOccurrenceAsiCal.asp?EventOccurrenceID=" + a } function viewEventParticipants(a) { document.location.href = "/JobSeekerX/ViewEventParticipants.asp?EventID=" + a }
function changeSearchJobsResultType(a, b) { var a = parseInt(a), c = ""; switch (a) { case 1: c = "/JobSeekerX/SearchJobs.asp"; break; case 2: c = "/JobSeekerX/SearchJobsTable.asp"; break; case 3: c = "/JobSeekerX/SearchJobsV2.asp"; break; case 4: c = "/JobSeekerX/SearchJobsRSS.asp"; break; default: c = "/JobSeekerX/SearchJobs.asp" } window.location = c + "?" + b }
function changeSearchSpecialJobsResultType(a, b) { var a = parseInt(a), c = ""; switch (a) { case 1: c = "/JobSeekerX/ViewSpecialJobs.asp"; break; case 2: c = "/JobSeekerX/ViewSpecialJobsTable.asp"; break; case 4: c = "/JobSeekerX/SpecialJobsRSS.asp"; break; default: c = "/JobSeekerX/ViewSpecialJobs.asp" } window.location = c + "?" + b } function viewProfilesByAccountNo(a) { document.location.href = "/JobSeekerx/SearchCompanyProfiles.asp?acc=" + a } function viewJobsByAccountNo(a) { document.location.href = "/JobSeekerx/SearchJobs.asp?acc=" + a }
function activateJob(a, b, c) {
    var d = "", e = ""; null == c && (c = ""); "activate" == b.toLowerCase() ? d = "Activate" : "deactivate" == b.toLowerCase() && (d = "Deactivate"); "" != c && (e = "&TargetURL=" + c); pageDialog.message = "Are you sure you want to " + d + " this job?"; pageDialog.title = "Confirm " + d + " operation"; if ("activate" == b.toLowerCase() || "deactivate" == b.toLowerCase()) pageDialog.onOk = function() { document.location.href = "/Employer/ChangeQuickJob.asp?actn=activate&JobID=" + a + e }; pageDialog.onCancel = function() { }; pageDialog.modal = !0;
    pageDialog.show()
};
