function advforms_state_change(id, target) {
	$(id).style.display = (target.value == 'other' ? 'block' : 'none');
}

function advforms_update_country(stateText, countryId, stateId, choose) {
	$('edit-'+ stateId).disabled = true;
	var state = choose == 'choose' ? $('edit-'+ stateId).value : choose; 
	xajax_advforms_update_country(stateText, stateId, $('edit-'+ countryId).value, state);
}
