Ok, I'm going to just trust you on this method :-)  You found this chunk of code somewhere reputable I imagine?