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 (LeadingZeros34259 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34259(secs) { if (secs < 0) { document.getElementById("cntdwns34259").innerHTML = FinishMessages34259; return; } DisplayStrs34259 = DisplayFormats34259.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34259 = DisplayStrs34259.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34259 = DisplayStrs34259.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34259 = DisplayStrs34259.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34259").innerHTML = DisplayStrs34259; if (CountActives34259) //alert(SetTimeOutPeriods34259); setTimeout("CountBacks34259(" + (secs+CountSteppers34259) + ")", SetTimeOutPeriods34259); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34259)=="undefined") BackColors34259 = ""; if (typeof(ForeColors34259)=="undefined") ForeColors34259= "white"; if (typeof(TargetDates34259)=="undefined") TargetDates34259 = "11/25/2026 12:00:00 PM"; if (typeof(DisplayFormats34259)=="undefined") DisplayFormats34259 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34259)=="undefined") CountActives34259 = true; if (typeof(FinishMessages34259)=="undefined") FinishMessages34259 = ""; if (typeof(CountSteppers34259)!="number") CountSteppers34259 = -1; if (typeof(LeadingZeros34259)=="undefined") LeadingZeros34259 = true; CountSteppers34259 = Math.ceil(CountSteppers34259); if (CountSteppers34259 == 0) CountActives34259 = false; var SetTimeOutPeriods34259 = (Math.abs(CountSteppers34259)-1)*1000 + 990; puti(BackColors34259, ForeColors34259); var dthens34259 = new Date(TargetDates34259); var dnows34259 = new Date("11/23/2026 3:58:58 PM"); if(CountSteppers34259>0) ddiffs34259 = new Date(dnows34259-dthens34259); else ddiffs34259 = new Date(dthens34259-dnows34259); gsecss34259 = Math.floor(ddiffs34259.valueOf()/1000); CountBacks34259(gsecss34259);