Checking which radio button was clicked on a cck form using Javascript or Jquery
If you want to have an 'other' type of field you could use: http://drupal.org/project/select_or_other

I maintain custom code to achieve what you want (on very long fake multistep forms) and don't recommend this, it quickly becomes very unmanageable.