function s() 
{ 
var ymd,year,mon,day;
var todaysDate = new Date();
montharray = new Array("1", "2", "3", "4",
   "5", "6", "7", "8", "9", "10", "11", "12");

mon = montharray[todaysDate.getMonth()];
day = todaysDate.getDate();

if(todaysDate.getYear()<1000){ 
year = todaysDate.getYear() + 1900;
} else {
year = todaysDate.getYear(); 
} 

ymd=mon+"/"+day+"/"+year;
b.innerHTML=ymd
//setTimeout("s()",1000); 

var x,h,m,s,n; 
var x = new Date(); 
h=x.getHours(); 
m=x.getMinutes(); 
s=x.getSeconds();
if (s < 10){
s="0"+s; 
}
if (m < 10){
m="0"+m; 
}
if (h < 10){
h="0"+h; 
}

n=h+":"+m+":"+s;
c.innerHTML=n 
setTimeout("s()",1000); 
} // JavaScript Document