function load_county_list(StateID) {
	x_load_county_list(StateID, cb_return_dropdown);
}

function cb_return_dropdown(result) {
	document.getElementById('county_dropdown').innerHTML = result;
}



function email_owners() {
	x_email_owners(cb_email_owners);
}

function cb_email_owners(sReturn) {
	window.location.href = "mailto:" + sReturn;
}



function create_link() {
	if (document.getElementsByName('StateFound')[0].value == "")
	{
		alert('You must select a state and county.');
	}
	else
	{
		StateID = document.getElementsByName('StateFound')[0].value;
		CountyID = document.getElementsByName("CountyFound")[0].value;
		x_create_link(StateID, CountyID, cb_create_link);
	}
}

function cb_create_link(result) {
	aResults = result.split('|:|');
	document.getElementById('html_link_box').style.display = 'block';
	document.getElementById('html_link_county').value = aResults[0];
	document.getElementById('html_link_state').value = aResults[1];
}