A New Photometric Technique for the Joint Selection of Star-forming and Passive Galaxies at 1.4