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 (LeadingZeros33990 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33990(secs) { if (secs < 0) { document.getElementById("cntdwns33990").innerHTML = FinishMessages33990; return; } DisplayStrs33990 = DisplayFormats33990.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33990 = DisplayStrs33990.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33990 = DisplayStrs33990.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33990 = DisplayStrs33990.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33990").innerHTML = DisplayStrs33990; if (CountActives33990) //alert(SetTimeOutPeriods33990); setTimeout("CountBacks33990(" + (secs+CountSteppers33990) + ")", SetTimeOutPeriods33990); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33990)=="undefined") BackColors33990 = ""; if (typeof(ForeColors33990)=="undefined") ForeColors33990= "white"; if (typeof(TargetDates33990)=="undefined") TargetDates33990 = "06/21/2026 10:00:00 PM"; if (typeof(DisplayFormats33990)=="undefined") DisplayFormats33990 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33990)=="undefined") CountActives33990 = true; if (typeof(FinishMessages33990)=="undefined") FinishMessages33990 = ""; if (typeof(CountSteppers33990)!="number") CountSteppers33990 = -1; if (typeof(LeadingZeros33990)=="undefined") LeadingZeros33990 = true; CountSteppers33990 = Math.ceil(CountSteppers33990); if (CountSteppers33990 == 0) CountActives33990 = false; var SetTimeOutPeriods33990 = (Math.abs(CountSteppers33990)-1)*1000 + 990; puti(BackColors33990, ForeColors33990); var dthens33990 = new Date(TargetDates33990); var dnows33990 = new Date("06/18/2026 11:13:31 AM"); if(CountSteppers33990>0) ddiffs33990 = new Date(dnows33990-dthens33990); else ddiffs33990 = new Date(dthens33990-dnows33990); gsecss33990 = Math.floor(ddiffs33990.valueOf()/1000); CountBacks33990(gsecss33990);