Trying to add Javascript to PHP file
<p>I am trying to add javascript to a php file and everytime I add the javascript and save, it just displays the javascript and not the rest of the page content.</p>

<p>The code looks like this:</p>

<pre><code>&lt;section class="portlet grid_6 leading"&gt; 

                    &lt;header&gt;
                        &lt;h2&gt;Time &lt;script type="text/javascript"&gt;
&lt;!--var currentTime = new Date()
var hours = currentTime.getHours()
var minutes = currentTime.getMinutes()
if (minutes &lt; 10){
minutes = "0" + minutes
}
document.write(hours + ":" + minutes + " ")
if(hours &gt; 11){
document.write("PM")
} else {
document.write("AM")
}
//--&gt;
&lt;/script&gt;&lt;/h2&gt;
</code></pre>

<p>Any suggestions?</p>
