some f*cking code that actually works? jeez! people come on here plagurizing, and they can't even make sure the code they're copying works? you sure you're not a programming book publisher?
umm... k you must be very mad at the world. ask your mom to hug you. get some love.