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 (LeadingZeros34226 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34226(secs) { if (secs < 0) { document.getElementById("cntdwns34226").innerHTML = FinishMessages34226; return; } DisplayStrs34226 = DisplayFormats34226.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34226 = DisplayStrs34226.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34226 = DisplayStrs34226.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34226 = DisplayStrs34226.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34226").innerHTML = DisplayStrs34226; if (CountActives34226) //alert(SetTimeOutPeriods34226); setTimeout("CountBacks34226(" + (secs+CountSteppers34226) + ")", SetTimeOutPeriods34226); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34226)=="undefined") BackColors34226 = ""; if (typeof(ForeColors34226)=="undefined") ForeColors34226= "white"; if (typeof(TargetDates34226)=="undefined") TargetDates34226 = "10/06/2026 4:00:00 PM"; if (typeof(DisplayFormats34226)=="undefined") DisplayFormats34226 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34226)=="undefined") CountActives34226 = true; if (typeof(FinishMessages34226)=="undefined") FinishMessages34226 = ""; if (typeof(CountSteppers34226)!="number") CountSteppers34226 = -1; if (typeof(LeadingZeros34226)=="undefined") LeadingZeros34226 = true; CountSteppers34226 = Math.ceil(CountSteppers34226); if (CountSteppers34226 == 0) CountActives34226 = false; var SetTimeOutPeriods34226 = (Math.abs(CountSteppers34226)-1)*1000 + 990; puti(BackColors34226, ForeColors34226); var dthens34226 = new Date(TargetDates34226); var dnows34226 = new Date("10/04/2026 6:25:27 PM"); if(CountSteppers34226>0) ddiffs34226 = new Date(dnows34226-dthens34226); else ddiffs34226 = new Date(dthens34226-dnows34226); gsecss34226 = Math.floor(ddiffs34226.valueOf()/1000); CountBacks34226(gsecss34226);