javascript displaying current time
<p>I have this javascript code to displayng current date and time:</p>

<pre><code>&lt;script type="text/javascript"&gt;
tday  =new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
tmonth=new Array("January","February","March","April","May","June","July","August","September","October","November","December");

function GetClock(){
d = new Date();
nday   = d.getDay();
nmonth = d.getMonth();
ndate  = d.getDate();
nyear = d.getYear();
nhour  = d.getHours();
nmin   = d.getMinutes();
nsec   = d.getSeconds();

if(nyear&lt;1000) nyear=nyear+1900;
if(nhour ==  0) {ap = " AM";nhour = 12;} 
else if(nhour &lt;= 11) {ap = " AM";} 
else if(nhour == 12) {ap = " PM";} 
else if(nhour &gt;= 13) {ap = " PM";nhour -= 12;}

if(nmin &lt;= 9) {nmin = "0" +nmin;}
if(nsec &lt;= 9) {nsec = "0" +nsec;}


document.getElementById('clockbox').innerHTML=""+tday[nday]+", "+tmonth[nmonth]+" "+ndate+", "+nyear+" "+nhour+":"+nmin+":"+nsec+ap+"";
setTimeout("GetClock()", 1000);
}
window.onload=GetClock;
&lt;/script&gt;
&lt;div id="clockbox"&gt;&lt;/div&gt;  
</code></pre>

<p>So I want to replace "PM" and "AM" with some images. Can anybody help me to deal with this?
Thanks in advance!  </p>
