function updateSchoolsContact(selectedStateGroup){
	divNameInput = document.getElementById('schoolname_input');
	divNameSelect = document.getElementById('schoolname_select');
	//divINPUT = document.getElementById('schoolcity_input');
	//divTXT = document.getElementById('schoolcity_text');

	var schoollist = document.contactform.school;
	
	notInList_Container = document.getElementById('schoolnotlisted');

	// First thing to do is make sure the check box for 'My School Is Not Listed' is unchecked
		document.contactform.schoolnotinlist.checked = false;
	
	
	// Now, before we generate the drop down box, check to make sure a state they chose contains schools.  If it
	// doesn't, then show the input fields
		if(schools[selectedStateGroup].length == 1){
			//divINPUT.style.display = "";
			//divTXT.style.display = "none";			
			divNameInput.style.display = "";
			divNameSelect.style.display = "none";
			
			// Get the JDEAddress Number from the webother[] array.
				var stateAbbr = selectedStateGroup;
				var REG_JDEAN8_AddressNumber = webother[stateAbbr];
				document.contactform.REG_JDEAN8_Manual.value = REG_JDEAN8_AddressNumber;	
				//alert(REG_JDEAN8_AddressNumber);
				
			// Since the user chose a state that doesn't have any options, make sure the checkbox for 'My School Is Not Listed' isn't shown					
				notInList_Container.style.display = "none";
				
				setFieldsToBlank("regular");
				
				document.contactform.VT_schoolNameManual.focus();
			
		}
		else{
	
				notInList_Container.style.display = "";
	
			// Now make the select box and other appropriate input's appear.  For the others, make them disappear
				//divINPUT.style.display = "none";
				//divTXT.style.display = "";			
				divNameInput.style.display = "none";
				divNameSelect.style.display = "";
			
			// For the School City text, set it to nothing
				//divTXT.innerHTML = "";
				
				
			// Now comes the generation of the drop down box.	
		
				schoollist.disabled = false;
				schoollist.options.length=0
				if (selectedStateGroup != "-"){
					for (i=0; i<schools[selectedStateGroup].length; i++)
					schoollist.options[schoollist.options.length]=new Option(schools[selectedStateGroup][i].split("|")[0],schools[selectedStateGroup][i].split("|")[0])
				}
				
			// Since the user chose a state, make sure the checkbox for 'My School Is Not Listed' is enabled
				document.contactform.schoolnotinlist.disabled = false;
		
		}
}

function toggleManSchoolEntry(checked){

	
	divNameInput = document.getElementById('schoolname_input');
	divNameSelect = document.getElementById('schoolname_select');

	if(checked){
		
		divNameInput.style.display = "";
		divNameSelect.style.display = "none";
		
		document.contactform.schoolNameManual.focus();
		
	}
	else{
		
		divNameInput.style.display = "none";
		divNameSelect.style.display = "";

	}
}
