How to differentiate between Ir transmitter/recv

I just got a package of IR emitter/detector from Radio Shack recently. In that case the clear one was the receiver, and the tinted one was the transmitter.

There's a great playground page that gives you a basic IR decoder. Might just need to test both of them.

http://www.arduino.cc/playground/Code/InfraredReceivers