Originally posted by Jeremy Martin
Never mind, after some serious scouring of the net I found out how to do it. In three lines of code none the less.

Jeremy
well it would be nice if you post the code so if someone else needs it can use it