function goMuniSelect(a_key) {
	var ind = window.document.f.countycode.selectedIndex;
	if (ind <= 0) {
		alert ("A county must be selected");
	} else {
		window.document.f.municipality.options.length = 0
		window.document.f.municipality.options[0] = new Option("Loading . . .");
		window.document.f.fdid.options.length = 0
		window.document.f.fdid.options[0] = new Option("Loading . . .");
		var county = window.document.f.countycode.options[ind].value;
		muniSelect = window.open("TankList?f=" + a_key + "&countycode=" + county, 
			"muniSelect", "height=1,width=1,menubar=no,status=no", true);
	}
}
function editInp(f) {
	if (f.municipality.value == "<Press Select for Selection List>" 
		|| f.municipality.value == "[Select County, Above]") {f.municipality.value = "";}
	if (f.fdid.value == "<Press Select for Selection List>"
		|| f.fdid.value == "[Select County, Above]") {f.fdid.value = "";}
	return true;
}
/* function stOpt - called from code window to store muni/fdid drop down lists */
function stOpt(name, text, val) {
	if (text == "") {
		window.document.f.elements[name].options.length = 0
	} else {
		var i = window.document.f.elements[name].options.length;
		if (val == null || val == "") {
			window.document.f.elements[name].options[i] = new Option(text);
		} else {
			window.document.f.elements[name].options[i] = new Option(text, val);
		}
	}
}

