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