If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Javascript not working in traditional or strict pages

I had to copy a piece of java code into the head of a new xhtml doc. The original page and the first couple of lines of code are the original code below. The page holds an .swf that calls a java function. (THIS WORKS)

First of all, they are not Java functions. They are JavaScript functions.
Then, try changing <script language="javascript"> to <script type="text/javascript">. In XHTML, <script> tag doesn't have an attribute called language, only type.