Quote Originally Posted by ninja9578 View Post
Yawning is used to quickly flush the lungs of old air and replace it with new oxygen rich air to give your brain a quick boost At least that what I thought
That's definitely the popularly-held belief, but when I searched for "stuff science can't explain" yawning was always on the list. Here, read this howstuffworks article. It goes over the common theories, and also gives examples of research that indicates that it's not because of need for more oxygen.

http://www.howstuffworks.com/question572.htm