      
function dotime()
{ today = new Date();
hr= today.getHours();
mn= today.getMinutes()+100+"";
h=(hr%23-1)+(hr>12)+((hr==0)*12)+100+"";
s=((hr>11)*2);
alltime = h.substring(1,3)+"c"+mn.substring(1,3)+"ampm".substring(s,s+1);
for(i=0;i<alltime.length;i++)
document.images["d"+i].src='clock/dg'+alltime.charAt(i)+'.jpg';
};
                           
today = new Date();
hr= today.getHours();
mn= today.getMinutes()+100+"";
h=(hr%13)+(hr>12)+((hr==0)*12)+100+"";
s=((hr>11)*2);
alltime = "s"+h.substring(1,3)+"c"+mn.substring(1,3);
for(i=0;i<alltime.length;i++)
document.write("<img src=clock/'dg"+alltime.charAt(i)+".jpg' name='d"+i+"' border=0 width=16 height=31>");
document.write("<br>"); 

function clock()
{ dotime();
id=setTimeout('clock()',1000); };
clock();
                                  


