Why don't you show us a working version of the code instead of spewing endless argument?
But if you know how to use The Google, you can actually find code of mine that does this. I doubt very highly you can say the same thing.
I'd Like Thomas Ptacek To Apologize Please http://www.zedshaw.com/blog/2010-01-12.html
Welcome to Thomas J Ptacek Furniture http://www.thomasjptacek.com/
Security Idiot: Thomas Ptacek: Too Quick By Far! http://www.securityidiot.com/2008/07/thomas-ptacek-too-quick...
Are those yours?