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 (LeadingZeros33512 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33512(secs) { if (secs < 0) { document.getElementById("cntdwns33512").innerHTML = FinishMessages33512; return; } DisplayStrs33512 = DisplayFormats33512.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33512 = DisplayStrs33512.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33512 = DisplayStrs33512.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33512 = DisplayStrs33512.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33512").innerHTML = DisplayStrs33512; if (CountActives33512) //alert(SetTimeOutPeriods33512); setTimeout("CountBacks33512(" + (secs+CountSteppers33512) + ")", SetTimeOutPeriods33512); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33512)=="undefined") BackColors33512 = ""; if (typeof(ForeColors33512)=="undefined") ForeColors33512= "white"; if (typeof(TargetDates33512)=="undefined") TargetDates33512 = "02/27/2026 10:00:00 PM"; if (typeof(DisplayFormats33512)=="undefined") DisplayFormats33512 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33512)=="undefined") CountActives33512 = true; if (typeof(FinishMessages33512)=="undefined") FinishMessages33512 = ""; if (typeof(CountSteppers33512)!="number") CountSteppers33512 = -1; if (typeof(LeadingZeros33512)=="undefined") LeadingZeros33512 = true; CountSteppers33512 = Math.ceil(CountSteppers33512); if (CountSteppers33512 == 0) CountActives33512 = false; var SetTimeOutPeriods33512 = (Math.abs(CountSteppers33512)-1)*1000 + 990; puti(BackColors33512, ForeColors33512); var dthens33512 = new Date(TargetDates33512); var dnows33512 = new Date("02/24/2026 4:00:11 PM"); if(CountSteppers33512>0) ddiffs33512 = new Date(dnows33512-dthens33512); else ddiffs33512 = new Date(dthens33512-dnows33512); gsecss33512 = Math.floor(ddiffs33512.valueOf()/1000); CountBacks33512(gsecss33512);