Hola 
fjmasero 
Los 
id no deben repetirse y, que yo sepa, no hay un equivalente a 
getElementsByName 
A ver si este ejemplo te sirve de ayuda:  
 Código PHP:
    <html>
<head>
<script type="text/javascript">
function ver() {
  for(i=0; ele=document.getElementById('chk'+i); i++)
    alert(ele.checked);
}
</script>
</head>
<body>
<form>
<input type="checkbox" id="chk0" />
<input type="checkbox" id="chk1" />
<input type="checkbox" id="chk2" />
<input type="button" onclick="ver()" />
</form>
</body>
</html> 
   
  Saludos, 
