add pages to masterpage gives me javascript error
<p>i have a page which uses some javascript code to run,it was working fine until i added it to master page, on adding it to master page it gives me an error from javascript</p>

<pre><code>var fu1 = document.getElementById("FileUpload1");
 var ex1 = extension(fu1.value) ; object expected in fu1.value
</code></pre>

<p>i need to know where to add the javascript in master page</p>
