function flexbuttons(maxradio, groupname, number, indname, indexselected, onprocess) |
/* Output a group of radio buttons or select |
(user responsible for format of <form>): |
- maxradio defines strategy: if more than |
maxradio items use a select field, otherwise |
use radio buttons |
- groupname is name of group |
- number is number of buttons with name |
indname[1..number] |
- indexselected is initial selection running |
from 1 to number |
- onprocess is name of onClick/onChange handler |
*/ |