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 (LeadingZeros33872 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33872(secs) { if (secs < 0) { document.getElementById("cntdwns33872").innerHTML = FinishMessages33872; return; } DisplayStrs33872 = DisplayFormats33872.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33872 = DisplayStrs33872.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33872 = DisplayStrs33872.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33872 = DisplayStrs33872.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33872").innerHTML = DisplayStrs33872; if (CountActives33872) //alert(SetTimeOutPeriods33872); setTimeout("CountBacks33872(" + (secs+CountSteppers33872) + ")", SetTimeOutPeriods33872); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33872)=="undefined") BackColors33872 = ""; if (typeof(ForeColors33872)=="undefined") ForeColors33872= "white"; if (typeof(TargetDates33872)=="undefined") TargetDates33872 = "07/15/2026 10:00:00 PM"; if (typeof(DisplayFormats33872)=="undefined") DisplayFormats33872 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33872)=="undefined") CountActives33872 = true; if (typeof(FinishMessages33872)=="undefined") FinishMessages33872 = ""; if (typeof(CountSteppers33872)!="number") CountSteppers33872 = -1; if (typeof(LeadingZeros33872)=="undefined") LeadingZeros33872 = true; CountSteppers33872 = Math.ceil(CountSteppers33872); if (CountSteppers33872 == 0) CountActives33872 = false; var SetTimeOutPeriods33872 = (Math.abs(CountSteppers33872)-1)*1000 + 990; puti(BackColors33872, ForeColors33872); var dthens33872 = new Date(TargetDates33872); var dnows33872 = new Date("07/13/2026 5:18:52 PM"); if(CountSteppers33872>0) ddiffs33872 = new Date(dnows33872-dthens33872); else ddiffs33872 = new Date(dthens33872-dnows33872); gsecss33872 = Math.floor(ddiffs33872.valueOf()/1000); CountBacks33872(gsecss33872);