new method for filtering input type

prevents bug in ie7