I saw a registration page that when you select United States from the country selectbox it would then display a States selection box. How is that done.

this code was something like this...

<select name="country" class="register_fields" onchange = "HandleStateApearence(this.selectedIndex, null, $('state_'), $('state_3'), $('state_2'), null, 1, 38, false)">