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 (LeadingZeros34257 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34257(secs) { if (secs < 0) { document.getElementById("cntdwns34257").innerHTML = FinishMessages34257; return; } DisplayStrs34257 = DisplayFormats34257.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34257 = DisplayStrs34257.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34257 = DisplayStrs34257.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34257 = DisplayStrs34257.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34257").innerHTML = DisplayStrs34257; if (CountActives34257) //alert(SetTimeOutPeriods34257); setTimeout("CountBacks34257(" + (secs+CountSteppers34257) + ")", SetTimeOutPeriods34257); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34257)=="undefined") BackColors34257 = ""; if (typeof(ForeColors34257)=="undefined") ForeColors34257= "white"; if (typeof(TargetDates34257)=="undefined") TargetDates34257 = "11/18/2026 9:00:00 AM"; if (typeof(DisplayFormats34257)=="undefined") DisplayFormats34257 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34257)=="undefined") CountActives34257 = true; if (typeof(FinishMessages34257)=="undefined") FinishMessages34257 = ""; if (typeof(CountSteppers34257)!="number") CountSteppers34257 = -1; if (typeof(LeadingZeros34257)=="undefined") LeadingZeros34257 = true; CountSteppers34257 = Math.ceil(CountSteppers34257); if (CountSteppers34257 == 0) CountActives34257 = false; var SetTimeOutPeriods34257 = (Math.abs(CountSteppers34257)-1)*1000 + 990; puti(BackColors34257, ForeColors34257); var dthens34257 = new Date(TargetDates34257); var dnows34257 = new Date("09/20/2026 7:01:16 AM"); if(CountSteppers34257>0) ddiffs34257 = new Date(dnows34257-dthens34257); else ddiffs34257 = new Date(dthens34257-dnows34257); gsecss34257 = Math.floor(ddiffs34257.valueOf()/1000); CountBacks34257(gsecss34257);