in reply to CGI::AJAX onclick
Hmm, where to start...
These two items, with the code you are trying to parse, would give many parsers headaches. Clean up the output to the browser and see how it works.
--MidLifeXis