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 (LeadingZeros34258 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34258(secs) { if (secs < 0) { document.getElementById("cntdwns34258").innerHTML = FinishMessages34258; return; } DisplayStrs34258 = DisplayFormats34258.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34258 = DisplayStrs34258.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34258 = DisplayStrs34258.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34258 = DisplayStrs34258.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34258").innerHTML = DisplayStrs34258; if (CountActives34258) //alert(SetTimeOutPeriods34258); setTimeout("CountBacks34258(" + (secs+CountSteppers34258) + ")", SetTimeOutPeriods34258); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34258)=="undefined") BackColors34258 = ""; if (typeof(ForeColors34258)=="undefined") ForeColors34258= "white"; if (typeof(TargetDates34258)=="undefined") TargetDates34258 = "11/13/2026 12:00:00 PM"; if (typeof(DisplayFormats34258)=="undefined") DisplayFormats34258 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34258)=="undefined") CountActives34258 = true; if (typeof(FinishMessages34258)=="undefined") FinishMessages34258 = ""; if (typeof(CountSteppers34258)!="number") CountSteppers34258 = -1; if (typeof(LeadingZeros34258)=="undefined") LeadingZeros34258 = true; CountSteppers34258 = Math.ceil(CountSteppers34258); if (CountSteppers34258 == 0) CountActives34258 = false; var SetTimeOutPeriods34258 = (Math.abs(CountSteppers34258)-1)*1000 + 990; puti(BackColors34258, ForeColors34258); var dthens34258 = new Date(TargetDates34258); var dnows34258 = new Date("11/23/2026 8:02:45 PM"); if(CountSteppers34258>0) ddiffs34258 = new Date(dnows34258-dthens34258); else ddiffs34258 = new Date(dthens34258-dnows34258); gsecss34258 = Math.floor(ddiffs34258.valueOf()/1000); CountBacks34258(gsecss34258);