See the response to:
Re: Running Javascript in text/html module 
Posted: 13 Jan 06 8:07 AM
By Jon Henning. in this text/html forum
With that information I was able to take an html page that had inline Java script and make it work in the Text/HTML module.
Since one cannot in DNN have a <form name=...> tag in the Text/HTML module html, elements (i.e. fields and buttons) in the form cannot be referenced with a path that requires a form name.
In Jon's example html that contained
<form name="FWform" ...>
with JS references like
FWform.AL1.value
needed to be changed to
document.getElementById('AL1').value
or to:
document.forms[0].AL1.value
What I did was make a copy of my HTML that worked outside of DNN and changed all the JS references from ones that referred directly to the formname to ones (according to Jon's instructions) to ones that did not.
After making sure that this changed HTML copy worked, I then cut the necessary pieces from it (making sure I did not bring over the <form name=...> tag) and pasted them into my DNN text/HTML module. And voila, it worked.
Hope this helps
Samsen.