PageSourceSearch

https://dakotazoo.org/components/js/extrafuncs.js

js dakotazoo.org collected 2026-09-30 11:40:45 UTC 4,401 bytes, 1 lines download raw bytes

1function subPopup(e,t){var n=getFormValues(e);http=sendRequestPopup(t,n)}function sendRequestPopup(e,t){return http=createRequestObject(),http.open("POST",e,!0),http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),http.onreadystatechange=handleResponsePopup,http.send(t),http}function selectAll(e,t){if(1==e.checked){var n;for(n=0;n<t.elements.length;n++)"checkbox"==t.elements[n].type&&"rowcheck"==t.elements[n].className&&(t.elements[n].checked=!0)}else{var n;for(n=0;n<t.elements.length;n++)"checkbox"==t.elements[n].type&&"rowcheck"==t.elements[n].className&&(t.elements[n].checked=!1)}}function handleResponsePopup(){if(4==http.readyState&&200==http.status){var e=http.responseText;e?(preview=window.open("","preview","height=300,width=500,left=300, top=300, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, directories=no, status=no"),preview.document.body.innerHTML=e):alert("There was a problem with the request.")}}function confirmDelete(e){return window.confirm("Delete "+unescape(e).split("+").join(" ")+" ?")}function highlight(e){var t=e,n=document.getElementById(t);""!=n&&null!=n&&void 0!=n&&(n.style.color="#ef0000")}function bold(e){var t=e;document.getElementById(t).style.fontWeight="bold"}function clearForm(e){var t,n;for(n=e.elements,i=0,t;t=n[i++];){var d=t.type,l=t.tagName.toLowerCase();"text"==d||"password"==d||"textarea"==l?t.value="":"checkbox"==d||"radio"==d?t.checked=!1:"select"==l&&(t.selectedIndex=-1)}}function sameAddressInitiate(){var e=document.getElementById("billshipsame");null!=e&&""!=e&&""!=e&&(e.onclick=sameAddress,sameAddress(),e.form.onsubmit=submitSameAddressForm)}function sameAddress(){var e=document.getElementById("billshipsame");if(null!=e||void 0!=e||""!=e){var t=document.getElementById("billingfirst_nameinput"),n=document.getElementById("billinglast_nameinput");if(document.getElementById("billingcompanyinput"))var d=document.getElementById("billingcompanyinput");else var d=!1;var l=document.getElementById("billingaddressinput"),s=document.getElementById("billingaddress2input"),i=document.getElementById("billingcityinput"),a=document.getElementById("billingstateinput"),u=document.getElementById("billingzipinput"),o=document.getElementById("billingcountryinput"),p=document.getElementById("shippingfirst_nameinput"),m=document.getElementById("shippinglast_nameinput"),c=document.getElementById("shippingcompanyinput"),r=document.getElementById("shippingaddressinput"),g=document.getElementById("shippingaddress2input"),y=document.getElementById("shippingcityinput"),h=document.getElementById("shippingstateinput"),b=document.getElementById("shippingzipinput"),v=document.getElementById("shippingcountryinput");e.checked===!0?(t&&(p.value=t.value,""!=t.value&&(p.disabled=!0),t.onkeyup=sameAddress),n&&(m.value=n.value,""!=n.value&&(m.disabled=!0),n.onkeyup=sameAddress),d&&(c.value=d.value,""!=d.value&&(c.disabled=!0),d.onkeyup=sameAddress),l&&(r.value=l.value,""!=l.value&&(r.disabled=!0),l.onkeyup=sameAddress),s&&(g.value=s.value,""!=s.value&&(g.disabled=!0),s.onkeyup=sameAddress),i&&(y.value=i.value,""!=i.value&&(y.disabled=!0),i.onkeyup=sameAddress),a&&(h.selectedIndex=a.selectedIndex,""!=a.selectedIndex&&(h.disabled=!0),a.onchange=sameAddress),u&&(b.value=u.value,""!=u.value&&(b.disabled=!0),u.onkeyup=sameAddress),o&&(v.selectedIndex=o.selectedIndex,""!=o.selectedIndex&&(v.disabled=!0),o.onchange=sameAddress)):(p&&(p.disabled=!1),m&&(m.disabled=!1),c&&(c.disabled=!1),r&&(r.disabled=!1),g&&(g.disabled=!1),y&&(y.disabled=!1),h&&(h.disabled=!1),b&&(b.disabled=!1),v&&(v.disabled=!1),l&&(l.onkeyup=null),s&&(s.onkeyup=null),i&&(i.onkeyup=null),a&&(a.onchange=null),u&&(u.onkeyup=null),o&&(o.onchange=null))}}function submitSameAddressForm(){var e=document.getElementById("shippingfirst_nameinput"),t=document.getElementById("shippinglast_nameinput"),n=document.getElementById("shippingcompanyinput"),d=document.getElementById("shippingaddressinput"),l=document.getElementById("shippingaddress2input"),s=document.getElementById("shippingcityinput"),i=document.getElementById("shippingstateinput"),a=document.getElementById("shippingzipinput"),u=document.getElementById("shippingcountryinput");return e&&(e.disabled=!1),t&&(t.disabled=!1),n&&(n.disabled=!1),d&&(d.disabled=!1),l&&(l.disabled=!1),s&&(s.disabled=!1),i&&(i.disabled=!1),a&&(a.disabled=!1),u&&(u.disabled=!1),!0}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.