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 (LeadingZeros34208 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34208(secs) { if (secs < 0) { document.getElementById("cntdwns34208").innerHTML = FinishMessages34208; return; } DisplayStrs34208 = DisplayFormats34208.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34208 = DisplayStrs34208.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34208 = DisplayStrs34208.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34208 = DisplayStrs34208.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34208").innerHTML = DisplayStrs34208; if (CountActives34208) //alert(SetTimeOutPeriods34208); setTimeout("CountBacks34208(" + (secs+CountSteppers34208) + ")", SetTimeOutPeriods34208); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34208)=="undefined") BackColors34208 = ""; if (typeof(ForeColors34208)=="undefined") ForeColors34208= "white"; if (typeof(TargetDates34208)=="undefined") TargetDates34208 = "09/13/2026 10:00:00 AM"; if (typeof(DisplayFormats34208)=="undefined") DisplayFormats34208 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34208)=="undefined") CountActives34208 = true; if (typeof(FinishMessages34208)=="undefined") FinishMessages34208 = ""; if (typeof(CountSteppers34208)!="number") CountSteppers34208 = -1; if (typeof(LeadingZeros34208)=="undefined") LeadingZeros34208 = true; CountSteppers34208 = Math.ceil(CountSteppers34208); if (CountSteppers34208 == 0) CountActives34208 = false; var SetTimeOutPeriods34208 = (Math.abs(CountSteppers34208)-1)*1000 + 990; puti(BackColors34208, ForeColors34208); var dthens34208 = new Date(TargetDates34208); var dnows34208 = new Date("09/11/2026 6:01:23 PM"); if(CountSteppers34208>0) ddiffs34208 = new Date(dnows34208-dthens34208); else ddiffs34208 = new Date(dthens34208-dnows34208); gsecss34208 = Math.floor(ddiffs34208.valueOf()/1000); CountBacks34208(gsecss34208);