PageSourceSearch

https://piercecountynd.gov/components/js/ajaxfuncs.js

js piercecountynd.gov collected 2026-10-02 12:55:03 UTC 4,884 bytes, 1 lines download raw bytes

1function invokeScript(e){try{if(""!=e){var t="";e=e.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){return null!==e&&(t+=arguments[1]+"\n"),""}),t&&(window.execScript?window.execScript(t):window.setTimeout(t,0))}return!1}catch(e){alert(e)}}function getFormValues(e){for(var t="",n=0;n<e.elements.length;n++)switch(e.elements[n].type){case"hidden":case"text":case"password":case"textarea":t+=e.elements[n].name+"="+escape(e.elements[n].value)+"&";break;case"radio":case"checkbox":e.elements[n].checked&&(t+=e.elements[n].name+"="+escape(e.elements[n].value)+"&");break;case"select-one":t+=e.elements[n].name+"="+e.elements[n].options[e.elements[n].selectedIndex].value+"&";break;case"select-multiple":if(!e.elements[n].disabled)for(var s=0;s<e.elements[n].length;s++){var a=e.elements[n].options[s];1==a.selected&&(t+=e.elements[n].name+"="+escape(a.value)+"&")}}return t=t.substr(0,t.length-1)}function findFormID(e){for(var t=0;t<e.elements.length;t++)switch(e.elements[t].type){case"hidden":if("ajaxformid"==e.elements[t].name)return escape(e.elements[t].value)}return"myform"}var http=null;function Searchlist(e,t){$.get("getsearchlist.php?searchname="+e+"&searchpartno="+t,function(e){$("#searchresult").html(e).fadeIn("slow")})}function interrputCheck(e,t){1==e.checked?$("#"+t+e.value).fadeIn("slow"):$("#"+t+e.value).hide()}function addPro(e,t){var n=$("#suggestedproducts"),s=e.parentNode.parentNode,a=$("<tr></tr>");a.attr("id","sp"+t),a.html('<td><input type="hidden" name="includeproducts[]" value="'+t+'" />'+s.getElementsByClassName("name")[0].innerHTML+"</td><td>"+s.getElementsByClassName("pno")[0].innerHTML+'</td><td><input type="checkbox" name="interruptor['+t+']" value="'+t+'" onclick="interrputCheck(this, \'spinter\');" /> </td><td><a onclick="delPro(this, '+t+'); return false;" title="Delete" href=""><img src="../../img/icon/stop_16.gif" no-repeat scroll 0 0 transparent" border="0" alt="Remove"/></a></td>'),n.append(a);var i=$("<tr></tr>");i.html('<td colspan="4"><div id="spinter'+t+'" style="display: none;"><div><label style="width: 30%; display: inline-block; text-align: right; vertical-align: top; text-align: right;" >Message</label> <textarea name="interruptmsg['+t+']"></textarea></div><div><label style="width: 30%; display: inline-block; text-align: right; vertical-align: top;" >Allow Skip</label> <input type="checkbox" value="'+t+'" name="allowskip['+t+']" onclick="interrputCheck(this, \'intskipmess\');" /></div><div style="display: none;" id="intskipmess'+t+'"><label style="width: 30%; display: inline-block; vertical-align: top; text-align: right;" >Skip Message</label> <input name="skipmessage['+t+']" type="text" /></div></div></td>'),n.append(i),s.style.display="none"}function delPro(e,t){$("#spro"+t).fadeIn("slow");$("#sp"+t).remove(),$("#spinter"+t).remove()}function getElementbyClass(e,t){var n=new Array,s=0,a=e.length;for(i=0;i<a;i++)e[i].className==t&&(n[s++]=e[i]);return n}function sub(e,t){var n=getFormValues(e),s=findFormID(e);http=sendRequest(t,n,s)}function subEditor(e,t){for(instance in CKEDITOR.instances)CKEDITOR.instances[instance].updateElement();var n=getFormValues(e),s=findFormID(e);http=sendRequest(t,n,s)}function createRequestObject(){if(window.XMLHttpRequest)(http=new XMLHttpRequest).overrideMimeType&&http.overrideMimeType("text/xml");else if(window.ActiveXObject)try{http=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{http=new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}return http||(alert("Cannot create XMLHTTP instance"),!1)}function sendRequest(e,t,n){return n||(n="myform"),(http=createRequestObject()).open("POST",e,!0),http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),http.onreadystatechange=function(){handleResponse(n,"")},http.send(t),http}function sendRequestCallBack(e,t,n,s){return n||(n="myform"),(http=createRequestObject()).open("POST",e,!0),http.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),http.onreadystatechange=function(){handleResponse(n,s)},http.send(t),http}function openEditor(e,t){document.getElementById(t).innerHTML=e,CKEDITOR.replace("textarea_editor",{contentsCss:"/components/stylesheet.php?css=screen.css",width:"70%",height:"300",toolbar:[["Bold","Italic","Underline","Strike","Subscript","Superscript","-","NumberedList","BulletedList","-","JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock","-","TextColor","BGColor","-","Unlink","Image","-","Font","FontSize"]],resize_enabled:!1,removePlugins:"colorbutton,find,flash,forms,newpage,removeformat,scayt,smiley,specialchar,templates,wscnewpage,about,elementspath,dataprocessor,save"})}
1function handleResponse(e,t){if(4==http.readyState&&200==http.status){var n=http.responseText;if(n){if(""!=t)return t(n,e),1;document.getElementById(e).innerHTML=n,invokeScript(n)}else alert("There was a problem with the request.")}}

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.