Tu codigo va fenomeno CARICATOS,ponlo en las FAQs porque vale para Explorer y Netscape y es muy completo,aqui esta el codigo entero
Código PHP:
<html>
<head>
<script>
function validar(texto, e) {
if (navigator.appName == "Netscape") tecla = e.which;
else tecla = e.keyCode;
if (tecla > 48 && tecla < 58) return true;
if (tecla > 45 && tecla < 47) return true;
if (tecla == 0 || tecla == 8) return true;
return false;
}
</script>
<script>
function chequeo() {
if (document.forms[0].da1.value == "") {
alert("No debe dejar valores en blanco");
document.forms[0].da1.focus();
return;
}
if (document.forms[0].da2.value == "") {
alert("No debe dejar valores en blanco");
document.forms[0].da2.focus();
return;
}
document.forms[0].submit();
}
</script>
</head>
<body>
<form action='javascript:alert("correcto")'>
<input type="text" name="da1" onkeypress= "return validar(this.value, event)" size="1" maxlength="3"><BR>
<input type="text" name="da2" onkeypress= "return validar(this.value, event)" size="1" maxlength="3"><BR>
<input type="button" onclick="chequeo()" name="Submit" value="Continuar" >
</form>
</body>
</html>
No obstante tengo un problema para variar

,mira,resulta q yo trabajo con PHP y lo q meto en el formulario es esto:
Código PHP:
<input type="text" name="da3[<?echo $i?>][<?echo $j?>]" value="" size="4" maxlength="4" onkeypress= "return validar(this.value, event)" size="1" maxlength="1">
como meto entonces en la funcion chequeo ese da3[][]??????