PageSourceSearch

https://oaheymca.org/scripts/custom/cms_scripts.js

js oaheymca.org collected 2026-10-01 23:53:38 UTC 2,452 bytes, 92 lines download raw bytes

1function redirect(form, root) {
2	var newLoc = "/search.aspx?query=";
3	var qVal = "";
4	if (root) {
5		qVal = $("#searchQuery" + root).val();
6		newLoc += qVal + "&r=" + root + "&t=C";
7	} else {
8		qVal = form.searchQuery.value;
9		newLoc += qVal;
10	}
11	if (qVal.trim() === "") return;
12	document.location.href = newLoc;
13}
14
15function GoogleSearch(form, thiswidth, GoogleCSEID) {
16	var TestVar = form.searchtext.value;
17	var newloc = "/googlesearch.aspx?cx=" + GoogleCSEID + "&cof=FORID%3A11&ie=UTF-8&Width=" + thiswidth + " &q=" + TestVar;
18	document.location.href = newloc;
19}
20
21function vote(form) {
22	var TestVar = 0;
23	var PollID = form.PollID.value;
24
25	for (i = 0; i < form.r1.length; i++) {
26		if (form.r1[i].checked == true)
27			TestVar = form.r1[i].value;
28	}
29
30	var newloc = "/scripts/vote.aspx?poll=" + PollID + "&vote=" + TestVar + "&location=" + location.href;
31	document.location.href = newloc;
32}
33
34function MM_jumpMenu(targ, selObj, restore) { //v3.0
35	eval(targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
36	if (restore) selObj.selectedIndex = 0;
37}
38
39function RedirectUser(NewLocation) {
40	document.location.href = NewLocation;
41}
42
43function ChangeEditMode(Location) {
44	var NewLocation = Location.replace("?SwapEditMode=1", "").replace("&SwapEditMode=1", "");
45	if (NewLocation.indexOf("?") >= 0) {
46		window.location = NewLocation + "&SwapEditMode=1";
47	}
48	else {
49		window.location = NewLocation + "?SwapEditMode=1";
50	}
51}
52
53function showhide(divid) {
54	var ActiveDiv = document.getElementById(divid);
55	var CurrentDisplay = ActiveDiv.style.display;
56
57	if (CurrentDisplay == "none") {
58		Effect.SlideDown(ActiveDiv);
59	}
60	else {
61		Effect.SlideUp(ActiveDiv);
62	}
63}
64
65function showhideDataList(divid, listLink) {
66	var ActiveDiv = document.getElementById(divid);
67	var CurrentDisplay = ActiveDiv.style.display;
68
69	if (CurrentDisplay == "none") {
70		//jQuery(".DataListItemObject").slideUp();
71		jQuery("." + divid).slideDown();
72		//jQuery(".DataListItemLink").removeClass("DataListSelected");
73		jQuery("." + listLink).addClass("DataListSelected");
74	}
75	else {
76		jQuery("." + divid).slideUp();
77		jQuery("." + listLink).removeClass("DataListSelected");
78	}
79}
80
81function disableEnterKey(e) {
82	var code = e.keyCode || e.which;
83	if (code == 13) {
84		e.preventDefault();
85		e.cancelBubble = true;
86		e.returnValue = false;
87		console.log(e);
88		return false;
89	}
90	return true;
91}
92

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.