Any chance to get your code script to comply to xhtml strict 1.0 doc type? for example, 'target' attribute used in the "<form target=...>" is definitely not valid.
You can simply remove that as that's only present to handle the case if your user does not have JavaScript enabled.There is no good workaround for removing "target" attribute and hence we have kept it.
Share and learn in the E-junkie community.