//(C)HCHP(TM) 2007 - Server Time for HCHP.ru document.write(""); var timerID = null function showtime(h,m,s) { var mh = 0; var mm = 0; var ms = 0; s = s+1; rsec = s + m*60 + h*60*60; mh = Math.floor(rsec / (60*60)); mh = mh-(Math.floor(mh/24)*24); mm = Math.floor((rsec / (60))); mm = mm-(Math.floor(mm/60)*60); ms = Math.floor(rsec); ms = ms-(Math.floor(ms/60)*60); if (mh.toString().length == 1) mh = '0' + mh; if (ms.toString().length == 1) ms = '0' + ms; if (mm.toString().length == 1) mm = '0' + mm; document.all.clock.innerHTML = (mh +':'+mm+':'+ms); timerId = setTimeout("showtime("+h+","+m+","+s+");",1000) } showtime(9,47,8-1);