How I can execute a javascript function by placing it inside head tag with runat="server" attribute in page having Master pagewith head tag
<p>How I can execute a javascript function by placing it inside head tag with runat="server" attribute. 
My page is using Master Page that already contains head tag  with runat="server" attribute. 
As obvious I can use just head in my page but not with runat="server" attribute. 
Is it possible to execute the javascript functon with same effect without using head tag or
to put my javascript function in master page and using it from there itself.</p>

<p>Any help.</p>

<p>Hi @Frater, actually I have a page having design                       </p>

<pre><code>&lt;asp:Content ID="Content1" ContentPlaceHolderID="Head1" Runat="Server"&gt;
&lt;/asp:Content&gt; 
&lt;asp:Content ID="Content2" ContentPlaceHolderID="cphBody" Runat="Server"&gt; 
&lt;head&gt;
&lt;script language="javascript" type="text/javascript"&gt;
function func1() { document.getElementById("IMG_USER").src = "abc.jpg" } 
&lt;/script&gt; 

&lt;/head&gt;    
 &lt;body&gt;
&lt;input id="File1" tabindex="23" type="file" onchange="func1();" 
runat="server" style="width: 100px; height:23px" /&gt;

&lt;img id="Img1" name="IMG_USER" runat="server" src="xyz.jpg" 
 style="height:130px;width:150px" alt="" /&gt;

&lt;/body&gt; 
</code></pre>

<hr>

<p>on uploading a image using input element I want the image to be changed to abc.jpg</p>
