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 (LeadingZeros33987 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33987(secs) { if (secs < 0) { document.getElementById("cntdwns33987").innerHTML = FinishMessages33987; return; } DisplayStrs33987 = DisplayFormats33987.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33987 = DisplayStrs33987.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33987 = DisplayStrs33987.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33987 = DisplayStrs33987.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33987").innerHTML = DisplayStrs33987; if (CountActives33987) //alert(SetTimeOutPeriods33987); setTimeout("CountBacks33987(" + (secs+CountSteppers33987) + ")", SetTimeOutPeriods33987); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33987)=="undefined") BackColors33987 = ""; if (typeof(ForeColors33987)=="undefined") ForeColors33987= "white"; if (typeof(TargetDates33987)=="undefined") TargetDates33987 = "07/15/2026 10:00:00 PM"; if (typeof(DisplayFormats33987)=="undefined") DisplayFormats33987 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33987)=="undefined") CountActives33987 = true; if (typeof(FinishMessages33987)=="undefined") FinishMessages33987 = ""; if (typeof(CountSteppers33987)!="number") CountSteppers33987 = -1; if (typeof(LeadingZeros33987)=="undefined") LeadingZeros33987 = true; CountSteppers33987 = Math.ceil(CountSteppers33987); if (CountSteppers33987 == 0) CountActives33987 = false; var SetTimeOutPeriods33987 = (Math.abs(CountSteppers33987)-1)*1000 + 990; puti(BackColors33987, ForeColors33987); var dthens33987 = new Date(TargetDates33987); var dnows33987 = new Date("07/13/2026 1:59:41 PM"); if(CountSteppers33987>0) ddiffs33987 = new Date(dnows33987-dthens33987); else ddiffs33987 = new Date(dthens33987-dnows33987); gsecss33987 = Math.floor(ddiffs33987.valueOf()/1000); CountBacks33987(gsecss33987);