<form name=aa1 >
<p>
<input type=checkbox name="radiotex" value="1">1
</p> <p>
<input type=checkbox name="radiotex" value="3">3
</p>
<p>
<input type=checkbox name="radiotex" value="4">4
</p>
<p>
<input type=checkbox name="radiotex" value="2">2
</p>
<input type = button value=SelectAll onclick="SelectAll()"
</form>
<script>
checkit = true;
function SelectAll()
{
aa = document.getElementsByName("radiotex");
if (checkit)
{
for (i=0;i<aa.length;i++)
aa.item(i).checked=true;
checkit = false;
}
else
{
for (i=0;i<aa.length;i++)
aa.item(i).checked=false;
checkit = true;
}
}
</script>