como puedo completar este script:
Código:
alguien me puede ayudar?
<script type="text/javascript">
function validar(e) {
var field = document.getElementById(campo);
tecla = (document.all) ? e.keyCode : e.which;
if (tecla==13) {
//aqui iria el Sendkey
}
}
</script>

