Wow, thanks for doing that. Bizarre though. How could the code have gotten so messed up?
Could this have anything to do with so many errors:
No character encoding information was found within the document, either in an HTML meta element or an XML declaration. It is often recommended to declare the character encoding in the document itself, especially if there is a chance that the document will be read from or saved to disk, CD, etc.