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 (LeadingZeros33922 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33922(secs) { if (secs < 0) { document.getElementById("cntdwns33922").innerHTML = FinishMessages33922; return; } DisplayStrs33922 = DisplayFormats33922.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33922 = DisplayStrs33922.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33922 = DisplayStrs33922.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33922 = DisplayStrs33922.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33922").innerHTML = DisplayStrs33922; if (CountActives33922) //alert(SetTimeOutPeriods33922); setTimeout("CountBacks33922(" + (secs+CountSteppers33922) + ")", SetTimeOutPeriods33922); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33922)=="undefined") BackColors33922 = ""; if (typeof(ForeColors33922)=="undefined") ForeColors33922= "white"; if (typeof(TargetDates33922)=="undefined") TargetDates33922 = "05/01/2026 10:00:00 PM"; if (typeof(DisplayFormats33922)=="undefined") DisplayFormats33922 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33922)=="undefined") CountActives33922 = true; if (typeof(FinishMessages33922)=="undefined") FinishMessages33922 = ""; if (typeof(CountSteppers33922)!="number") CountSteppers33922 = -1; if (typeof(LeadingZeros33922)=="undefined") LeadingZeros33922 = true; CountSteppers33922 = Math.ceil(CountSteppers33922); if (CountSteppers33922 == 0) CountActives33922 = false; var SetTimeOutPeriods33922 = (Math.abs(CountSteppers33922)-1)*1000 + 990; puti(BackColors33922, ForeColors33922); var dthens33922 = new Date(TargetDates33922); var dnows33922 = new Date("04/30/2026 8:14:11 PM"); if(CountSteppers33922>0) ddiffs33922 = new Date(dnows33922-dthens33922); else ddiffs33922 = new Date(dthens33922-dnows33922); gsecss33922 = Math.floor(ddiffs33922.valueOf()/1000); CountBacks33922(gsecss33922);