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 (LeadingZeros34280 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34280(secs) { if (secs < 0) { document.getElementById("cntdwns34280").innerHTML = FinishMessages34280; return; } DisplayStrs34280 = DisplayFormats34280.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34280 = DisplayStrs34280.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34280 = DisplayStrs34280.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34280 = DisplayStrs34280.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34280").innerHTML = DisplayStrs34280; if (CountActives34280) //alert(SetTimeOutPeriods34280); setTimeout("CountBacks34280(" + (secs+CountSteppers34280) + ")", SetTimeOutPeriods34280); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34280)=="undefined") BackColors34280 = ""; if (typeof(ForeColors34280)=="undefined") ForeColors34280= "white"; if (typeof(TargetDates34280)=="undefined") TargetDates34280 = "10/29/2026 2:00:00 PM"; if (typeof(DisplayFormats34280)=="undefined") DisplayFormats34280 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34280)=="undefined") CountActives34280 = true; if (typeof(FinishMessages34280)=="undefined") FinishMessages34280 = ""; if (typeof(CountSteppers34280)!="number") CountSteppers34280 = -1; if (typeof(LeadingZeros34280)=="undefined") LeadingZeros34280 = true; CountSteppers34280 = Math.ceil(CountSteppers34280); if (CountSteppers34280 == 0) CountActives34280 = false; var SetTimeOutPeriods34280 = (Math.abs(CountSteppers34280)-1)*1000 + 990; puti(BackColors34280, ForeColors34280); var dthens34280 = new Date(TargetDates34280); var dnows34280 = new Date("10/27/2026 11:09:44 AM"); if(CountSteppers34280>0) ddiffs34280 = new Date(dnows34280-dthens34280); else ddiffs34280 = new Date(dthens34280-dnows34280); gsecss34280 = Math.floor(ddiffs34280.valueOf()/1000); CountBacks34280(gsecss34280);