What *POSSIBLE* reason is there to use onkeyup???
The average is *MEANINGLESS* until all 5 numbers have been entered.
You are the second person today using onkeyup for no discernible reason. Where are you learning that from?
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.