Assuming you have a set of radio buttons with the same id, you can use the following to get the value of the selected/checked button.

var value = null;
$$(‘#plan_plan’).each( function(i) {</p>



<span class="kwrd">if</span> ($F(i)) { value = $F(i); }

} );