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 (LeadingZeros33988 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33988(secs) { if (secs < 0) { document.getElementById("cntdwns33988").innerHTML = FinishMessages33988; return; } DisplayStrs33988 = DisplayFormats33988.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33988 = DisplayStrs33988.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33988 = DisplayStrs33988.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33988 = DisplayStrs33988.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33988").innerHTML = DisplayStrs33988; if (CountActives33988) //alert(SetTimeOutPeriods33988); setTimeout("CountBacks33988(" + (secs+CountSteppers33988) + ")", SetTimeOutPeriods33988); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33988)=="undefined") BackColors33988 = ""; if (typeof(ForeColors33988)=="undefined") ForeColors33988= "white"; if (typeof(TargetDates33988)=="undefined") TargetDates33988 = "07/16/2026 10:00:00 PM"; if (typeof(DisplayFormats33988)=="undefined") DisplayFormats33988 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33988)=="undefined") CountActives33988 = true; if (typeof(FinishMessages33988)=="undefined") FinishMessages33988 = ""; if (typeof(CountSteppers33988)!="number") CountSteppers33988 = -1; if (typeof(LeadingZeros33988)=="undefined") LeadingZeros33988 = true; CountSteppers33988 = Math.ceil(CountSteppers33988); if (CountSteppers33988 == 0) CountActives33988 = false; var SetTimeOutPeriods33988 = (Math.abs(CountSteppers33988)-1)*1000 + 990; puti(BackColors33988, ForeColors33988); var dthens33988 = new Date(TargetDates33988); var dnows33988 = new Date("07/13/2026 2:00:40 PM"); if(CountSteppers33988>0) ddiffs33988 = new Date(dnows33988-dthens33988); else ddiffs33988 = new Date(dthens33988-dnows33988); gsecss33988 = Math.floor(ddiffs33988.valueOf()/1000); CountBacks33988(gsecss33988);