function selectListItem(a, b) { for (var d = 0; d < a.length; d++) if (a.options[d].value == b) { a.options[d].selected = !0; break } } function selectAllListboxOptions(a) { if ("" == a || null == a) return !1; var b = a; "object" != typeof b && (b = document.getElementById(a)); if (null == b) return !1; a = b.options; if (null == a || 0 == a.length) return !1; for (var b = 0, d = a.length; b < d; b++) a[b].selected = !0; return !0 } function selectListItemByText(a, b) { for (var d = 0; d < a.length; d++) if (a.options[d].text == b) { a.options[d].selected = !0; break } }
function isAlphaAndDigitString(a) { var b = !0; for (i = 0; i < a.length; i++) { ch = a.charAt(i); for (j = 0; 72 > j && !(ch == 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.@%*()#"'.charAt(j)); j++); if (72 == j) { b = !1; break } } return b } function isAlphaAndDigitEntry(a) { return isAlphaAndDigitString(a.value) } function isObjectOnForm(a, b) { for (intFormIndex = 0; intFormIndex < a.elements.length; intFormIndex++) if (a.elements[intFormIndex].name == b) return !0; return !1 }
function getSelectedItems(a) { if (null == a) return ""; for (var b = "", d = 0, d = 0; d < a.length; d++) a[d].selected && (b += "," + a[d].value); return 0 < b.length ? b.substring(1) : b } function getListBoxSelectedValue(a) { if ("" == a || null == a) return ""; var b = a; return "object" != typeof b && (b = document.getElementById(a), null == b) ? "" : b[b.selectedIndex].value } function getSelectedItemCount(a) { if (null == a) return 0; var b = 0; for (intItemIndex = 0; intItemIndex < a.length; intItemIndex++) a[intItemIndex].selected && b++; return b }
function getSelectedItemTexts(a) { if (null == a) return ""; var b = ""; for (intItemIndex = 0; intItemIndex < a.length; intItemIndex++) a[intItemIndex].selected && (b += "," + a[intItemIndex].text); return 0 < b.length ? b.substring(1) : b } function getSelectedItemsWithDevider(a, b) { if (null == a) return ""; "" == b && (b = ","); var d = ""; for (intItemIndex = 0; intItemIndex < a.length; intItemIndex++) a[intItemIndex].selected && (d += b + a[intItemIndex].value); return d }
function getCleanKeywords(a) { var b = a, b = (" " + a).replace(/(,+)/g, ""), b = b.replace(/(^ *)|( *$)/g, ""), b = b.replace(/( +)/g, " "); -1 == b.toLowerCase().indexOf(" and ") && -1 == b.toLowerCase().indexOf(" or ") && -1 == b.toLowerCase().indexOf(" near ") && (-1 == b.indexOf('"') ? b = b.replace(/ /g, " and ") : (re = /(".*" )/g, b = b.replace(re, "$1and "))); return b } function getCleanCCNo(a) { return (new String(a)).replace(/[ -]/g, "") } function unselectListItems(a) { for (var b = 0; b < a.length; b++) a.options[b].selected = !1; return 0 }
function isListItemSelected(a, b) { for (var d = 0; d < a.length; d++) if (a.options[d].value == b) return 1 == a.options[d].selected; return !1 } function isnertFirstElementIntoListObject(a, b, d) { arrNewLabels = Array(a.length); for (var e = 0, e = 0; e < a.length; e++) arrNewLabels[e] = new Option(a.options[e].text, a.options[e].value); for (; 0 <= e; e--) a.options[e] = null; a.options[0] = new Option(b, d, !0, !0); for (e = 0; e < arrNewLabels.length; e++) a.options[e + 1] = arrNewLabels[e]; return !0 }
function getFullURL(a, b) { var d = b ? "https://" : "http://", e = ""; return e = -1 == a.toLowerCase().indexOf(d) ? d + a : a }
function validateAndSubmitBulkAction() {
    var a = !1, b = !1, d = "", e = eval("document.FormBulk"); if (null != e && (e = e.BulkOperationType, null != e)) {
        switch (e.options[e.selectedIndex].value) {
            case "DeleteSelected": b = !0; d = "delete"; break; case "DeleteFilter": b = !1; d = "delete"; break; case "DisableSelected": b = !0; d = "disable"; break; case "DisableFilter": b = !1; d = "disable"; break; case "EnableSelected": b = !0; d = "enable"; break; case "EnableFilter": b = !1; d = "enable"; break; case "ExportSelected": b = !0; d = "export"; break; case "ExportFilter": b = !1,
d = "export"
        } if (b) { if (0 < elements.length) for (b = 0; b < elements.length; b++) if ("checkbox" == elements[b].type && elements[b].checked) { a = !0; break } if (!a) return alert("Please select at least one item."), !1; confirm("Are you sure you want to " + d + " the selected items?") && submit() } else confirm("Are you sure you want to " + d + " all items that\nqualify the filter condition?\n\nNOTE: This action can " + d + " all items depending on your filter.") && submit()
    } 
}
function isUserLoggedIn() { return 0 <= (new String(self.document.cookie)).indexOf("FormsAuth") } function isEmLoggedIn() { var a = new String(self.document.cookie), a = a.replace(/\=/g, ""); return 0 <= a.indexOf("FormsAuth") && 0 <= a.indexOf("EmployerSignature") && 0 <= a.indexOf("JobSeekerSignature;") } function isJsLoggedIn() { var a = new String(self.document.cookie), a = a.replace(/\=/g, ""); return 0 <= a.indexOf("FormsAuth") && 0 <= a.indexOf("JobSeekerSignature") && 0 <= a.indexOf("EmployerSignature;") }
function isEmployerUserAccountManager() { var a = new String(self.document.cookie); return isUserLoggedIn() && 0 <= a.indexOf("EmployerManagerSignature") } function isCompanyProfileAvailable() { var a = new String(self.document.cookie); return isUserLoggedIn() && 0 <= a.indexOf("CompanyProfileSignature") } function isCheckBoxSelected(a) { if (a.length) { for (var b = 0; b < a.length; b++) if (a[b].checked) return !0; return !1 } return a.checked }
function getSelectedCheckBoxValue(a) { if (a.length) for (var b = 0; b < a.length; b++) { if (a[b].checked) return a[b].value } else if (a.checked) return a.value; return "" } function removeUnspecifiedValues(a) { if (null != a) for (var a = a.elements, b = 0; b < a.length; b++) "select-multiple" == a[b].type && removeUnsepcifiedFromList(a[b]) } function removeUnsepcifiedFromList(a) { for (var b = 0; b < a.length; b++) if ("0" == a.options[b].value) { a.options[b] = null; break } return !0 }
function HasOneTextElementData(a, b) { with (a) { for (var d = 0; d < elements.length; d++) if ("text" == elements[d].type && "" != elements[d].value) return !0; alert(b); return !1 } } function HasOneTextElementNonZeroData(a, b) { with (a) { for (var d = 0; d < elements.length; d++) if ("text" == elements[d].type && "" != elements[d].value && 0 != elements[d].value) return !0; alert(b); return !1 } }
function HasOneTextElementNonNumericData(a, b) { var d = !1; with (a) { for (var e = 0; e < elements.length; e++) if ("text" == elements[e].type && "" != elements[e].value && !isDigitString(elements[e].value)) { d = !0; break } d && alert(b) } return d } function isDigitString(a) { var a = new String(a), b = !0; for (i = 0; i < a.length; i++) { ch = a.charAt(i); for (j = 0; 11 > j && !(ch == "0123456789.".charAt(j)); j++); if (11 == j) { b = !1; break } } return b } function parseNumber(a, b) { isNaN(parseFloat(b)) && (b = 0); return isNaN(parseFloat(a)) ? b : parseFloat(a) }
function isMultiSelectListSelected(a) { for (var b = 0; b < a.length; b++) if (a.options[b].selected) return !0; return !1 } function setOnChangeInForm(a) { with (a) for (a = 0; a < elements.length; a++) { if ("text" == elements[a].type || "textarea" == elements[a].type || "select-one" == elements[a].type || "select-multiple" == elements[a].type) elements[a].onchange = setDataChanged; if ("checkbox" == elements[a].type || "radio" == elements[a].type) elements[a].onclick = setDataChanged } }
function isFormDataChanged(a) { var b = !1; a.DataChanged && "" != a.DataChanged.value && (b = !0); return b } function canLeaveForm(a) { var b = !0, d = "", d = a.submit ? a.submit.value : "Add"; isFormDataChanged(a) && (confirm("You have entered new information but have not saved it yet.\nYou must press the " + d + " button to save your changes.\n\nPress Cancel to return to editing or OK to proceed without saving.") || (b = !1)); return b } function setDataChangedInForm(a) { if (a.DataChanged) a.DataChanged.value = 1 }
function escapeKeywords(a) { return a = escape(a).replace(/\x2B/g, "%2B") } function stripTextboxText(a) { if (!blnStrippedText) a.value = "", blnStrippedText = !0 } function countDelimiters(a, b) { var d = 0; for (i = 0; i < a.length; i++) ch = a.charAt(i), ch == b && (d += 1); return d } function getCleanKeywordsForJobCompanyName(a) { a = a.replace(/(^ *)|( *$)/g, ""); a = a.replace(/(,+)/g, " or "); return a = a.replace(/( +)/g, " ") } function checkAllBoxes(a) { if (a.length) for (var b = 0; b < a.length; b++) a[b].checked = !0; else a.checked = !0 }
function getVarDate(a, b) { var d = NaN, e = -1, c = -1, f = e = 0, c = 0; null != b && "" != b && "" != a && (b = b.toUpperCase(), e = b.indexOf("MM"), intDayPos = b.indexOf("DD"), c = b.indexOf("YYYY"), 0 <= intDayPos && 0 <= e && 0 <= c && (e = a.substr(e, 2), f = a.substr(intDayPos, 2), c = a.substr(c, 4), 31 >= f && 12 >= e && 9999 >= c && (d = (new Date(c, e - 1, f)).getVarDate()))); return d } function isLeapYear(a) { a = parseInt(a); return isNaN(a) ? !1 : 0 == a % 4 && (0 != a % 100 || 0 == a % 400) }
function getDaysInMonth(a, b) { a = parseInt(a, 10); b = parseInt(b); return isNaN(a) || isNaN(b) ? 0 : 1 > a || 12 < a || 0 >= b ? 0 : [0, 31, isLeapYear(b) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][a] }
function populateAttachedDocumentsOnParentForm(a) { var b = null; if (!self.opener.closed) { if ("Netscape" == navigator.appName) strVersion = new String(navigator.appVersion), 5 <= strVersion.charAt(0) && eval('self.opener.document.getElementById("AttachDocs")') && (b = self.opener.document.getElementById("AttachDocs")); else if (eval("self.opener.document.all.AttachDocs")) b = self.opener.document.all.AttachDocs; if (null != b && eval("objForm.AttachedDocsHTML")) with (a) b.innerHTML = AttachedDocsHTML.value } CloseCurrentWindow() }
function isCurrencyString(a) { var b = !0; for (i = 0; i < a.length; i++) { ch = a.charAt(i); for (j = 0; 14 > j && !(ch == "0123456789.,$ ".charAt(j)); j++); if (14 == j) { b = !1; break } } return b } function Trim(a) { for (a = new String(a); " " == "" + a.charAt(a.length - 1); ) a = a.substring(0, a.length - 1); return a }
function populateChildListBoxHTML(a, b, d, e) {
    var c = new String(""), f = new String(""), g = 0, h = [], f = "", k = new String(""), l = "", m = !1; null == d && (d = "Select Parent"); null == e && (e = !1); c = getSelectedItems(a); f = getSelectedItemTexts(a); h = c.split(","); f.split(","); null == b ? (strChildListBoxName = "cg", strChildListBoxSize = 11, k = "") : (strChildListBoxName = b.name, strChildListBoxSize = b.size, k = getSelectedItems(b)); f = " <SELECT NAME='" + strChildListBoxName + "' MULTIPLE SIZE='" + strChildListBoxSize + "'> "; k = "," + k + ","; for (a = 0; a < h.length; a++) {
        c =
h[a]; for (g = 0; g < arrDroups.length - 1; g++) arrDroups[g].id1 == c && (0 <= k.indexOf("," + arrDroups[g].id2 + ",") && (l = " SELECTED "), f += " <OPTION VALUE='" + arrDroups[g].id2 + "'" + l + ">" + arrDroups[g].name2 + "</OPTION>", l = "", m = !0)
    } f += " </SELECT> "; if (eval('document.getElementById("Child_" + strChildListBoxName)') && (c = document.getElementById("Child_" + strChildListBoxName), c.innerHTML = f, !m && e)) c.innerHTML = d; return !0
} function Group(a, b, d) { this.id1 = a; this.id2 = b; this.name2 = d; return !0 }
function unSelectListItem(a, b) { for (var d = 0; d < a.length; d++) if (a.options[d].value == b) a.options[d].selected = !1 } function unSelectListItemByText(a, b) { for (var d = 0; d < a.length; d++) if (a.options[d].text == b) a.options[d].selected = !1 } function isRadioButtonSelectionMade(a, b) { var d = null, e = !1; null != a && (d = a[b]); if (null != d) { for (var c = 0; c < d.length; c++) if (d[c].checked) { e = !0; break } return e } }
function SelectedListItemsLimiter(a, b, d) { var e = new String(""), e = 0, e = getSelectedItemsWithDevider(a, ","), e = countDelimiters(e, ","); return e > b ? (alert("Please choose less then " + b + " " + d), a.focus(), !1) : !0 } function getNumberOfSelectedCheckboxes() { var a = 0, b = document.getElementsByTagName("input"); for (intItemIndex = 0; intItemIndex < b.length; intItemIndex++) "checkbox" == b[intItemIndex].type && b[intItemIndex].checked && a++; return a }
function selectListboxOptionByText(a, b, d) { var e = new String(""), d = new String(d); if (!(null == a || null == b)) if (e = getSelectedItems(b), !IsStringEmpty(e) && !IsStringEmpty(d)) for (a = 0; a < b.options.length; a++) selectListItemByText(b, d) } function IsStringEmpty(a) { return 0 == (new String(null == a ? "" : Trim(a))).length }
function tickCheckBoxesByName(a) { var b = "object" == typeof a && "checkbox" == a[0].type; if (b) { var d = a.length; if (d) if (isCheckBoxSelected(a)) for (var e = 0; e < d; e++) a[e].checked = !1; else for (e = 0; e < d; e++) a[e].checked = !0; else a.checked = isCheckBoxSelected(a) ? !1 : !0 } else alert("Either the checkbox does not exist or you may have specified an incorrect name!"); return b }
function selectAllListOptionsWithToggle(a, b) { b = "boolean" == typeof b ? b : !0; if ("object" == typeof a && "select-multiple" == a.type) for (var d = a.options, e = 0, c = d.length; e < c; e++) d[e].selected = b } function isAllListBoxOptionSelected(a) { var b = !1; if ("object" == typeof a && "select-multiple" == a.type) { for (var a = a.options, b = a.length, d = 0, e = 0; e < b; e++) a[e].selected && d++; b = b == d } return b } function resetPageSection(a, b) { blnVisible = "visible" == document.getElementById(a).style.visibility ? !1 : !0; showHidePageSection(a, b, blnVisible) }
function showHidePageSection(a, b, d) { d = "boolean" == typeof d ? d : !1; a = document.getElementById(a); b = document.getElementById(b); if (null != a && (a.style.visibility = d ? "visible" : "hidden", a.style.position = d ? "static" : "absolute", null != b)) b.src = d ? "/Media/Images/hide.gif" : "/Media/Images/show.gif" } function ifCheckBoxSelectedSubmit(a, b) { null == b && (b = "Please select at least one job"); isCheckBoxSelected(a.JobID) ? a.submit() : alert(b) } function stripTextboxTextEx(a) { a.value = "" }
function SelectAllCheckBoxesWithHighlight(a) { for (var b = IsFirstCheckBoxChecked(), d = null, d = null != a && "string" == typeof a && null != document.getElementById(a) ? document.getElementById(a).getElementsByTagName("input") : document.getElementsByTagName("input"), a = 0; a < d.length; a++) if ("checkbox" == d[a].type && !1 == d[a].disabled) d[a].checked = !b, highlightParentRow(d[a]) }
function SelectAllCheckBoxes(a) { for (var b = IsFirstCheckBoxChecked(), d = null, d = null != a && "string" == typeof a && null != document.getElementById(a) ? document.getElementById(a).getElementsByTagName("input") : document.getElementsByTagName("input"), a = 0; a < d.length; a++) if ("checkbox" == d[a].type && !1 == d[a].disabled) d[a].checked = !b } function IsFirstCheckBoxChecked() { for (var a = document.getElementsByTagName("input"), b = 0; b < a.length; b++) if ("checkbox" == a[b].type) return a[b].checked; return !1 }
function HighlightSelectedCheckBoxes(a) { "object" != typeof a && (a = document.getElementsByTagName("input")); for (var b = null, d = "", e = 0; e < a.length; e++) if (b = a[e].parentNode.parentNode, d = (new String(b.nodeName)).toLowerCase(), "checkbox" == a[e].type && "tr" == d) if (a[e].checked) { if ("highlight" != b.className) b.alt = b.className; b.className = "highlight" } else if ("highlight" == b.className) b.className = b.alt }
function highlightSelectedRadioButton() { for (var a = document.getElementsByTagName("input"), b = null, d = 0; d < a.length; d++) if (b = a[d].parentNode.parentNode, "radio" == a[d].type) if (a[d].checked) { if ("highlight" != b.className) b.alt = b.className; b.className = "highlight" } else if ("highlight" == b.className) b.className = b.alt }
function highlightParentRow(a) { var b = a.parentNode.parentNode; if ("tr" == b.nodeName.toLowerCase() && null != a) a.checked ? (b.alt = "highlight" == b.className ? "" : b.className, b.className = "highlight") : b.className = "highlight" == b.alt ? "" : b.alt } function showHideDiv(a, b) { var b = "boolean" == typeof b ? b : !1, d = document.getElementById(a); if (null != d) d.style.visibility = b ? "visible" : "hidden", d.style.position = b ? "static" : "absolute" }
function AjaxGet(a, b, d) { null == d && (d = "error"); var e = null; try { var c = jQuery("#" + b), e = { type: "get", url: a, success: function(a, b, d) { c.html(d.responseText) }, error: function() { c.html(d) } }; jQuery.ajax(e) } catch (f) { e = { method: "get", onSuccess: function(a) { var c = document.getElementById(b); if (null != c) c.innerHTML = a.responseText }, onFailure: function() { var a = document.getElementById(b); if (null != a) a.innerHTML = d } }, new Ajax.Request(a, e) } finally { e = null } }
function AjaxGetWithCallback(a, b, d, e, c) {
    var d = null == d ? "request failed!" : d, f = null; try { var g = jQuery("#" + b), f = { type: "get", url: a, success: function(a, b, c) { "function" == typeof e ? e(c) : null != g && g.html(c.responseText) }, complete: function(a) { "function" == typeof c && c(a) }, error: function() { g.html(d) } }; jQuery.ajax(f) } catch (h) {
        f = { method: "get", onSuccess: function(a) { if ("function" == typeof e) e(a); else { var c = document.getElementById(b); if (null != c) c.innerHTML = a.responseText } }, onComplete: function(a) { "function" == typeof c && c(a) },
            onFailure: function() { var a = document.getElementById(b); if (null != a) a.innerHTML = d } 
        }, new Ajax.Request(a, f)
    } finally { f = null } 
}
function AjaxFormSubmit(a, b, d, e) {
    var c = null; try { var f = "#" + a, g = jQuery(f); if (null != g) { var h = g.attr("action"), k = jQuery(f).serialize(), c = { type: "get", url: h, data: k, complete: function(a) { "function" == typeof b && b(a) }, success: function(a, b, c) { "function" == typeof d && d(c) }, error: function(a) { "function" == typeof e && e(a) } }; jQuery.ajax(c) } } catch (l) { c = { onComplete: function(a) { "function" == typeof b && b(a) }, onSuccess: function(a) { "function" == typeof d && d(a) }, onFailure: function(a) { "function" == typeof e && e(a) } }, $(a).request(c) } finally {
        c =
null
    } 
} function getLoadedXmlDoc(a) { var b = null; if (null == a || "" == a) return b; try { b = new ActiveXObject("Microsoft.XMLDOM"), b.async = "false", b.loadXML(a) } catch (d) { try { b = (new DOMParser).parseFromString(a, "text/xml") } catch (e) { b = null } } return b } function responseHasError(a) { return 0 != getResponseCode(a) ? !0 : !1 }
function getResponseErrorMessage(a) { var b = ""; try { var d = getLoadedXmlDoc(a).getElementsByTagName("description"); null != d && (b += d[0].firstChild.nodeValue + "\n") } catch (e) { b = "parsing error. unable to parse response" } return b } function getResponseSuccessMessage(a) { var b = ""; try { if (!responseHasError(a)) { var d = getLoadedXmlDoc(a).getElementsByTagName("result"); null != d && null != d[0].firstChild && (b = d[0].firstChild.nodeValue + "\n") } } catch (e) { b = "parsing error. unable to parse response" } return b }
function getResponseMessage(a, b) { var d = "", d = responseHasError(a) ? getResponseErrorMessage(a) : getResponseSuccessMessage(a); "" == d && (d = null == b ? "" : b); return d } function getResponseCode(a) { var b = 0; try { var d = getLoadedXmlDoc(a).getElementsByTagName("returnCode")[0].childNodes[0]; if (null != d) b = d.nodeValue } catch (e) { b = -100 } return b } function showElementById(a) { a = document.getElementById(a); if (null != a) a.style.display = "block" }
function hideElementById(a) { a = document.getElementById(a); if (null != a) a.style.display = "none" } function toggleElementById(a) { var b = document.getElementById(a); if (null != b) { if ("none" == b.style.display) return showElementById(a), !0; hideElementById(a) } return !1 } function setElementClassById(a, b) { var d = document.getElementById(a); if (null != d) d.className = b } function toggleElementClassById(a, b, d) { var e = document.getElementById(a); null != e && (e.className != b ? setElementClassById(a, b) : setElementClassById(a, d)) }
function toggleElementDisplayById(a) { var b = document.getElementById(a); null != b && ("none" == b.style.display ? showElementById(a) : hideElementById(a)) }
function PopupViewWindow(a, b, d, e, c, f, g, h, k) { var l = "New", m = new Number(520), n = new Number(600), o = "no", p = "no", q = "no", r = "no", t = "no"; b && (l = b); d && (m = d); e && (n = e); c && (o = "yes"); f && (p = "yes"); g && (q = "yes"); h && (r = "yes"); k && (t = "yes"); aPopupViewWindowTest = window.open(a, l, "toolbar=" + o + ",location=" + q + ",directories=" + r + ",status=" + p + ",scrollbars=yes,resizable=yes,width=" + m.toString() + ",height=" + n.toString() + ",menubar=" + t); aPopupViewWindowTest.focus() }
function showRemainingChars(a, b, d) { null == a && (a = "Summary"); null == b && (b = "charsRemain"); null == d && (d = 300); var e = document, a = e.getElementById(a), b = e.getElementById(b), e = Math.max(0, d - a.value.length); e > d && (e = 0); d = a.value.length - d; a = "remaining characters: " + e; 0 < d && (a += " (" + d + " over limit and will be truncated)"); b.innerHTML = a }
function truncateFieldValue(a, b, d) { null == a && (a = "Summary"); null == b && (b = "charsRemain"); null == d && (d = 300); var a = document.getElementById(a), b = document.getElementById(b), e = Math.max(0, d - a.value.length); if (a.value.length > d) a.value = ("" + Trim(a.value)).slice(0, d), b.innerHTML = "remaining characters: " + e + " (truncated to maximum length of " + d + ")" }
function initTinyMCE(a, b) {
    null == b && (b = "/Styles/tinyMceContent.css"); tinyMCE.init({ theme: "advanced", mode: "exact", elements: a, plugins: "searchreplace,paste,spellchecker", theme_advanced_layout_manager: "SimpleLayout", theme_advanced_buttons1: "bold,italic,underline,|,undo,redo,|,bullist,numlist,|,outdent,indent,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor,|,search,preview,|,paste,pastetext,pasteword,|,spellchecker", theme_advanced_buttons2: "formatselect,fontselect,fontsizeselect",
        theme_advanced_buttons3: "", theme_advanced_toolbar_location: "top", theme_advanced_toolbar_align: "left", content_css: b, setup: function(a) { a.onPostProcess.add(function(a, b) { if (b.get) { var d = new String(b.content); pattern = "(?:&lt;)s*(?:/?(?:!doctype|html|body|head|title|link|meta|style|script|i?frame|object|embed|param|form|input|textarea|select|option|fieldset|legend)(?:.*?))(?:&gt;)"; re = RegExp(pattern, "gim"); if (null != d.match(re)) d = d.replace(re, ""), b.content = d } }) } 
    })
}
function HTMLDecode(a) {
    var b = ""; if (null != a) {
        for (var d = a.length, e = 0; e < d; e++) {
            var c = a.charAt(e); if ("&" == c) {
                var f = a.indexOf(";", e + 1); if (0 < f) {
                    e = a.substring(e + 1, f); if (1 < e.length && "#" == e.charAt(0)) c = "x" == e.charAt(1) || "X" == e.charAt(1) ? String.fromCharCode(eval("0" + e.substring(1))) : String.fromCharCode(eval(e.substring(1))); else switch (e) {
                        case "quot": c = String.fromCharCode(34); break; case "amp": c = String.fromCharCode(38); break; case "lt": c = String.fromCharCode(60); break; case "gt": c = String.fromCharCode(62); break;
                        case "nbsp": c = String.fromCharCode(160); break; case "iexcl": c = String.fromCharCode(161); break; case "cent": c = String.fromCharCode(162); break; case "pound": c = String.fromCharCode(163); break; case "curren": c = String.fromCharCode(164); break; case "yen": c = String.fromCharCode(165); break; case "brvbar": c = String.fromCharCode(166); break; case "sect": c = String.fromCharCode(167); break; case "uml": c = String.fromCharCode(168); break; case "copy": c = String.fromCharCode(169); break; case "ordf": c = String.fromCharCode(170); break; case "laquo": c =
String.fromCharCode(171); break; case "not": c = String.fromCharCode(172); break; case "shy": c = String.fromCharCode(173); break; case "reg": c = String.fromCharCode(174); break; case "macr": c = String.fromCharCode(175); break; case "deg": c = String.fromCharCode(176); break; case "plusmn": c = String.fromCharCode(177); break; case "sup2": c = String.fromCharCode(178); break; case "sup3": c = String.fromCharCode(179); break; case "acute": c = String.fromCharCode(180); break; case "micro": c = String.fromCharCode(181); break; case "para": c = String.fromCharCode(182);
                            break; case "middot": c = String.fromCharCode(183); break; case "cedil": c = String.fromCharCode(184); break; case "sup1": c = String.fromCharCode(185); break; case "ordm": c = String.fromCharCode(186); break; case "raquo": c = String.fromCharCode(187); break; case "frac14": c = String.fromCharCode(188); break; case "frac12": c = String.fromCharCode(189); break; case "frac34": c = String.fromCharCode(190); break; case "iquest": c = String.fromCharCode(191); break; case "Agrave": c = String.fromCharCode(192); break; case "Aacute": c = String.fromCharCode(193);
                            break; case "Acirc": c = String.fromCharCode(194); break; case "Atilde": c = String.fromCharCode(195); break; case "Auml": c = String.fromCharCode(196); break; case "Aring": c = String.fromCharCode(197); break; case "AElig": c = String.fromCharCode(198); break; case "Ccedil": c = String.fromCharCode(199); break; case "Egrave": c = String.fromCharCode(200); break; case "Eacute": c = String.fromCharCode(201); break; case "Ecirc": c = String.fromCharCode(202); break; case "Euml": c = String.fromCharCode(203); break; case "Igrave": c = String.fromCharCode(204);
                            break; case "Iacute": c = String.fromCharCode(205); break; case "Icirc": c = String.fromCharCode(206); break; case "Iuml": c = String.fromCharCode(207); break; case "ETH": c = String.fromCharCode(208); break; case "Ntilde": c = String.fromCharCode(209); break; case "Ograve": c = String.fromCharCode(210); break; case "Oacute": c = String.fromCharCode(211); break; case "Ocirc": c = String.fromCharCode(212); break; case "Otilde": c = String.fromCharCode(213); break; case "Ouml": c = String.fromCharCode(214); break; case "times": c = String.fromCharCode(215);
                            break; case "Oslash": c = String.fromCharCode(216); break; case "Ugrave": c = String.fromCharCode(217); break; case "Uacute": c = String.fromCharCode(218); break; case "Ucirc": c = String.fromCharCode(219); break; case "Uuml": c = String.fromCharCode(220); break; case "Yacute": c = String.fromCharCode(221); break; case "THORN": c = String.fromCharCode(222); break; case "szlig": c = String.fromCharCode(223); break; case "agrave": c = String.fromCharCode(224); break; case "aacute": c = String.fromCharCode(225); break; case "acirc": c = String.fromCharCode(226);
                            break; case "atilde": c = String.fromCharCode(227); break; case "auml": c = String.fromCharCode(228); break; case "aring": c = String.fromCharCode(229); break; case "aelig": c = String.fromCharCode(230); break; case "ccedil": c = String.fromCharCode(231); break; case "egrave": c = String.fromCharCode(232); break; case "eacute": c = String.fromCharCode(233); break; case "ecirc": c = String.fromCharCode(234); break; case "euml": c = String.fromCharCode(235); break; case "igrave": c = String.fromCharCode(236); break; case "iacute": c = String.fromCharCode(237);
                            break; case "icirc": c = String.fromCharCode(238); break; case "iuml": c = String.fromCharCode(239); break; case "eth": c = String.fromCharCode(240); break; case "ntilde": c = String.fromCharCode(241); break; case "ograve": c = String.fromCharCode(242); break; case "oacute": c = String.fromCharCode(243); break; case "ocirc": c = String.fromCharCode(244); break; case "otilde": c = String.fromCharCode(245); break; case "ouml": c = String.fromCharCode(246); break; case "divide": c = String.fromCharCode(247); break; case "oslash": c = String.fromCharCode(248);
                            break; case "ugrave": c = String.fromCharCode(249); break; case "uacute": c = String.fromCharCode(250); break; case "ucirc": c = String.fromCharCode(251); break; case "uuml": c = String.fromCharCode(252); break; case "yacute": c = String.fromCharCode(253); break; case "thorn": c = String.fromCharCode(254); break; case "yuml": c = String.fromCharCode(255); break; case "OElig": c = String.fromCharCode(338); break; case "oelig": c = String.fromCharCode(339); break; case "Scaron": c = String.fromCharCode(352); break; case "scaron": c = String.fromCharCode(353);
                            break; case "Yuml": c = String.fromCharCode(376); break; case "fnof": c = String.fromCharCode(402); break; case "circ": c = String.fromCharCode(710); break; case "tilde": c = String.fromCharCode(732); break; case "Alpha": c = String.fromCharCode(913); break; case "Beta": c = String.fromCharCode(914); break; case "Gamma": c = String.fromCharCode(915); break; case "Delta": c = String.fromCharCode(916); break; case "Epsilon": c = String.fromCharCode(917); break; case "Zeta": c = String.fromCharCode(918); break; case "Eta": c = String.fromCharCode(919);
                            break; case "Theta": c = String.fromCharCode(920); break; case "Iota": c = String.fromCharCode(921); break; case "Kappa": c = String.fromCharCode(922); break; case "Lambda": c = String.fromCharCode(923); break; case "Mu": c = String.fromCharCode(924); break; case "Nu": c = String.fromCharCode(925); break; case "Xi": c = String.fromCharCode(926); break; case "Omicron": c = String.fromCharCode(927); break; case "Pi": c = String.fromCharCode(928); break; case " Rho ": c = String.fromCharCode(929); break; case "Sigma": c = String.fromCharCode(931); break;
                        case "Tau": c = String.fromCharCode(932); break; case "Upsilon": c = String.fromCharCode(933); break; case "Phi": c = String.fromCharCode(934); break; case "Chi": c = String.fromCharCode(935); break; case "Psi": c = String.fromCharCode(936); break; case "Omega": c = String.fromCharCode(937); break; case "alpha": c = String.fromCharCode(945); break; case "beta": c = String.fromCharCode(946); break; case "gamma": c = String.fromCharCode(947); break; case "delta": c = String.fromCharCode(948); break; case "epsilon": c = String.fromCharCode(949); break;
                        case "zeta": c = String.fromCharCode(950); break; case "eta": c = String.fromCharCode(951); break; case "theta": c = String.fromCharCode(952); break; case "iota": c = String.fromCharCode(953); break; case "kappa": c = String.fromCharCode(954); break; case "lambda": c = String.fromCharCode(955); break; case "mu": c = String.fromCharCode(956); break; case "nu": c = String.fromCharCode(957); break; case "xi": c = String.fromCharCode(958); break; case "omicron": c = String.fromCharCode(959); break; case "pi": c = String.fromCharCode(960); break; case "rho": c =
String.fromCharCode(961); break; case "sigmaf": c = String.fromCharCode(962); break; case "sigma": c = String.fromCharCode(963); break; case "tau": c = String.fromCharCode(964); break; case "upsilon": c = String.fromCharCode(965); break; case "phi": c = String.fromCharCode(966); break; case "chi": c = String.fromCharCode(967); break; case "psi": c = String.fromCharCode(968); break; case "omega": c = String.fromCharCode(969); break; case "thetasym": c = String.fromCharCode(977); break; case "upsih": c = String.fromCharCode(978); break; case "piv": c =
String.fromCharCode(982); break; case "ensp": c = String.fromCharCode(8194); break; case "emsp": c = String.fromCharCode(8195); break; case "thinsp": c = String.fromCharCode(8201); break; case "zwnj": c = String.fromCharCode(8204); break; case "zwj": c = String.fromCharCode(8205); break; case "lrm": c = String.fromCharCode(8206); break; case "rlm": c = String.fromCharCode(8207); break; case "ndash": c = String.fromCharCode(8211); break; case "mdash": c = String.fromCharCode(8212); break; case "lsquo": c = String.fromCharCode(8216); break; case "rsquo": c =
String.fromCharCode(8217); break; case "sbquo": c = String.fromCharCode(8218); break; case "ldquo": c = String.fromCharCode(8220); break; case "rdquo": c = String.fromCharCode(8221); break; case "bdquo": c = String.fromCharCode(8222); break; case "dagger": c = String.fromCharCode(8224); break; case "Dagger": c = String.fromCharCode(8225); break; case "bull": c = String.fromCharCode(8226); break; case "hellip": c = String.fromCharCode(8230); break; case "permil": c = String.fromCharCode(8240); break; case "prime": c = String.fromCharCode(8242); break;
                        case "Prime": c = String.fromCharCode(8243); break; case "lsaquo": c = String.fromCharCode(8249); break; case "rsaquo": c = String.fromCharCode(8250); break; case "oline": c = String.fromCharCode(8254); break; case "frasl": c = String.fromCharCode(8260); break; case "euro": c = String.fromCharCode(8364); break; case "image": c = String.fromCharCode(8465); break; case "weierp": c = String.fromCharCode(8472); break; case "real": c = String.fromCharCode(8476); break; case "trade": c = String.fromCharCode(8482); break; case "alefsym": c = String.fromCharCode(8501);
                            break; case "larr": c = String.fromCharCode(8592); break; case "uarr": c = String.fromCharCode(8593); break; case "rarr": c = String.fromCharCode(8594); break; case "darr": c = String.fromCharCode(8595); break; case "harr": c = String.fromCharCode(8596); break; case "crarr": c = String.fromCharCode(8629); break; case "lArr": c = String.fromCharCode(8656); break; case "uArr": c = String.fromCharCode(8657); break; case "rArr": c = String.fromCharCode(8658); break; case "dArr": c = String.fromCharCode(8659); break; case "hArr": c = String.fromCharCode(8660);
                            break; case "forall": c = String.fromCharCode(8704); break; case "part": c = String.fromCharCode(8706); break; case "exist": c = String.fromCharCode(8707); break; case "empty": c = String.fromCharCode(8709); break; case "nabla": c = String.fromCharCode(8711); break; case "isin": c = String.fromCharCode(8712); break; case "notin": c = String.fromCharCode(8713); break; case "ni": c = String.fromCharCode(8715); break; case "prod": c = String.fromCharCode(8719); break; case "sum": c = String.fromCharCode(8721); break; case "minus": c = String.fromCharCode(8722);
                            break; case "lowast": c = String.fromCharCode(8727); break; case "radic": c = String.fromCharCode(8730); break; case "prop": c = String.fromCharCode(8733); break; case "infin": c = String.fromCharCode(8734); break; case "ang": c = String.fromCharCode(8736); break; case "and": c = String.fromCharCode(8743); break; case "or": c = String.fromCharCode(8744); break; case "cap": c = String.fromCharCode(8745); break; case "cup": c = String.fromCharCode(8746); break; case "int": c = String.fromCharCode(8747); break; case "there4": c = String.fromCharCode(8756);
                            break; case "sim": c = String.fromCharCode(8764); break; case "cong": c = String.fromCharCode(8773); break; case "asymp": c = String.fromCharCode(8776); break; case "ne": c = String.fromCharCode(8800); break; case "equiv": c = String.fromCharCode(8801); break; case "le": c = String.fromCharCode(8804); break; case "ge": c = String.fromCharCode(8805); break; case "sub": c = String.fromCharCode(8834); break; case "sup": c = String.fromCharCode(8835); break; case "nsub": c = String.fromCharCode(8836); break; case "sube": c = String.fromCharCode(8838); break;
                        case "supe": c = String.fromCharCode(8839); break; case "oplus": c = String.fromCharCode(8853); break; case "otimes": c = String.fromCharCode(8855); break; case "perp": c = String.fromCharCode(8869); break; case "sdot": c = String.fromCharCode(8901); break; case "lceil": c = String.fromCharCode(8968); break; case "rceil": c = String.fromCharCode(8969); break; case "lfloor": c = String.fromCharCode(8970); break; case "rfloor": c = String.fromCharCode(8971); break; case "lang": c = String.fromCharCode(9001); break; case "rang": c = String.fromCharCode(9002);
                            break; case "loz": c = String.fromCharCode(9674); break; case "spades": c = String.fromCharCode(9824); break; case "clubs": c = String.fromCharCode(9827); break; case "hearts": c = String.fromCharCode(9829); break; case "diams": c = String.fromCharCode(9830); break; default: c = ""
                    } e = f
                } 
            } b += c
        } return b
    } 
} function URLEncode(a) { a = encodeURI(a); a = a.replace(/%C2%A0/g, "+"); a = a.replace(/&/g, "%26"); a = a.replace(/'/g, "%27"); return a = a.replace(/\+/g, "%2B") }
function evalScriptInHtml(a, b) { var d = new String(a), e = []; for ("boolean" != typeof b && (b = !1); -1 < d.indexOf("<script") || -1 < d.indexOf("<\/script"); ) { var c = d.indexOf("<script"), f = d.indexOf(">", c), g = d.indexOf("<\/script", c), h = d.indexOf(">", g), f = d.substring(f + 1, g); "" != f && e.push(f); b || (d = d.substring(0, c) + d.substring(h + 1)) } for (c = 0; c < e.length; c++) try { eval(e[c]) } catch (k) { } return d }
function getSelectedCheckboxValuesAsDilimitedString(a, b) { if (null == a || "undefined" == typeof a) return ""; for (var b = "" + (null == b || "" == b ? "," : b), d = new String(""), e = 0; e < a.length; e++) a[e].checked && (d = d.concat(b, a[e].value)); return d = d.substring(b.length) }
function getFormTextFieldsAsArray(a) { var b = []; if (null == a || "" == a) return b; var d = a; "string" == typeof a && (d = document.getElementById(a)); if ("object" != typeof d) return b; for (var a = d.getElementsByTagName("input"), d = null, e = 0, c = 0, f = a.length; c < f; c++) d = a[c], "text" == d.type && (b[e] = d, e++); return b }
function HasAnyQuantityTextFieldInvalidValue(a, b) { for (var d = getFormTextFieldsAsArray(a), b = isNaN(parseInt(b)) ? 1 : b, e = null, c = "", f = 0, g = d.length; f < g; f++) if (e = d[f], c = Trim(e.value), "" != c && (c = parseInt(c), isNaN(c) || c < b)) return e.focus(), !0; return !1 }
function HasOrderFormAnySelectedProduct(a) { if (null == a || "" == a) return !1; var b = a; "string" == typeof a && (b = document.getElementById(a)); if ("object" != typeof b) return !1; a = a.elements; b = a.length; if (0 == b) return !1; for (var d = !1, e = 0; e < b && !("checkbox" == a[e].type ? a[e].checked && (d = !0) : "select" == a[e].type ? 0 < a[e].selectedIndex && (d = !0) : "text" == a[e].type && "" != a[e].value && (d = !0), d); e++); return d }
function getSelectedRadioButtonIndex(a) { if (null == a || "" == a) return -1; var b = a; "string" == typeof a && (b = document.getElementById(a)); if (null == b || 0 == b.length) return -1; for (var a = 0, d = b.length; a < d; a++) if (b[a].checked) return a; return -1 } function getSelectedRadioButtonElementByName(a) { var a = document.getElementsByName(a), b = getSelectedRadioButtonIndex(a); return -1 == b ? null : a[b] } function changeButtonCaptionById(a, b) { var d = document.getElementById(a), b = null == b ? "" : b; if (null != d && "" != b) d.value = b }
function applyFixForFirefoxRadioButtonCycling(a) { var b = a; "string" == typeof b && (b = document.getElementById(a)); null != b && (a = new String(navigator.userAgent), a = a.toLowerCase(), -1 < a.indexOf("firefox") && b.setAttribute("autocomplete", "off")) } function isHTML(a) { var b = !1; new String(a); re = /([\<])[a-z]+([^\>]{1,})*([\>])/i; return b = re.test(a) } function countEmails(a) { for (var b = a.indexOf("@"), d = 0; -1 != b; d++) b = a.indexOf("@", b + 1); return d }
function setDefaultFieldValue(a, b, d, e, c) { var f = document.getElementById(a); if (null != f) if ("" == Trim(b)) f.value = ""; else { if (null == d || "" == Trim(d)) d = b; if ("" == e || null == e) e = "defaultAltText"; null == c && (c = ""); d != b && (e = c); f.className = e; f.value = d; f.onfocus = function() { if (f.value == b) f.value = "", f.className = c }; f.onclick = function() { if (f.value == b) f.value = "", f.className = c }; f.onblur = function() { if ("" == f.value) f.value = d, f.className = e } } }
function clearDefaultFieldValue(a, b, d) { a = document.getElementById(a); if (null != a) if ("" == Trim(b)) a.value = ""; else { if (a.value == b) a.value = ""; null == d && (d = ""); a.onfocus = function() { }; a.onclick = function() { }; a.onblur = function() { }; a.className = d } }
function prepareFieldDefaults(a, b) { var d = jQuery, b = b || "#666", e = d(a), c = e.attr("placeholder"); c && (d.trim(e.val()) == c && e.css({ color: b }), e.bind({ focus: function() { d.trim(e.val()) == c && e.css({ color: "black" }).val("") }, blur: function() { "" == d.trim(e.val()) && e.css({ color: b }).val(c) } })) } function toggleCheckbox(a) { a = document.getElementById(a); if (null != a) a.checked = !a.checked }
function copySelectedOptionsToListbox(a, b) { var d = document.getElementById(a), e = document.getElementById(b); if (!(null == d || null == e)) for (var c = 0; c < d.options.length; c++) if (!0 == d.options.item(c).selected) { var f = d.options.item(c); if (!optionWithValueExists(e.options, f.value)) { var g = document.createElement("option"); g.value = f.value; g.text = f.text; e.options.add(g) } } }
function removeSelectedOptionsFromListbox(a) { a = document.getElementById(a); if (null != a) for (var b = a.options.length - 1; 0 <= b; b--) !0 == a.options.item(b).selected && a.remove(b) } function optionWithValueExists(a, b) { for (var d = 0; d < a.length; d++) if (a.item(d).value == b) return !0; return !1 } function toProperCase(a) { a = a.toLowerCase(); return a = a.replace(/^(.)|\s(.)/g, function(a) { return a.toUpperCase() }) } function selectListItemElement(a, b) { var d = document.getElementById(a); return selectListItem(d, b) }
function addOptionToListbox(a, b, d) { a = document.getElementById(a); if (null != a) { var e = document.createElement("option"); e.value = b; e.text = d; a.options.add(e) } } function addListenerFormDataChanged(a, b) { var d = jQuery("#" + (null == b || "" == b ? "DataChanged" : b)), e = "#" + a + " :input:not(:hidden,:button)"; jQuery(e).bind("change.frmElmChange", function() { d.val("1"); jQuery(e).unbind("change.frmElmChange") }) } function hasFormDataChanged(a) { return 1 == parseInt(jQuery("#" + (null == a || "" == a ? "DataChanged" : a)).val()) }
function addChangeEventHandlerToFormInputFields(a, b) { "function" == typeof b && jQuery(a + " :input:not(:hidden,:button)").live("change.frmElmChangeWithCallback keypress.frmElmChangeWithCallback", function() { b() }) } function confirmFormDataChanges(a, b, d, e) { "function" != typeof d && (d = function() { return !1 }); if (!d()) return !1; var d = function() { jQuery("#" + a + " input#TargetURL").val(b); jQuery("#" + a).submit() }, c = function() { document.location.href = b }; "boolean" != typeof e && (e = !0); e || d(); e && showConfirmChangesDialog(d, c) }
function showConfirmChangesDialog(a, b) { if (!("function" != typeof a || "function" != typeof b)) pageDialog.message = "Would you like to save your changes?", pageDialog.title = "Data has Changed", document.getElementById("dialogOk").value = "Yes", document.getElementById("dialogCancel").value = "No", pageDialog.onOk = a, pageDialog.onCancel = b, pageDialog.modal = !0, pageDialog.show() }
function displayHintTextWithDelay(a, b, d, e) { if (null == b || "" == b) b = "Data has been saved."; if (!(null == a || "" == a)) if (d = parseInt(d), isNaN(d) && (d = 2E4), jQuery(a).prepend('<div class="hintText"><p>' + b + "</p></div>"), 0 < d) { e = parseInt(e); if (isNaN(e) || 0 > e) e = 2E3; var c = jQuery(a + " .hintText:first"); c.delay(d).fadeOut(e, function() { c.detach() }) } } function truncate(a, b, d) { null == b && (b = 40); null == d && (d = "..."); var e = new String(a); return e.length <= b ? a : e.substring(0, b) + d }
function jQueryGetAjaxOptions(a, b, d, e, c) { if (!(null == a || "" == a)) return "function" != typeof e && (e = function(b) { jQuery(a).html(b) }), "function" != typeof c && (c = function() { }), null == d && (d = ""), { type: "POST", url: b, data: d, cache: !1, success: e, complete: c, error: function() { jQuery(a).text("unable to load this field...") } } }
function getMonthNumberFromName(a) { var b = 0; switch (a.substring(0, 3).toLowerCase()) { case "jan": b = 1; break; case "feb": b = 2; break; case "mar": b = 3; break; case "apr": b = 4; break; case "may": b = 5; break; case "jun": b = 6; break; case "jul": b = 7; break; case "aug": b = 8; break; case "sep": b = 9; break; case "oct": b = 10; break; case "nov": b = 11; break; case "dec": b = 12 } return b }
function toJSONString(a) { if (null == a) return ""; var b = "", d = 0, e; for (e in a) 0 < d && (b += ", "), temp = a[e], s = "object" == typeof temp ? toJSONString(temp) : '"' + temp + '"', b += '"' + e + '":' + s, d++; return "{" + b + "}" } function updateFieldsTabIndex(a) { var b = 1; jQuery(a || "input,select").each(function() { "hidden" != this.type && (jQuery(this).attr("tabindex", b), b++) }) };
