function submit_state() {
	if(timerid)
		clearInterval(timerid)
	var fState = getRef("State")
	var fCity = getRef("City")
	if(fState.options[fState.selectedIndex].value == "")
		return false
	fCity.disabled = true
// Show loading message
	showLoading("City")
		hide("loadStore")
		hide("radStore")
		hide("selStore")
		hide("defStore")
// Load the url
	loadData("/appointment/selectStore.action?state=" + escape(fState.options[fState.selectedIndex].value))
// Wait until done
	dataLoaded = false
	timerid = setInterval('change_city()', 100)
}

function submit_city() {
	if(timerid)
		clearInterval(timerid)
	var fState = getRef("State")
	var fCity = getRef("City")
	if(fCity.options[fCity.selectedIndex].value == "")
		return false
// Show loading message
	showLoading("Store")
		hide("radStore")
		hide("selStore")
// Load the url
	loadData("/appointment/selectStore.action?state=" + escape(fState.options[fState.selectedIndex].value) + "&city=" + escape(fCity.options[fCity.selectedIndex].value))
// Wait until done
	dataLoaded = false
	timerid = setInterval('change_store()', 100)
}
