tomshawk -
I looked at yours, and the code is correct, but I notice that right after the code is another </form>.
When I copied just the code for this hack to a new document, it worked fine. I would say figure out why that extra </form> is in there.
edit: BTW -
validator.w3.org reports that as a extra </form> as well, and that there isn't an open form. I'd say comment it out and see if that fixes the problem.