function calcage(secs, num1, num2, addDay, seconds) { if (addDay == 1){ s = ((Math.floor(secs/num1))).toString(); } else{ s = ((Math.floor(secs/num1))%num2).toString(); } if (LeadingZeros34277 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34277(secs) { if (secs < 0) { document.getElementById("cntdwns34277").innerHTML = FinishMessages34277; return; } DisplayStrs34277 = DisplayFormats34277.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34277 = DisplayStrs34277.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34277 = DisplayStrs34277.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34277 = DisplayStrs34277.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34277").innerHTML = DisplayStrs34277; if (CountActives34277) //alert(SetTimeOutPeriods34277); setTimeout("CountBacks34277(" + (secs+CountSteppers34277) + ")", SetTimeOutPeriods34277); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34277)=="undefined") BackColors34277 = ""; if (typeof(ForeColors34277)=="undefined") ForeColors34277= "white"; if (typeof(TargetDates34277)=="undefined") TargetDates34277 = "10/06/2026 10:00:00 PM"; if (typeof(DisplayFormats34277)=="undefined") DisplayFormats34277 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34277)=="undefined") CountActives34277 = true; if (typeof(FinishMessages34277)=="undefined") FinishMessages34277 = ""; if (typeof(CountSteppers34277)!="number") CountSteppers34277 = -1; if (typeof(LeadingZeros34277)=="undefined") LeadingZeros34277 = true; CountSteppers34277 = Math.ceil(CountSteppers34277); if (CountSteppers34277 == 0) CountActives34277 = false; var SetTimeOutPeriods34277 = (Math.abs(CountSteppers34277)-1)*1000 + 990; puti(BackColors34277, ForeColors34277); var dthens34277 = new Date(TargetDates34277); var dnows34277 = new Date("10/03/2026 9:53:02 AM"); if(CountSteppers34277>0) ddiffs34277 = new Date(dnows34277-dthens34277); else ddiffs34277 = new Date(dthens34277-dnows34277); gsecss34277 = Math.floor(ddiffs34277.valueOf()/1000); CountBacks34277(gsecss34277);