Using onMouseEnter instead of onMouseOver on jordans suggestion
Made isNumberValid more generic
refactoring