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 (LeadingZeros33378 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33378(secs) { if (secs < 0) { document.getElementById("cntdwns33378").innerHTML = FinishMessages33378; return; } DisplayStrs33378 = DisplayFormats33378.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33378 = DisplayStrs33378.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33378 = DisplayStrs33378.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33378 = DisplayStrs33378.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33378").innerHTML = DisplayStrs33378; if (CountActives33378) //alert(SetTimeOutPeriods33378); setTimeout("CountBacks33378(" + (secs+CountSteppers33378) + ")", SetTimeOutPeriods33378); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33378)=="undefined") BackColors33378 = ""; if (typeof(ForeColors33378)=="undefined") ForeColors33378= "white"; if (typeof(TargetDates33378)=="undefined") TargetDates33378 = "03/25/2026 10:00:00 PM"; if (typeof(DisplayFormats33378)=="undefined") DisplayFormats33378 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33378)=="undefined") CountActives33378 = true; if (typeof(FinishMessages33378)=="undefined") FinishMessages33378 = ""; if (typeof(CountSteppers33378)!="number") CountSteppers33378 = -1; if (typeof(LeadingZeros33378)=="undefined") LeadingZeros33378 = true; CountSteppers33378 = Math.ceil(CountSteppers33378); if (CountSteppers33378 == 0) CountActives33378 = false; var SetTimeOutPeriods33378 = (Math.abs(CountSteppers33378)-1)*1000 + 990; puti(BackColors33378, ForeColors33378); var dthens33378 = new Date(TargetDates33378); var dnows33378 = new Date("03/24/2026 1:23:30 AM"); if(CountSteppers33378>0) ddiffs33378 = new Date(dnows33378-dthens33378); else ddiffs33378 = new Date(dthens33378-dnows33378); gsecss33378 = Math.floor(ddiffs33378.valueOf()/1000); CountBacks33378(gsecss33378);