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 (LeadingZeros34182 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34182(secs) { if (secs < 0) { document.getElementById("cntdwns34182").innerHTML = FinishMessages34182; return; } DisplayStrs34182 = DisplayFormats34182.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34182 = DisplayStrs34182.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34182 = DisplayStrs34182.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34182 = DisplayStrs34182.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34182").innerHTML = DisplayStrs34182; if (CountActives34182) //alert(SetTimeOutPeriods34182); setTimeout("CountBacks34182(" + (secs+CountSteppers34182) + ")", SetTimeOutPeriods34182); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34182)=="undefined") BackColors34182 = ""; if (typeof(ForeColors34182)=="undefined") ForeColors34182= "white"; if (typeof(TargetDates34182)=="undefined") TargetDates34182 = "10/03/2026 11:00:00 PM"; if (typeof(DisplayFormats34182)=="undefined") DisplayFormats34182 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34182)=="undefined") CountActives34182 = true; if (typeof(FinishMessages34182)=="undefined") FinishMessages34182 = ""; if (typeof(CountSteppers34182)!="number") CountSteppers34182 = -1; if (typeof(LeadingZeros34182)=="undefined") LeadingZeros34182 = true; CountSteppers34182 = Math.ceil(CountSteppers34182); if (CountSteppers34182 == 0) CountActives34182 = false; var SetTimeOutPeriods34182 = (Math.abs(CountSteppers34182)-1)*1000 + 990; puti(BackColors34182, ForeColors34182); var dthens34182 = new Date(TargetDates34182); var dnows34182 = new Date("10/02/2026 9:26:44 AM"); if(CountSteppers34182>0) ddiffs34182 = new Date(dnows34182-dthens34182); else ddiffs34182 = new Date(dthens34182-dnows34182); gsecss34182 = Math.floor(ddiffs34182.valueOf()/1000); CountBacks34182(gsecss34182);