function acceptNum100(evt,total){
var key = nav4 ? evt.which : evt.keyCode;
if (total>100) {
alert("pon un valor entre 0 y 100");
return}
else
return (key <= 13 || key == 45 || (key >= 48 && key <= 57));
}
<input name="porcentaje" type="text" size="6" maxlength="3" onKeyPress="return acceptNum100(event,this.value)">
No se si mi idea vaya correcta pero se me hace que lo que necesita estar parametrizado el FOCUS no?, pero el chiste es como le hago, es decir que si se salió fuera del focus y el valor es mayor marque el error, alguna idea?
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)
Gracias