Validating a dropdownlist in javascript