function changeFormRegional(){
	var category = document.options.category.value;
	var map_daily = document.options.map_daily.value;
	var map_latest = document.options.map_latest.value;
	var map_previous = document.options.map_previous.value;
	var map_previous_month = document.options.map_previous_month.value;
	var map_previous_year = document.options.map_previous_year.value;
	var form_daily = document.getElementById('form_daily')
	var form_latest = document.getElementById('form_latest')
	var form_previous = document.getElementById('form_previous')
	var go = document.getElementById('go')
	if(category=='daily'){
		form_daily.style.display = 'block'
		form_latest.style.display = 'none'
		form_previous.style.display = 'none'
		document.options.map_latest.value = ''
		document.options.map_previous.value = ''
		document.options.map_previous_month.value = ''
		document.options.map_previous_year.value = ''
	}
	else if(category=='latest'){
		form_daily.style.display = 'none'
		form_latest.style.display = 'block'
		form_previous.style.display = 'none'
		document.options.map_daily.value = ''
		document.options.map_previous.value = ''
		document.options.map_previous_month.value = ''
		document.options.map_previous_year.value = ''

	}
	else if(category=='previous'){
		form_daily.style.display = 'none'
		form_latest.style.display = 'none'
		form_previous.style.display = 'block'
		document.options.map_daily.value = ''
		document.options.map_latest.value = ''

	}
	else{
		form_daily.style.display = 'none'
		form_latest.style.display = 'none'
		form_previous.style.display = 'none'
		document.options.map_daily.value = ''
		document.options.map_latest.value = ''
		document.options.map_previous.value = ''
		document.options.map_previous_month.value = ''
		document.options.map_previous_year.value = ''
	}
	if((category=='daily' && map_daily!='') || (category=='latest' && map_latest!='') || (category=='previous' && map_previous!='' && map_previous_month!='' && map_previous_year!='')){
		go.style.display = 'block'
	}
	else{
		go.style.display = 'none'
	}
}


function changeTextRegional(){
	changeFormRegional();
	var region = document.options.region.value;
	var type = document.options.type.value;
	var category = document.options.category.value;
	var map_daily = document.options.map_daily.value;
	var map_latest = document.options.map_latest.value;
	var map_previous = document.options.map_previous.value;
	var map_previous_month = document.options.map_previous_month.value;
	var map_previous_year = document.options.map_previous_year.value;
	var map = ''
	if(category=='daily' && map_daily!=''){
		map = map_daily
	}
	else if(category=='latest' && map_latest!=''){
		map = map_latest
	}
	else if(category=='previous' && map_previous!='' && map_previous_month!='' && map_previous_year!=''){
		map = map_previous_month + map_previous_year + map_previous
	}
	if(region=='US'){
		map = map + region + type
	}
	else{
		map = region.toLowerCase() + '/' + map + region + type
	}
	var src = 'http://www.hprcc.unl.edu/products/maps/acis/' + map + '.png'
	$('.featured_data')
		.item([
			{data_graphic:'<img src="'+src+'"/>'}
			])
		.chain();
}