PageSourceSearch

https://www.elks.org/clms2web/js/clms2.js?6796995

js elks.org collected 2026-09-24 09:12:56 UTC 29,903 bytes, 825 lines download raw bytes

1function validateDate(originalDate, theDate) {
2	var dateField = theDate;
3	
4	var slash=dateField.value.indexOf('/');
5	
6	if (slash == -1) {   /*  if there are no slashes, and 8 characters of input, we'll supply the dashes */
7		if (dateField.value.length == 8) {
8			dateField.value = dateField.value.charAt(0) + dateField.value.charAt(1) + '/' + dateField.value.charAt(2) + dateField.value.charAt(3) + '/' + dateField.value.charAt(4) + dateField.value.charAt(5) + dateField.value.charAt(6) + dateField.value.charAt(7) ;
9		}
10	}
11	
12	if (checkdate(dateField) == false) {
13		dateField.style.background = '#ff8080';
14		alert('Invalid date or date format.  Dates should be submitted in mm/dd/yyyy format, such as 05/05/2006 for May 5, 2006');
15		dateField.value = originalDate;
16		dateField.focus();
17	}	
18		
19
20}
21
22function dropDateWarning(form) {
23	
24	var dateSubmitted = document.getElementById("chrDateItem").value;
25	var today = new Date();
26	var returnVal = true;
27	
28	
29	var currentLodgeYear = getLodgeYear(today); 
30	var submittedLodgeYear = getLodgeYear(dateSubmitted); 
31	
32		
33	if (    (currentLodgeYear > submittedLodgeYear) ) {
34		
35		if (confirm('Are you sure?  Submitting a drop date from a previous lodge year may create an out-of-balance situation for your lodge. Click OK to submit anyway.')) {
36			returnVal = true;
37		}
38		else {
39			returnVal = false;
40		}	
41		
42		
43	}	
44	else {	
45		returnVal = true;
46	}	
47	
48	return returnVal; 
49	
50}  
51
52function getLodgeYear(theDate) {
53	
54	 
55	 var d = new Date(theDate);
56	 var y = d.getFullYear();
57	 var m = d.getMonth();
58	 var theLodgeYear ;
59	 
60	 if (m < 3) {
61	 	theLodgeYear = (y - 1);
62	 }
63	 else {
64	 	theLodgeYear = y;
65	 }
66	 
67	 return(theLodgeYear);
68}
69
70
71
72function checkdate(input){
73	var validformat=/^\d{1,2}\/\d{1,2}\/\d{4}$/ //Basic check for format validity
74	var returnval=false
75	if (input.value == '') returnval = true;
76	else if (!validformat.test(input.value))
77		returnval = false;
78	else{ //Detailed check for valid date ranges
79		var monthfield=input.value.split("/")[0]
80		var dayfield=input.value.split("/")[1]
81		var yearfield=input.value.split("/")[2]
82		var dayobj = new Date(yearfield, monthfield-1, dayfield)
83		if ((dayobj.getMonth()+1!=monthfield)||(dayobj.getDate()!=dayfield)||(dayobj.getFullYear()!=yearfield))
84			returnval=false 
85		else
86			returnval=true
87	}
88	if (returnval==false) input.select()
89		return returnval
90}
91
92var openComparisonWindow = '0';
93function turnOnComparison(theID) {
94
95	if (openComparisonWindow > 0) {
96		document.getElementById(openComparisonWindow).style.display = 'none';
97	}	
98	document.getElementById(theID).style.display = ''; 
99	openComparisonWindow = theID;
100}
101
102function turnOffComparison(theID) {
103
104	document.getElementById(theID).style.display = 'none'; 
105
106	openComparisonWindow = 0;
107}
108
109
110
111var newwindow = '';
112function openCLMSWindow(theURL, newWindowProperties) {
113 	var defaultProperties =  'scrollbars=yes,width=1024,height=768,menubar=no,resizable=yes,toolbar=no,location=no,status=yes';
114	var theWindowProperties = '';
115	
116	if (newWindowProperties == '') {
117		var theWindowProperties = defaultProperties;
118	}
119	else {
120		var theWindowProperties = newWindowProperties;
121	}
122	
123	if (!newwindow.closed && newwindow.location) {
124		newwindow.location.href = theURL;
125	}
126	else {
127		newwindow=window.open(theURL, 'clmsWindow', theWindowProperties);
128		if (!newwindow.opener) newwindow.opener = self;
129	}
130	if (window.focus) {newwindow.focus()}
131	return false;
132}
133
134var newwindow2 = '';
135function openHELPWindow(theURL, newWindowProperties) {
136 	var defaultProperties =  'scrollbars=yes,width=800,height=600,menubar=no,resizable=yes,toolbar=no,location=no,status=yes';
137	var theWindowProperties = '';
138	
139	if (newWindowProperties == '') {
140		var theWindowProperties = defaultProperties;
141	}
142	else {
143		var theWindowProperties = newWindowProperties;
144	}
145	
146	if (!newwindow2.closed && newwindow2.location) {
147		newwindow2.location.href = theURL;
148	}
149	else {
150		newwindow2=window.open(theURL, 'helpWindow', theWindowProperties);
151		if (!newwindow2.opener) newwindow2.opener = self;
152	}
153	if (window.focus) {newwindow2.focus()}
154	return false;
155}
156
157var newwindow3 = '';
158function openMEMSYSWindow(theURL, newWindowProperties) {
159 	var defaultProperties =  'scrollbars=yes,width=1024,height=768,menubar=yes,resizable=yes,toolbar=no,location=no,status=yes';
160	var theWindowProperties = '';
161	
162	if (newWindowProperties == '') {
163		var theWindowProperties = defaultProperties;
164	}
165	else {
166		var theWindowProperties = newWindowProperties;
167	}
168	
169	if (!newwindow3.closed && newwindow3.location) {
170		newwindow3.location.href = theURL;
171	}
172	else {
173		newwindow3=window.open(theURL, 'memSysWindow', theWindowProperties);
174		if (!newwindow3.opener) newwindow3.opener = self;
175	}
176	if (window.focus) {newwindow3.focus()}
177	return false;
178}
179
180var newwindow4 = '';
181function openMISCWindow(theURL, newWindowProperties) {
182 	var defaultProperties =  'scrollbars=yes,width=1024,height=768,menubar=yes,resizable=yes,toolbar=no,location=no,status=yes';
183	var theWindowProperties = '';
184	
185	if (newWindowProperties == '') {
186		var theWindowProperties = defaultProperties;
187	}
188	else {
189		var theWindowProperties = newWindowProperties;
190	}
191	
192	if (!newwindow4.closed && newwindow3.location) {
193		newwindow4.location.href = theURL;
194	}
195	else {
196		newwindow4=window.open(theURL, 'memSysWindow', theWindowProperties);
197		if (!newwindow4.opener) newwindow3.opener = self;
198	}
199	if (window.focus) {newwindow4.focus()}
200	return false;
201}
202
203
204var newwindow5 = '';
205function openELKSORGWindow(theURL, newWindowProperties) {
206 	var defaultProperties =  'scrollbars=yes,width=1024,height=768,menubar=yes,resizable=yes,toolbar=no,location=no,status=yes';
207	var theWindowProperties = '';
208	
209	if (newWindowProperties == '') {
210		var theWindowProperties = defaultProperties;
211	}
212	else {
213		var theWindowProperties = newWindowProperties;
214	}
215	
216	if (!newwindow5.closed && newwindow3.location) {
217		newwindow5.location.href = theURL;
218	}
219	else {
220		newwindow5=window.open(theURL, 'memSysWindow', theWindowProperties);
221		if (!newwindow5.opener) newwindow3.opener = self;
222	}
223	if (window.focus) {newwindow5.focus()}
224	return false;
225}
226
227function zeroPad(num,count) { 
228	var numZeropad = num + '';
229	while(numZeropad.length < count) {
230	
231	numZeropad = "0" + numZeropad; 
232	}
233	return numZeropad;
234}
235
236function calculateTotalAmount(form, totalRecords) {
237	/*  this is used on processPayment.cfm ... probably no where else since it's pretty specific */
238	var total = 0;
239	
240	for (var i = 1; i <= totalRecords; i++) {
241		prefix = zeroPad(i, 2);
242		theField = prefix + '_PaymentAmount';
243		if (     isNaN(document.getElementById(theField).value)      ) {		
244			alert('Invalid numeric value: ' + document.getElementById(theField).value);
245			document.getElementById(theField).value = '';
246			document.getElementById(theField).style.background = '#ff8080';
247		}	
248		else {
249			total = total + parseFloat(document.getElementById(theField).value); 
250		}
251		
252	}
253	document.getElementById('theExpectedTotal').value = total.toFixed(2);
254	if (document.getElementById('theExpectedTotal').value == 0) {
255		document.getElementById('wizardAction').disabled = true;
256	}
257	else {
258		document.getElementById('wizardAction').disabled = false;
259	};	
260}
261
262function requireNumeric(sText)
263{
264	if (     isNaN(sText.value)      ) {		
265	
266 		alert('Invalid numeric value: ' + sText.value);
267		sText.value = '';
268		sText.style.background = '#ff8080';
269		
270	}	
271   
272}
273
274
275
276
277
278function ClearOptions(OptionList) {
279	// Always clear an option list from the last entry to the first
280	for (x = OptionList.length; x >= 0; x = x - 1) {
281	OptionList[x] = null;
282	}
283}
284
285
286function AddToOptionList(OptionList, OptionValue, OptionText) {
287	// Add option to the bottom of the list
288	OptionList[OptionList.length] = new Option(OptionText, OptionValue);
289}
290
291var activeTab = 'tab1';
292function switchTab(id)
293{
294	if(activeTab != id)
295	{
296		document.getElementById(activeTab).className='';
297		document.getElementById(activeTab + "data").style.visibility='hidden';
298		document.getElementById(activeTab + "data").style.display='none';
299		activeTab = id;
300		document.getElementById(id).className='active';
301		document.getElementById(id + "data").style.visibility='visible';
302		document.getElementById(id + "data").style.display='block';
303
304	}
305}
306	
307var activeRosterTab = 'tab1';
308function switchRosterTab(id)
309{
310
311
312	if (checkExitWithoutSaving() == true) 
313	{
314		if(activeTab != id)
315		{
316			document.getElementById(activeTab).className='';
317			document.getElementById(activeTab + "data").style.visibility='hidden';
318			document.getElementById(activeTab + "data").style.display='none';
319			activeTab = id;
320			document.getElementById(id).className='rosterActive';
321			document.getElementById(id + "data").style.visibility='visible';
322			document.getElementById(id + "data").style.display='block';
323			if (id == 'tab1') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabMember.cfm';}
324			else if (id == 'tab2') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabAlternate.cfm';}
325			else if (id == 'tab3') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabSpouse.cfm';}
326			else if (id == 'tab4') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabHistory.cfm';}
327			else if (id == 'tab5') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabIdentities.cfm';}		
328			else if (id == 'tab6') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabCommittees.cfm';}	
329			else if (id == 'tab7') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabMisc.cfm';}
330			else if (id == 'tab8') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabDues.cfm';}
331			else if (id == 'tab9') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabCustomFields.cfm';}
332			else if (id == 'tab10') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabRemarks.cfm';}
333			else if (id == 'tab11') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabFlags.cfm';}
334			else if (id == 'tab12') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabGLContact.cfm';}
335			else if (id == 'tab13') {document.getElementById(id + "frame").src ='/clms2web/includes/incTabAuxiliaries.cfm';}
336		}
337	}	
338}					
339
340// Preloader functions
341function insertPreloader()
342{
343	
344	var oDiv = document.createElement('div');
345	oDiv.setAttribute('id','loading');
346	oDiv.innerHTML = ' <img src="/clms2web/images/icons/ajax-loader.gif"> Loading, please wait ...';
347	document.getElementById('tabcontent').appendChild(oDiv);
348}
349
350function clearPreloadPage(id) 
351{
352	if(document.getElementById('loading'))
353	{
354		document.getElementById('loading').style.visibility='hidden';
355		document.getElementById('loading').style.display='none';
356	}
357
358}
359
360function changeLodge(form)
361{
362	if (document.getElementById('syncLodge').value == 'Range') {
363
364		document.getElementById('startLodge').value = '';
365	    document.getElementById('endLodge').value = '';
366		document.getElementById('membershipNumber').value = '';
367		document.getElementById('lodgeRange').style.display = 'block';
368	    document.getElementById('lodgeRange').style.visibility = 'visible';
369        document.getElementById('membershipNo').style.display = 'none';
370		document.getElementById('membershipNo').style.visibility = 'hidden';
371
372	}
373	else if (isNaN(document.getElementById('syncLodge').value) == false) {
374
375		document.getElementById('startLodge').value = '';
376	    document.getElementById('endLodge').value = '';
377		document.getElementById('membershipNumber').value = '';
378		document.getElementById('lodgeRange').style.display = 'none';
379	    document.getElementById('lodgeRange').style.visibility = 'hidden';
380        document.getElementById('membershipNo').style.display = 'block';
381		document.getElementById('membershipNo').style.visibility = 'visible';
382	}
383	else {
384
385		document.getElementById('startLodge').value = '';
386	    document.getElementById('endLodge').value = '';
387		document.getElementById('membershipNumber').value = '';
388		document.getElementById('lodgeRange').style.display = 'none';
389	    document.getElementById('lodgeRange').style.visibility = 'hidden';
390        document.getElementById('membershipNo').style.display = 'none';
391		document.getElementById('membershipNo').style.visibility = 'hidden';
392	}	
393}
394	
395function updateCircLength(f, maxLength)
396{
397	f.form.theLength.value = (maxLength - f.form.theOutgoingMessage.value.length); 
398	if (f.form.theLength.value < 0) {
399		f.form.theLength.style.color = 'red';
400	}	
401	else {
402		f.form.theLength.style.color = 'blue';
403	} 
404}
405
406function updateLodgeLength(f, maxLength, existingLength)
407{
408	f.form.theLength.value = (maxLength - f.form.messageToCirc.value.length - existingLength); 
409	if (f.form.theLength.value < 0) {
410		f.form.theLength.style.color = 'red';
411	}	
412	else {
413		f.form.theLength.style.color = 'blue';
414	} 
415}
416
417var formHasChanged = false;
418
419function logFormChange()
420{
421	formHasChanged = true;
422	parent.formHasChanged = true;  /*  parent version of variable */
423
424}	
425
426function checkExitWithoutSaving() 
427{
428	if (formHasChanged == true) {
429		if (confirm('Proceed without saving changes?')) {
430			formHasChanged = false;
431			parent.formHasChanged = false;
432			return true;
433		}
434		else {
435			return false;
436		}
437	}
438	{
439		return true;
440	}	
441}
442
443function resetFormCheck() 
444{
445	formHasChanged = false;
446	parent.formHasChanged = false;
447	
448
449}
450
451function clmsConfirm(prompt, url) 
452{
453	if (confirm(prompt)) { window.location.href = url; }
454
455}
456
457function hideAlert(theID) {
458
459	document.getElementById(theID).style.visibility = 'hidden'; 
460}
461
462function showAlert(theID) {
463
464	document.getElementById(theID).style.visibility = 'visible'; 
465}
466
467function updateLodgeNamePreview() {
468	editDataForm.previewLabel.value = editDataForm.chvFirstName.value + ' ' + editDataForm.chvMiddleName.value + ' ' + editDataForm.chvLastName.value; 
469}
470
471function confirmFirstNameValues() {
472	var theMessage = '';
473	var firstName = editDataForm.chvFirstName.value;
474
475	if ((firstName.toUpperCase().indexOf("HON ") > -1) || (firstName.toUpperCase().indexOf("HON.") > -1)) {
476		theMessage = 'ALERT:  Titles such as HON should be placed in the PREFIX field, and not in the first name field.';
477	}
478	else if ((firstName.toUpperCase().indexOf("DR ") > -1) || (firstName.toUpperCase().indexOf("DR.") > -1)) {
479		theMessage = 'ALERT:  Titles such as DR should be placed in the PREFIX field, and not in the first name field.';
480	}
481	else if ((firstName.toUpperCase().indexOf("MR ") > -1) || (firstName.toUpperCase().indexOf("MR.") > -1)) {
482		theMessage = 'ALERT:  Titles such as MR should be placed in the PREFIX field, and not in the first name field.';
483	}
484	else if ((firstName.toUpperCase().indexOf("MRS ") > -1) || (firstName.toUpperCase().indexOf("MRS.") > -1)) {
485		theMessage = 'ALERT:  Titles such as MRS should be placed in the PREFIX field, and not in the first name field.';
486	}
487	else if ((firstName.toUpperCase().indexOf("MISS ") > -1) || (firstName.toUpperCase().indexOf("MISS.") > -1)) {
488		theMessage = 'ALERT:  Titles such as MISS should be placed in the PREFIX field, and not in the first name field.';
489	}
490	else if ((firstName.toUpperCase().indexOf("PROF ") > -1) || (firstName.toUpperCase().indexOf("PROF.") > -1)) {
491		theMessage = 'ALERT:  Titles such as PROF should be placed in the PREFIX field, and not in the first name field.';
492	}
493	else if ((firstName.toUpperCase().indexOf("SEN ") > -1) || (firstName.toUpperCase().indexOf("SEN.") > -1)) {
494		theMessage = 'ALERT:  Titles such as SEN should be placed in the PREFIX field, and not in the first name field.';
495	}
496	else if ((firstName.toUpperCase().indexOf("JUDGE ") > -1) || (firstName.toUpperCase().indexOf("JUDGE.") > -1)) {
497		theMessage = 'ALERT:  Titles such as JUDGE should be placed in the PREFIX field, and not in the first name field.';
498	}
499	else if ((firstName.toUpperCase().indexOf("GEN ") > -1) || (firstName.toUpperCase().indexOf("GEN.") > -1)) {
500		theMessage = 'ALERT:  Titles such as GEN should be placed in the PREFIX field, and not in the first name field.';
501	}
502	else if ((firstName.toUpperCase().indexOf("REV ") > -1) || (firstName.toUpperCase().indexOf("REV.") > -1)) {
503		theMessage = 'ALERT:  Titles such as REV should be placed in the PREFIX field, and not in the first name field.';
504	}
505	else if ((firstName.toUpperCase().indexOf('"') > -1)) {
506		theMessage = 'ALERT:  Quotation marks should not be included in CLMS data.';
507	}
508	if (theMessage != '') {	
509		alert(theMessage);
510		editDataForm.chvFirstName.style.background = '#ff8080';
511		editDataForm.chvFirstName.focus(); // this doesn't seem to work, for some reason.
512	}	
513}
514
515function confirmMiddleNameValues() {
516	var theMessage = '';
517	var middleName = editDataForm.chvMiddleName.value;
518
519	if ((middleName.toUpperCase().indexOf('"') > -1)) {
520		theMessage = 'ALERT:  Quotation marks should not be included in CLMS data.';
521	}
522	if (theMessage != '') {	
523		alert(theMessage);
524		editDataForm.chvMiddleName.style.background = '#ff8080';
525		editDataForm.chvMiddleName.focus(); // this doesn't seem to work, for some reason.
526	}	
527}
528
529function confirmSuffixValues() {
530	var theMessage = '';
531	var suffix = editDataForm.chvSuffix.value;
532
533	if ((suffix.toUpperCase().indexOf('"') > -1)) {
534		theMessage = 'ALERT:  Quotation marks should not be included in CLMS data.';
535	}
536	if (theMessage != '') {	
537		alert(theMessage);
538		editDataForm.chvSuffix.style.background = '#ff8080';
539		editDataForm.chvSuffix.focus(); // this doesn't seem to work, for some reason.
540	}	
541}
542
543function confirmNickNameValues() {
544	var theMessage = '';
545	var nickname = editDataForm.chvNickname.value;
546
547	if ((nickname.toUpperCase().indexOf('"') > -1)) {
548		theMessage = 'ALERT:  Quotation marks should not be included in CLMS data.';
549	}
550	if (theMessage != '') {	
551		alert(theMessage);
552		editDataForm.chvNickname.style.background = '#ff8080';
553		editDataForm.chvNickname.focus(); // this doesn't seem to work, for some reason.
554	}	
555}
556
557function confirmTitleValues() {
558	var theMessage = '';
559	var title = editDataForm.chvElkTitle.value;
560
561	if ((title.toUpperCase().indexOf('"') > -1)) {
562		theMessage = 'ALERT:  Quotation marks should not be included in CLMS data.';
563	}
564	if (theMessage != '') {	
565		alert(theMessage);
566		editDataForm.chvElkTitle.style.background = '#ff8080';
567		editDataForm.chvElkTitle.focus(); // this doesn't seem to work, for some reason.
568	}	
569}
570
571
572function confirmLastNameValues() {
573	var theMessage = '';
574	var lastName = editDataForm.chvLastName.value;
575
576	if ((lastName.toUpperCase().indexOf(" JR") > -1) || (lastName.toUpperCase().indexOf("JR.") > -1)) {
577		theMessage = 'ALERT:  Titles such as JR should be placed in the SUFFIX field, and not in the last name field.';
578	}
579	else if ((lastName.toUpperCase().indexOf(" SR") > -1) || (lastName.toUpperCase().indexOf("SR.") > -1)) {
580		theMessage = 'ALERT:  Titles such as SR should be placed in the SUFFIX field, and not in the last name field.';
581	}
582	else if ((lastName.toUpperCase().indexOf(" II") > -1) || (lastName.toUpperCase().indexOf("II.") > -1)) {
583		theMessage = 'ALERT:  Titles such as II should be placed in the SUFFIX field, and not in the last name field.';
584	}
585	else if ((lastName.toUpperCase().indexOf(" III") > -1) || (lastName.toUpperCase().indexOf("III.") > -1)) {
586		theMessage = 'ALERT:  Titles such as III should be placed in the SUFFIX field, and not in the last name field.';
587	}
588	else if ((lastName.toUpperCase().indexOf(" IV") > -1) || (lastName.toUpperCase().indexOf("IV.") > -1)) {
589		theMessage = 'ALERT:  Titles such as IV should be placed in the SUFFIX field, and not in the last name field.';
590	}
591	else if ((lastName.toUpperCase().indexOf(" MD") > -1) || (lastName.toUpperCase().indexOf("MD.") > -1)) {
592		theMessage = 'ALERT:  Titles such as MD should be placed in the SUFFIX field, and not in the last name field.';
593	}
594	else if ((lastName.toUpperCase().indexOf(" PER") > -1) || (lastName.toUpperCase().indexOf("PER.") > -1)) {
595		theMessage = 'ALERT:  Titles such as PER should be placed in the ELKS TITLES field, and not in the last name field.';
596	}
597	else if ((lastName.toUpperCase().indexOf(" ER") > -1) ||(lastName.toUpperCase().indexOf("ER.") > -1)) {
598		theMessage = 'ALERT:  Titles such as ER should be placed in the ELKS TITLES field, and not in the last name field.';
599	}
600	else if ((lastName.toUpperCase().indexOf(" DD") > -1) || (lastName.toUpperCase().indexOf("DD.") > -1)) {
601		theMessage = 'ALERT:  Titles such as DD should be placed in the ELKS TITLES field, and not in the last name field.';
602	}
603	else if ((lastName.toUpperCase().indexOf(" PDD") > -1) || (lastName.toUpperCase().indexOf("PDD.") > -1)) {
604		theMessage = 'ALERT:  Titles such as PDD should be placed in the ELKS TITLES field, and not in the last name field.';
605	}
606	else if ((lastName.toUpperCase().indexOf(" PSP") > -1) || (lastName.toUpperCase().indexOf("PSP.") > -1)) {
607		theMessage = 'ALERT:  Titles such as PSP should be placed in the ELKS TITLES field, and not in the last name field.';
608	}
609	else if ((lastName.toUpperCase().indexOf(" HLM") > -1) || (lastName.toUpperCase().indexOf("HLM.") > -1)) {
610		theMessage = 'ALERT:  Titles such as HLM should be placed in the ELKS TITLES field, and not in the last name field.';
611	}
612	else if ((lastName.toUpperCase().indexOf(" LM") > -1) || (lastName.toUpperCase().indexOf("LM.") > -1)) {
613		theMessage = 'ALERT:  Titles such as LM should be placed in the ELKS TITLES field, and not in the last name field.';
614	}
615	else if ((lastName.toUpperCase().indexOf(" PGER") > -1) || (lastName.toUpperCase().indexOf("PGER.") > -1)) {
616		theMessage = 'ALERT:  Titles such as PGER should be placed in the ELKS TITLES field, and not in the last name field.';
617	}
618	else if ((lastName.toUpperCase().indexOf(" SECY") > -1) || (lastName.toUpperCase().indexOf("SECY.") > -1)) {
619		theMessage = 'ALERT:  Titles such as SECY should be placed in the ELKS TITLES field, and not in the last name field.';
620	}
621	else if ((lastName.toUpperCase().indexOf('"') > -1)) {
622		theMessage = 'ALERT:  Quotation marks should not be included in CLMS data.';
623	}
624
625	if (theMessage != '') {	
626		alert(theMessage);
627		editDataForm.chvLastName.style.background = '#ff8080';
628		editDataForm.chvLastName.focus(); // this doesn't seem to work, for some reason.
629	}	
630}
631
632
633function changeProposer(form)
634{
635	
636	if (document.getElementById('theProposer').value == 'ProposerFromAnotherLodge') {
637        document.getElementById('proposerData').style.display = 'block';
638		document.getElementById('proposerData').style.visibility = 'visible';
639		document.getElementById('theProposerLodgeNumber').value = '';
640		document.getElementById('theProposerMembershipNumber').value = ''; 
641	}
642	else {
643        document.getElementById('proposerData').style.display = 'none';
644		document.getElementById('proposerData').style.visibility = 'hidden';  
645	}	
646}
647
648
649function validateProposer(form)
650{
651
652
653	if (      (document.getElementById('theProposer').value == 'ProposerFromAnotherLodge') && (document.getElementById('theProposerLodgeNumber').value == '')      ) {
654		alert('You must select the lodge number of the proposer.');
655		document.getElementById('wizardAction').disabled = false;
656		return false;
657	}	
658	else if 	(      (document.getElementById('theProposer').value == 'ProposerFromAnotherLodge') && (document.getElementById('theProposerMembershipNumber').value == '')      ) {
659		alert('You must select the membership number of the proposer.');
660		document.getElementById('wizardAction').disabled = false;
661		return false;
662	}	
663	else {
664		return true;
665	}	
666	
667}
668
669function toggleText(theID) {
670	var zFullText = 'zBlock' + theID;
671	var zIntro = 'zIntro' + theID;
672
673    var fulltext = document.getElementById(zFullText);
674    var intro = document.getElementById(zIntro);
675
676    if (fulltext.style.display == "none") {
677        fulltext.style.display = "block";
678        intro.style.display = "none";
679    } else 
680	{
681        fulltext.style.display = "none";
682        intro.style.display = "block";
683    }
684}
685/*added 2 functions 8/29/24 rsegal*/
686function fillCountry(thestate)
687{
688	if(thestate.includes("USA"))
689		{
690			document.getElementById('chvActiveCountry').value = 'USA';
691		}
692	if(thestate.includes("MEX"))
693		{
694			document.getElementById('chvActiveCountry').value = 'Mexico';
695		}
696	if(thestate.includes("CAN"))	
697		{
698			document.getElementById('chvActiveCountry').value = 'Canada';
699		}	
700}
701function countryChange(country,alt)
702{
703	document.getElementsByClassName("usa")[0].selectedIndex=0;
704	document.getElementsByClassName("mexican")[0].selectedIndex=0;
705	document.getElementsByClassName("canadian")[0].selectedIndex=0;
706	if(country=="Mexico")
707	{
708		document.getElementsByClassName("usa")[0].style.display="none"
709		document.getElementsByClassName("mexican")[0].style.display="inline"
710		document.getElementsByClassName("usa")[0].disabled=true
711		document.getElementsByClassName("mexican")[0].disabled=false
712		document.getElementsByClassName("canadian")[0].style.display="none"
713		document.getElementsByClassName("canadian")[0].disabled=true
714		document.getElementsByClassName("canadian")[0].selectedIndex=0;
715		document.getElementsByClassName("usa")[0].selectedIndex=0;
716		if(alt==1)
717		{
718			document.getElementById("chvAltZip").value="";
719			document.getElementById("chvAltZip").style.display="inline";
720		}
721		else
722		{
723			document.getElementById("chvActiveZip").value="";
724			document.getElementById("chvActiveZip").style.display="inline";
725		}	
726	}
727	if(country=="USA")
728	{
729		document.getElementsByClassName("usa")[0].style.display="inline"
730		document.getElementsByClassName("mexican")[0].style.display="none"
731		document.getElementsByClassName("usa")[0].disabled=false
732		document.getElementsByClassName("mexican")[0].disabled=true
733		document.getElementsByClassName("canadian")[0].style.display="none"
734		document.getElementsByClassName("canadian")[0].disabled=true
735		if(alt==1)
736		{
737			document.getElementById("chvAltZip").value="";
738			document.getElementById("chvAltZip").style.display="inline";
739			document.getElementById("chvAltZip").disabled=false;
740		}
741		else
742		{
743			document.getElementById("chvActiveZip").value="";
744			document.getElementById("chvActiveZip").style.display="inline";
745			document.getElementById("chvActiveZip").enabled;
746		}	
747	}
748	if(country=="Canada")
749	{
750		document.getElementsByClassName("usa")[0].style.display="none"
751		document.getElementsByClassName("mexican")[0].style.display="none"
752		document.getElementsByClassName("usa")[0].disabled=true
753		document.getElementsByClassName("mexican")[0].disabled=true
754		document.getElementsByClassName("canadian")[0].style.display="inline"
755		document.getElementsByClassName("canadian")[0].disabled=false
756		document.getElementsByClassName("mexican")[0].selectedIndex=0;
757		document.getElementsByClassName("usa")[0].selectedIndex=0;
758		if(alt==1)
759		{
760			document.getElementById("chvAltZip").value="";
761			document.getElementById("chvAltZip").style.display="inline";
762			document.getElementById("chvAltZip").disabled=false;
763
764		}
765		else
766		{
767			document.getElementById("chvActiveZip").value="";
768			document.getElementById("chvActiveZip").style.display="inline";
769			document.getElementById("chvActiveZip").enabled;
770		}
771	}	
772	if(country != "USA"  && country != "Canada" && country != "Mexico")
773	{	
774		if(alt==0)
775		{
776		
777		document.getElementById("chvActiveZip").value="";
778		document.getElementsByClassName("usa")[0].selectedIndex=0;
779
780		document.getElementsByClassName("usa")[0].disabled=true
781		document.getElementsByClassName("usa")[0].style.display="inline"
782		document.getElementById("chvActiveZip").style.display="none";		
783		document.getElementsByClassName("usa")[0].style.display="none";		
784		document.getElementsByClassName("usa")[0].disabled="true";		
785		document.getElementsByClassName("canadian")[0].style.display="none";		
786		document.getElementsByClassName("canadian")[0].disabled="true";				
787		document.getElementsByClassName("canadian")[0].selectedIndex=0;
788		document.getElementsByClassName("mexican")[0].style.display="none";		
789		document.getElementsByClassName("mexican")[0].disabled="true";		
790		document.getElementsByClassName("mexican")[0].selectedIndex=0;
791		}
792		if(alt==1)
793		{
794		document.getElementsByClassName("usa")[0].style.display="inline"
795		document.getElementsByClassName("usa")[0].disabled=true
796		document.getElementsByClassName("usa")[0].value=""
797		document.getElementById("chvAltZip").value="";
798		document.getElementById("chvAltZip").style.display="none";
799		document.getElementById("chvAltZip").disabled="true";
800
801		document.getElementsByClassName("usa")[0].disabled=true
802		document.getElementsByClassName("usa")[0].style.display="inline"
803		document.getElementById("chvAltZip").style.display="none";		
804		document.getElementsByClassName("usa")[0].style.display="none";		
805		document.getElementsByClassName("usa")[0].disabled="true";		
806		document.getElementsByClassName("canadian")[0].style.display="none";		
807		document.getElementsByClassName("canadian")[0].disabled="true";				
808		document.getElementsByClassName("canadian")[0].selectedIndex=0;
809		document.getElementsByClassName("mexican")[0].style.display="none";		
810		document.getElementsByClassName("mexican")[0].disabled="true";		
811		document.getElementsByClassName("mexican")[0].selectedIndex=0;
812
813
814		}
815
816
817	}
818	/*if(country != "USA"  && country != "Canada" && country != "Mexico" && alt == 1)
819	{
820		document.getElementById("chvAltZip").value="";
821		document.getElementById("chvAltState").selectedIndex = 0;
822	}	
823*/
824}
825

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.