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 (LeadingZeros34375 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34375(secs) { if (secs < 0) { document.getElementById("cntdwns34375").innerHTML = FinishMessages34375; return; } DisplayStrs34375 = DisplayFormats34375.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34375 = DisplayStrs34375.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34375 = DisplayStrs34375.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34375 = DisplayStrs34375.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34375").innerHTML = DisplayStrs34375; if (CountActives34375) //alert(SetTimeOutPeriods34375); setTimeout("CountBacks34375(" + (secs+CountSteppers34375) + ")", SetTimeOutPeriods34375); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34375)=="undefined") BackColors34375 = ""; if (typeof(ForeColors34375)=="undefined") ForeColors34375= "white"; if (typeof(TargetDates34375)=="undefined") TargetDates34375 = "10/28/2026 11:00:00 PM"; if (typeof(DisplayFormats34375)=="undefined") DisplayFormats34375 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34375)=="undefined") CountActives34375 = true; if (typeof(FinishMessages34375)=="undefined") FinishMessages34375 = ""; if (typeof(CountSteppers34375)!="number") CountSteppers34375 = -1; if (typeof(LeadingZeros34375)=="undefined") LeadingZeros34375 = true; CountSteppers34375 = Math.ceil(CountSteppers34375); if (CountSteppers34375 == 0) CountActives34375 = false; var SetTimeOutPeriods34375 = (Math.abs(CountSteppers34375)-1)*1000 + 990; puti(BackColors34375, ForeColors34375); var dthens34375 = new Date(TargetDates34375); var dnows34375 = new Date("10/27/2026 5:36:15 PM"); if(CountSteppers34375>0) ddiffs34375 = new Date(dnows34375-dthens34375); else ddiffs34375 = new Date(dthens34375-dnows34375); gsecss34375 = Math.floor(ddiffs34375.valueOf()/1000); CountBacks34375(gsecss34375);