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 (LeadingZeros33887 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33887(secs) { if (secs < 0) { document.getElementById("cntdwns33887").innerHTML = FinishMessages33887; return; } DisplayStrs33887 = DisplayFormats33887.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33887 = DisplayStrs33887.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33887 = DisplayStrs33887.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33887 = DisplayStrs33887.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33887").innerHTML = DisplayStrs33887; if (CountActives33887) //alert(SetTimeOutPeriods33887); setTimeout("CountBacks33887(" + (secs+CountSteppers33887) + ")", SetTimeOutPeriods33887); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33887)=="undefined") BackColors33887 = ""; if (typeof(ForeColors33887)=="undefined") ForeColors33887= "white"; if (typeof(TargetDates33887)=="undefined") TargetDates33887 = "04/18/2026 10:00:00 PM"; if (typeof(DisplayFormats33887)=="undefined") DisplayFormats33887 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33887)=="undefined") CountActives33887 = true; if (typeof(FinishMessages33887)=="undefined") FinishMessages33887 = ""; if (typeof(CountSteppers33887)!="number") CountSteppers33887 = -1; if (typeof(LeadingZeros33887)=="undefined") LeadingZeros33887 = true; CountSteppers33887 = Math.ceil(CountSteppers33887); if (CountSteppers33887 == 0) CountActives33887 = false; var SetTimeOutPeriods33887 = (Math.abs(CountSteppers33887)-1)*1000 + 990; puti(BackColors33887, ForeColors33887); var dthens33887 = new Date(TargetDates33887); var dnows33887 = new Date("04/15/2026 6:19:56 AM"); if(CountSteppers33887>0) ddiffs33887 = new Date(dnows33887-dthens33887); else ddiffs33887 = new Date(dthens33887-dnows33887); gsecss33887 = Math.floor(ddiffs33887.valueOf()/1000); CountBacks33887(gsecss33887);