Prueba esto...y adaptalo a tu sistema...saludos
Código HTML:
<html>
<body>
<form name="form1" method="post" action="">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="alm1_n1" type="text" id="alm1_n1"></td>
<td><input name="alm2_n1" type="text" id="alm2_n1"></td>
<td><input name="alm3_n1" type="text" id="alm3_n1"></td>
</tr>
<tr>
<td><input name="alm1_n2" type="text" id="alm1_n2"></td>
<td><input name="alm2_n2" type="text" id="alm2_n2"></td>
<td><input name="alm3_n2" type="text" id="alm3_n2"></td>
</tr>
<tr>
<td><input name="alm1_n3" type="text" id="alm1_n3"></td>
<td><input name="alm2_n3" type="text" id="alm2_n3"></td>
<td><input name="alm3_n3" type="text" id="alm3_n3"></td>
</tr>
</table>
<input type="button" name="Button" value="check" onClick="check_()">
<input type="hidden" value="3" id="almns">
<input type="hidden" value="3" id="notas">
</form>
<script>
function check_()
{
for(i_almns=1;i_almns<=document.form1.almns.value;i_almns++)
{
for(i_notas=1;i_notas<=document.form1.notas.value;i_notas++)
{
var txt_nota = document.getElementById('alm'+i_almns+'_n'+i_notas);
var nota = txt_nota.value;
if(nota<10 || nota>70)
{
alert('Alumno:'+i_almns+' - Nota:'+i_notas+' - NO válida');
txt_nota.focus();
}
nota = null;
txtnota = null;
}
}
}
</script>
</body>
</html>