no-no. i use this:
then document.getElementById('mydiv').innerHTML = getfile(blahblah);
so, the form goes inside the mydiv, i guess. i use this mydiv also for other purposes
but, your idea with pre-creating a form tag is not so stupid... i'd just modify my script a bit so a form would be in a page when page loads....