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 (LeadingZeros33840 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33840(secs) { if (secs < 0) { document.getElementById("cntdwns33840").innerHTML = FinishMessages33840; return; } DisplayStrs33840 = DisplayFormats33840.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33840 = DisplayStrs33840.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33840 = DisplayStrs33840.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33840 = DisplayStrs33840.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33840").innerHTML = DisplayStrs33840; if (CountActives33840) //alert(SetTimeOutPeriods33840); setTimeout("CountBacks33840(" + (secs+CountSteppers33840) + ")", SetTimeOutPeriods33840); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33840)=="undefined") BackColors33840 = ""; if (typeof(ForeColors33840)=="undefined") ForeColors33840= "white"; if (typeof(TargetDates33840)=="undefined") TargetDates33840 = "06/29/2026 10:00:00 PM"; if (typeof(DisplayFormats33840)=="undefined") DisplayFormats33840 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33840)=="undefined") CountActives33840 = true; if (typeof(FinishMessages33840)=="undefined") FinishMessages33840 = ""; if (typeof(CountSteppers33840)!="number") CountSteppers33840 = -1; if (typeof(LeadingZeros33840)=="undefined") LeadingZeros33840 = true; CountSteppers33840 = Math.ceil(CountSteppers33840); if (CountSteppers33840 == 0) CountActives33840 = false; var SetTimeOutPeriods33840 = (Math.abs(CountSteppers33840)-1)*1000 + 990; puti(BackColors33840, ForeColors33840); var dthens33840 = new Date(TargetDates33840); var dnows33840 = new Date("06/27/2026 9:13:06 PM"); if(CountSteppers33840>0) ddiffs33840 = new Date(dnows33840-dthens33840); else ddiffs33840 = new Date(dthens33840-dnows33840); gsecss33840 = Math.floor(ddiffs33840.valueOf()/1000); CountBacks33840(gsecss33840);