function countryChange(event, country_select, state_select, city_select) {
	var selected_country = event.target.value;
	if (selected_country != "United States") {
		// clear out the states and cities
		state_select[0].value = '';
		state_select.empty()
		state_select.parent().hide()
		city_select.empty()
		$.getJSON("/js/getCityForCountry/?country="+selected_country,
		    function(data) {
		        $.each(data, function(i, item){
		            var city =item.fields.name;
		            city_select.append("<option>"+city+"</option>");
		        });
		    }
		);
	} else {
		// populate the states
		state_select.empty();
		city_select.empty();
		state_select.parent().show();
		$.getJSON("/js/getStatesForCountry/?country="+selected_country,
		    function(data) {
                $.each(data, function(i, item){
                    var state = item.fields.name;
                    state_select.append("<option>"+state+"</option>");
                });
		    }
		);
	}
}
