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 (LeadingZeros34279 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34279(secs) { if (secs < 0) { document.getElementById("cntdwns34279").innerHTML = FinishMessages34279; return; } DisplayStrs34279 = DisplayFormats34279.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34279 = DisplayStrs34279.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34279 = DisplayStrs34279.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34279 = DisplayStrs34279.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34279").innerHTML = DisplayStrs34279; if (CountActives34279) //alert(SetTimeOutPeriods34279); setTimeout("CountBacks34279(" + (secs+CountSteppers34279) + ")", SetTimeOutPeriods34279); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34279)=="undefined") BackColors34279 = ""; if (typeof(ForeColors34279)=="undefined") ForeColors34279= "white"; if (typeof(TargetDates34279)=="undefined") TargetDates34279 = "09/23/2026 10:00:00 PM"; if (typeof(DisplayFormats34279)=="undefined") DisplayFormats34279 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34279)=="undefined") CountActives34279 = true; if (typeof(FinishMessages34279)=="undefined") FinishMessages34279 = ""; if (typeof(CountSteppers34279)!="number") CountSteppers34279 = -1; if (typeof(LeadingZeros34279)=="undefined") LeadingZeros34279 = true; CountSteppers34279 = Math.ceil(CountSteppers34279); if (CountSteppers34279 == 0) CountActives34279 = false; var SetTimeOutPeriods34279 = (Math.abs(CountSteppers34279)-1)*1000 + 990; puti(BackColors34279, ForeColors34279); var dthens34279 = new Date(TargetDates34279); var dnows34279 = new Date("09/22/2026 5:26:12 PM"); if(CountSteppers34279>0) ddiffs34279 = new Date(dnows34279-dthens34279); else ddiffs34279 = new Date(dthens34279-dnows34279); gsecss34279 = Math.floor(ddiffs34279.valueOf()/1000); CountBacks34279(gsecss34279);