Javascript to load another js file
<p>Hello I am trying to load another js file form a js file..</p>

<p>from my js file (run.js) I have the following:</p>

<pre><code>document.write("&lt;script type='text/javascript' src='my_script.js'&gt;&lt;/script&gt;");
alert(nImages);
</code></pre>

<p>in side my_script.js I have the following:</p>

<pre><code>&lt;SCRIPT language="JavaScript" type="text/javascript"&gt;
&lt;!--
nImages = 6;
//--&gt;
&lt;/SCRIPT&gt;
</code></pre>

<p>but I can't seem to get it to alert the nImages from my_script.js file.</p>

<p>Anyone able to help ?</p>
