Javascript error
<p>I'm getting a JS error on displaying a page: Nothing concrete is specified but the line where it seems to be thrown. When looking into the source code of the page, I see the error is thrown inside the following script, but I can't understand why! It's only about loading images!</p>

<pre><code>    &lt;SCRIPT language=JavaScript&gt;
&lt;!--
function newImage(arg) {
    var rslt = new Image();
    rslt.src = arg;
    return rslt;
}
function changeImages(a, b) {
    a.src = b;
}
newImage("\/_layouts\/images\/icon1.gif");
newImage("\/_layouts\/images\/icon2.gif");
// --&gt;
&lt;/SCRIPT&gt;
</code></pre>

<p>The error I am getting is when clicking on a drop down context menu on a page, for this line:</p>

<pre><code>newImage("\/_layouts\/images\/icon1.gif");
</code></pre>

<p>Error: The object doesn't accept this property or method
Code: 0</p>

<p>I really don't see what could happen... Any tips on what may be happening here?<br>
Thanks a lot!</p>
