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 (LeadingZeros33877 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33877(secs) { if (secs < 0) { document.getElementById("cntdwns33877").innerHTML = FinishMessages33877; return; } DisplayStrs33877 = DisplayFormats33877.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33877 = DisplayStrs33877.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33877 = DisplayStrs33877.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33877 = DisplayStrs33877.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33877").innerHTML = DisplayStrs33877; if (CountActives33877) //alert(SetTimeOutPeriods33877); setTimeout("CountBacks33877(" + (secs+CountSteppers33877) + ")", SetTimeOutPeriods33877); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33877)=="undefined") BackColors33877 = ""; if (typeof(ForeColors33877)=="undefined") ForeColors33877= "white"; if (typeof(TargetDates33877)=="undefined") TargetDates33877 = "04/21/2026 10:00:00 PM"; if (typeof(DisplayFormats33877)=="undefined") DisplayFormats33877 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33877)=="undefined") CountActives33877 = true; if (typeof(FinishMessages33877)=="undefined") FinishMessages33877 = ""; if (typeof(CountSteppers33877)!="number") CountSteppers33877 = -1; if (typeof(LeadingZeros33877)=="undefined") LeadingZeros33877 = true; CountSteppers33877 = Math.ceil(CountSteppers33877); if (CountSteppers33877 == 0) CountActives33877 = false; var SetTimeOutPeriods33877 = (Math.abs(CountSteppers33877)-1)*1000 + 990; puti(BackColors33877, ForeColors33877); var dthens33877 = new Date(TargetDates33877); var dnows33877 = new Date("04/18/2026 7:57:04 AM"); if(CountSteppers33877>0) ddiffs33877 = new Date(dnows33877-dthens33877); else ddiffs33877 = new Date(dthens33877-dnows33877); gsecss33877 = Math.floor(ddiffs33877.valueOf()/1000); CountBacks33877(gsecss33877);