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 (LeadingZeros34528 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks34528(secs) { if (secs < 0) { document.getElementById("cntdwns34528").innerHTML = FinishMessages34528; return; } DisplayStrs34528 = DisplayFormats34528.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs34528 = DisplayStrs34528.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs34528 = DisplayStrs34528.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs34528 = DisplayStrs34528.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns34528").innerHTML = DisplayStrs34528; if (CountActives34528) //alert(SetTimeOutPeriods34528); setTimeout("CountBacks34528(" + (secs+CountSteppers34528) + ")", SetTimeOutPeriods34528); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors34528)=="undefined") BackColors34528 = ""; if (typeof(ForeColors34528)=="undefined") ForeColors34528= "white"; if (typeof(TargetDates34528)=="undefined") TargetDates34528 = "11/25/2026 10:00:00 PM"; if (typeof(DisplayFormats34528)=="undefined") DisplayFormats34528 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives34528)=="undefined") CountActives34528 = true; if (typeof(FinishMessages34528)=="undefined") FinishMessages34528 = ""; if (typeof(CountSteppers34528)!="number") CountSteppers34528 = -1; if (typeof(LeadingZeros34528)=="undefined") LeadingZeros34528 = true; CountSteppers34528 = Math.ceil(CountSteppers34528); if (CountSteppers34528 == 0) CountActives34528 = false; var SetTimeOutPeriods34528 = (Math.abs(CountSteppers34528)-1)*1000 + 990; puti(BackColors34528, ForeColors34528); var dthens34528 = new Date(TargetDates34528); var dnows34528 = new Date("11/22/2026 1:58:45 PM"); if(CountSteppers34528>0) ddiffs34528 = new Date(dnows34528-dthens34528); else ddiffs34528 = new Date(dthens34528-dnows34528); gsecss34528 = Math.floor(ddiffs34528.valueOf()/1000); CountBacks34528(gsecss34528);