| Сообщение от рони   | 
	| agert, Вариант ...
 
 
<script type="text/javascript">
var a,b;
function foo(c) {
    if (a != c) {b = 0;a = c};
    b ^= 1;
    c.checked = b
};
</script>
<input type="radio" name="r" value="1" onclick="foo(this)"/>
<input type="radio" name="r" value="2" onclick="foo(this)"/>
<input type="radio" name="r" value="3" onclick="foo(this)"/>
 | 
	
Спасибо. Всё работает. Но я не понимаю смысл этих строк
if (a != c) {b = 0;a = c};
    b ^= 1;
    c.checked = b
Больше всего не понимаю зачем b возводить в первую степень.