﻿
// Handle a change to the ESF US State

var g_strESFSelectedUSState = null;

function ESFChangeUSState(objSelect) {
	// Hide the old contents, if any
	if ( g_strESFSelectedUSState != null && g_strESFSelectedUSState != "") {
		document.getElementById(g_strESFSelectedUSState+"-content").className = "hidden-content";
		g_strESFSelectedUSState = null;
	}
	
	g_strESFSelectedUSState = String(objSelect[objSelect.selectedIndex].value);
	if ( g_strESFSelectedUSState != "" ) {
		document.getElementById(g_strESFSelectedUSState+"-content").className = "visible-content";
	}
}


// Handle a change to the ESF European country

var g_strESFSelectedEuropeCountry = null;

function ESFChangeEuropeCountry(objSelect) {
	// Hide the old contents, if any
	if ( g_strESFSelectedEuropeCountry != null && g_strESFSelectedEuropeCountry != "") {
		document.getElementById(g_strESFSelectedEuropeCountry+"-content").className = "hidden-content";
		g_strESFSelectedEuropeCountry = null;
	}
	
	g_strESFSelectedEuropeCountry = String(objSelect[objSelect.selectedIndex].value);
	if ( g_strESFSelectedEuropeCountry != "" ) {
		document.getElementById(g_strESFSelectedEuropeCountry+"-content").className = "visible-content";
	}
}
