Much easier way:

http://idunno.org/archive/2004/14/01/122.aspx