onClick javascript not working
<p>I can't get a javascript inline function call to work. The inline function is this:</p>

<pre><code>&lt;span&gt; &lt;input type="button" value="Previous Week" onClick="subtractOneWeekReloadPage()"&gt; 
</code></pre>

<p>I have the function that should be called written into the header as follows:</p>

<pre><code>&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"&gt;
&lt;title&gt;Time Tracking Page&lt;/title&gt;

&lt;script type="text/javascript"&gt;
function subtractOneWeekReloadPage() {
&lt;%=currentWeek.subtractOneWeek()%&gt;;
window.location.reload();}

&lt;/script&gt;

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

<p>When I click on the button on the web page nothing happens though. Neither my jsp call nor the page refresh call is running. Can anyone tell me what I'm doing wrong please?</p>

<p>The relevant output of the page is:</p>

<pre><code>&lt;span&gt; 
&lt;input type="button" value="Previous Week" onClick="subtractOneWeekReloadPage()"&gt; 
Hours for the week of 
&lt;%=currentWeek.firstDayOfThisWeek()%&gt; 
until 
&lt;%=currentWeek.lastDayOfThisWeek()%&gt; 
&lt;input type="button" value="Next Week" onClick="addOneWeekReloadPage()"&gt;
&lt;/span&gt;
</code></pre>

<p>The jsp calls to display the first and last days of the week are working fine. But when I click to subtract one week and reload the page with the newly set week, nothing is happening.</p>
