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 (LeadingZeros33871 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33871(secs) { if (secs < 0) { document.getElementById("cntdwns33871").innerHTML = FinishMessages33871; return; } DisplayStrs33871 = DisplayFormats33871.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33871 = DisplayStrs33871.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33871 = DisplayStrs33871.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33871 = DisplayStrs33871.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33871").innerHTML = DisplayStrs33871; if (CountActives33871) //alert(SetTimeOutPeriods33871); setTimeout("CountBacks33871(" + (secs+CountSteppers33871) + ")", SetTimeOutPeriods33871); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33871)=="undefined") BackColors33871 = ""; if (typeof(ForeColors33871)=="undefined") ForeColors33871= "white"; if (typeof(TargetDates33871)=="undefined") TargetDates33871 = "04/12/2026 10:00:00 PM"; if (typeof(DisplayFormats33871)=="undefined") DisplayFormats33871 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33871)=="undefined") CountActives33871 = true; if (typeof(FinishMessages33871)=="undefined") FinishMessages33871 = ""; if (typeof(CountSteppers33871)!="number") CountSteppers33871 = -1; if (typeof(LeadingZeros33871)=="undefined") LeadingZeros33871 = true; CountSteppers33871 = Math.ceil(CountSteppers33871); if (CountSteppers33871 == 0) CountActives33871 = false; var SetTimeOutPeriods33871 = (Math.abs(CountSteppers33871)-1)*1000 + 990; puti(BackColors33871, ForeColors33871); var dthens33871 = new Date(TargetDates33871); var dnows33871 = new Date("04/09/2026 10:31:30 PM"); if(CountSteppers33871>0) ddiffs33871 = new Date(dnows33871-dthens33871); else ddiffs33871 = new Date(dthens33871-dnows33871); gsecss33871 = Math.floor(ddiffs33871.valueOf()/1000); CountBacks33871(gsecss33871);