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 (LeadingZeros34282 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34282(secs) { if (secs < 0) { document.getElementById("cntdwns34282").innerHTML = FinishMessages34282; return; } DisplayStrs34282 = DisplayFormats34282.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34282 = DisplayStrs34282.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34282 = DisplayStrs34282.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34282 = DisplayStrs34282.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34282").innerHTML = DisplayStrs34282; if (CountActives34282) //alert(SetTimeOutPeriods34282); setTimeout("CountBacks34282(" + (secs+CountSteppers34282) + ")", SetTimeOutPeriods34282); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34282)=="undefined") BackColors34282 = ""; if (typeof(ForeColors34282)=="undefined") ForeColors34282= "white"; if (typeof(TargetDates34282)=="undefined") TargetDates34282 = "09/26/2026 8:00:00 AM"; if (typeof(DisplayFormats34282)=="undefined") DisplayFormats34282 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34282)=="undefined") CountActives34282 = true; if (typeof(FinishMessages34282)=="undefined") FinishMessages34282 = ""; if (typeof(CountSteppers34282)!="number") CountSteppers34282 = -1; if (typeof(LeadingZeros34282)=="undefined") LeadingZeros34282 = true; CountSteppers34282 = Math.ceil(CountSteppers34282); if (CountSteppers34282 == 0) CountActives34282 = false; var SetTimeOutPeriods34282 = (Math.abs(CountSteppers34282)-1)*1000 + 990; puti(BackColors34282, ForeColors34282); var dthens34282 = new Date(TargetDates34282); var dnows34282 = new Date("09/25/2026 9:51:12 PM"); if(CountSteppers34282>0) ddiffs34282 = new Date(dnows34282-dthens34282); else ddiffs34282 = new Date(dthens34282-dnows34282); gsecss34282 = Math.floor(ddiffs34282.valueOf()/1000); CountBacks34282(gsecss34282);