javascript global variables visibility
<p>I'm using a global variable in javascript, declared in a script tag outside any function:</p>

<pre><code>&lt;script type="text/javascript"&gt;
        var prov_status_dict={};
        ....
&lt;/script&gt;
</code></pre>

<p>Later on in a javascript method I'm using the variable normally.</p>

<pre><code>temp=prov_status_dict[current_as_id];
</code></pre>

<p>I'm having issues with it on opera and ie, while on firefox it works. This is what opera's error console reports:</p>

<pre><code>JavaScript - http://localhost:8000/input/
Event thread: click
Error:
name: ReferenceError
message: Statement on line 62: Undefined variable: prov_status_dict
stacktrace: n/a; see  opera:config#UserPrefs|Exceptions Have Stacktrace
</code></pre>

<p>I've noticed that the problem is with global variables in general. I tryed moving some into hidden fields, but the same error pops up on the next use of a global var.</p>

<p>Help?</p>
