I'm not sure where ad_form actually creates the form, though.
Have you tried to move the code below ad_form?
/Lars