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 (LeadingZeros33017 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33017(secs) { if (secs < 0) { document.getElementById("cntdwns33017").innerHTML = FinishMessages33017; return; } DisplayStrs33017 = DisplayFormats33017.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33017 = DisplayStrs33017.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33017 = DisplayStrs33017.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33017 = DisplayStrs33017.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33017").innerHTML = DisplayStrs33017; if (CountActives33017) //alert(SetTimeOutPeriods33017); setTimeout("CountBacks33017(" + (secs+CountSteppers33017) + ")", SetTimeOutPeriods33017); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33017)=="undefined") BackColors33017 = ""; if (typeof(ForeColors33017)=="undefined") ForeColors33017= "white"; if (typeof(TargetDates33017)=="undefined") TargetDates33017 = "11/26/2025 9:00:00 PM"; if (typeof(DisplayFormats33017)=="undefined") DisplayFormats33017 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33017)=="undefined") CountActives33017 = true; if (typeof(FinishMessages33017)=="undefined") FinishMessages33017 = ""; if (typeof(CountSteppers33017)!="number") CountSteppers33017 = -1; if (typeof(LeadingZeros33017)=="undefined") LeadingZeros33017 = true; CountSteppers33017 = Math.ceil(CountSteppers33017); if (CountSteppers33017 == 0) CountActives33017 = false; var SetTimeOutPeriods33017 = (Math.abs(CountSteppers33017)-1)*1000 + 990; puti(BackColors33017, ForeColors33017); var dthens33017 = new Date(TargetDates33017); var dnows33017 = new Date("11/23/2025 2:17:44 PM"); if(CountSteppers33017>0) ddiffs33017 = new Date(dnows33017-dthens33017); else ddiffs33017 = new Date(dthens33017-dnows33017); gsecss33017 = Math.floor(ddiffs33017.valueOf()/1000); CountBacks33017(gsecss33017);