PageSourceSearch

https://aumentumweb.jacksongov.org/ClientScript/Entry.js

js jacksongov.org collected 2026-10-02 05:47:31 UTC 4,170 bytes, 203 lines download raw bytes

1//Copyright 2005 - 2006 Harris Recording Solutions.
2//All Rights Reserved.
3
4
5function keyDownList(strbtn, event){
6	var btn = document.getElementById(strbtn);
7	if (document.all){
8		if (event.keyCode == 13){
9			event.returnValue=false;
10			event.cancel = true;
11			btn.click();
12		}
13	}
14	else if (document.getElementById){
15		if (event.which == 13){
16			event.returnValue=false;
17			event.cancel = true;
18			btn.click();
19		}
20	}
21	else if(document.layers){
22		if(event.which == 13){
23			event.returnValue=false;
24			event.cancel = true;
25			btn.click();
26		}
27	}
28}
29function SetBackGroundColor(ctrl, validColor, invalidColor)
30{
31	if(ctrl != null)
32	{
33		var ctrlValue = "";
34		switch (ctrl.type.toUpperCase()){
35			case "TEXT" :
36			case "PASSWORD" :
37				ctrlValue = ctrl.value;
38				break;
39			case "SELECT-ONE" :
40			case "SELECT-MULTIPLE" :
41				ctrlValue = ctrl.options[ctrl.selectedIndex].value;
42				break;
43			default :
44				window.status = ctrl.type;
45				break;	
46		}
47		try{
48			if(ctrlValue.length == 0 && !(ctrl.disabled || ctrl.readOnly))
49			{
50				ctrl.style.backgroundColor = invalidColor;
51			}
52			else
53			{
54				ctrl.style.backgroundColor = validColor;
55			}
56			}
57		catch (e)
58		{}
59	}
60}
61
62function igMask_TextChanged(oEdit, newText, oEvent){
63	newText = oEdit.get_value().replace(/ /g, '');
64	var editor = oEdit.get_inputElement();//  document.getElementById('igtxt' + oEdit.ID);
65	SetBackGroundColor(editor, 'white', 'yellow');
66}
67
68
69var _popup = null;
70var _searchOnPopupClose = false;
71function pageClose()
72{
73	_searchOnPopupClose = false;
74	closePopup();
75}
76function pageFocus()
77{
78	if (_popup != null){
79		_popup.focus();
80	}
81}
82function closePopup()
83{
84	if (_popup != null){
85		_popup.close();
86		_popup = null;
87		if (_searchOnPopupClose){
88			doSearch();
89		}
90	}
91}
92
93
94function getNumeric(s)
95{
96	return s.replace(/[^\d-]/gi, "");
97}
98function getValidChars(s)
99{
100	return s.toUpperCase().replace(/[^\x20-\x78]/gi, "");
101}
102
103function pickListTest()
104{
105	var charCode = (event.charCode ? event.charCode : event.keyCode);
106	if (charCode == 113){ //F2 
107		if (arguments == null || arguments.length == 0)
108			triggerPickList();
109		else
110			window.setTimeout(arguments[0], 10);
111	}
112
113}
114
115function doSearch()
116{
117	var btn = ig_getWebControlById("Search");
118	if (btn != null){
119		btn.click();
120	}
121}
122
123function savePickedValues(s){
124	_savePickedValues(s);
125}
126
127/*
128
129function selectListItemOnLoad(id){
130	var o = document.getElementById(id);
131	var idx = o.selectedIndex;
132	if(idx > -1) o.item(idx).selected = true;
133}
134
135
136function SetDDCInitialDate(id){
137	var oCombo = igdrp_getComboById(id);
138	var today = new Date();
139	oCombo.setValue(today);
140}
141function ddc_EditKeyDown(oDropDown, keyCode, oEvent){
142	if (keyCode == 40 && oDropDown.getValue() == null){
143		window.setTimeout('SetDDCInitialDate(\'' + oDropDown.Id + '\');', 10);
144	}
145}
146
147*/
148
149function GetXmlHttpObject(handler)
150{ 
151	var objXmlHttp=null;
152
153	if (navigator.userAgent.indexOf("Opera") > -1)
154	{
155		alert("This function does not work in Opera");
156		return;
157	}
158	if (navigator.userAgent.indexOf("MSIE") > -1)
159	{ 
160		var strName="Msxml2.XMLHTTP";
161		if (navigator.appVersion.indexOf("MSIE 5.5") > -1)
162		{
163			strName="Microsoft.XMLHTTP";
164		} 
165		try
166		{ 
167			objXmlHttp=new ActiveXObject(strName);
168			objXmlHttp.onreadystatechange=handler;
169			return objXmlHttp;
170		} 
171		catch(e)
172		{ 
173			alert("Error. Scripting for ActiveX might be disabled");
174			return;
175		} 
176	} 
177	if (navigator.userAgent.indexOf("Mozilla") > -1)
178	{
179		objXmlHttp=new XMLHttpRequest();
180		objXmlHttp.onload=handler;
181		objXmlHttp.onerror=handler;
182		return objXmlHttp;
183	}
184}
185
186var _emlParam = "";
187function _emlCB(){
188	if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete"){
189		var response = xmlHttp.responseText;
190		if (response.indexOf("*OK*") > -1){
191			alert(_emlParam);
192		}
193		else {
194			alert("Sorry, system error preparing the email.  Please try again later.");
195		}
196	} 
197}
198function _emlAct(addr, msg){
199	_emlParam = msg;
200	xmlHttp = GetXmlHttpObject(_emlCB);
201	xmlHttp.open("GET", addr + "&sid=" + Math.random(), true);
202	xmlHttp.send(null);
203}

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.