<form name="form1" method="post" action="">
          <input type="radio" name="aaa" value="1" checked>
          <input type="radio" name="aaa" value="0">
          <input type="radio" name="bbb" value="1" checked>
          <input type="radio" name="bbb" value="0">
<input type=button onclick="checkit()">
</form>
<script>
function checkit()
{
y=0
x1=document.getElementsByName("aaa")
for(i=0;i<x1.length;i++)
{
if(x1[i].checked&&x1[i].value=="0") y++
}
x1=document.getElementsByName("bbb")
for(i=0;i<x1.length;i++)
{
if(x1[i].checked&&x1[i].value=="0") y++
}if(y==2) alert()
}
</script>