If the radio buttons have the same name, the check of one of them will automatically disable the check on other, this might be a simple HTML solution of your problem. If you have to submit the result, give different values (even the same name), and that will do the job.
The simpliest JavaScript way to identify the forms elements is
document.forms[i].elements[j]
where i and j are positive integer numbers from 0, and shows the forms/elements order in page from top to bottom.
To check/uncheck a radio button you have to use
true and
false boleean operators and to evaluate the state of the check situation
PHP Code:
function check_uncheck(form_name,check_name,state){
var elemgroup=eval("document.forms."+form_name+"."+check_name)
for j=0;j<elemgrop.length;j++)
elemgroup[j].checked=state
}
Now, if u use an event, you may specify the state you want for the whole group:
To uncheck:
<tag onevent="check_uncheck(form_name,check_name,
false)">
To check:
<tag onevent="check_uncheck(form_name,check_name,
true)">