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 (LeadingZeros33854 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33854(secs) { if (secs < 0) { document.getElementById("cntdwns33854").innerHTML = FinishMessages33854; return; } DisplayStrs33854 = DisplayFormats33854.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33854 = DisplayStrs33854.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33854 = DisplayStrs33854.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33854 = DisplayStrs33854.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33854").innerHTML = DisplayStrs33854; if (CountActives33854) //alert(SetTimeOutPeriods33854); setTimeout("CountBacks33854(" + (secs+CountSteppers33854) + ")", SetTimeOutPeriods33854); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33854)=="undefined") BackColors33854 = ""; if (typeof(ForeColors33854)=="undefined") ForeColors33854= "white"; if (typeof(TargetDates33854)=="undefined") TargetDates33854 = "05/21/2026 10:00:00 PM"; if (typeof(DisplayFormats33854)=="undefined") DisplayFormats33854 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33854)=="undefined") CountActives33854 = true; if (typeof(FinishMessages33854)=="undefined") FinishMessages33854 = ""; if (typeof(CountSteppers33854)!="number") CountSteppers33854 = -1; if (typeof(LeadingZeros33854)=="undefined") LeadingZeros33854 = true; CountSteppers33854 = Math.ceil(CountSteppers33854); if (CountSteppers33854 == 0) CountActives33854 = false; var SetTimeOutPeriods33854 = (Math.abs(CountSteppers33854)-1)*1000 + 990; puti(BackColors33854, ForeColors33854); var dthens33854 = new Date(TargetDates33854); var dnows33854 = new Date("05/18/2026 7:28:33 PM"); if(CountSteppers33854>0) ddiffs33854 = new Date(dnows33854-dthens33854); else ddiffs33854 = new Date(dthens33854-dnows33854); gsecss33854 = Math.floor(ddiffs33854.valueOf()/1000); CountBacks33854(gsecss33854);