Update var_entry_validation.js

Removed input restriction, Firefox compatibility issues
Fixed indentation issues of code
Changed how the max values are determined
Added feature to detect if '-' is the first character
Added feature to update decimal value to max if beyond max
Added feature to turn cell pink if input is not a number
Misc changes/bug fixes.