Update January 22, 2008: Big thanks to all of you who used this script, complained about its shortcomings and asked for improvements. I never thought that it would get so much attention. Actually the use I intended for it was mainly conversion in an JavaScript environment without access to a browser DOM. If you are running in a browser there are so many scripts out there today that do a better job