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 (LeadingZeros33839 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33839(secs) { if (secs < 0) { document.getElementById("cntdwns33839").innerHTML = FinishMessages33839; return; } DisplayStrs33839 = DisplayFormats33839.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33839 = DisplayStrs33839.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33839 = DisplayStrs33839.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33839 = DisplayStrs33839.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33839").innerHTML = DisplayStrs33839; if (CountActives33839) //alert(SetTimeOutPeriods33839); setTimeout("CountBacks33839(" + (secs+CountSteppers33839) + ")", SetTimeOutPeriods33839); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33839)=="undefined") BackColors33839 = ""; if (typeof(ForeColors33839)=="undefined") ForeColors33839= "white"; if (typeof(TargetDates33839)=="undefined") TargetDates33839 = "04/06/2026 10:00:00 PM"; if (typeof(DisplayFormats33839)=="undefined") DisplayFormats33839 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33839)=="undefined") CountActives33839 = true; if (typeof(FinishMessages33839)=="undefined") FinishMessages33839 = ""; if (typeof(CountSteppers33839)!="number") CountSteppers33839 = -1; if (typeof(LeadingZeros33839)=="undefined") LeadingZeros33839 = true; CountSteppers33839 = Math.ceil(CountSteppers33839); if (CountSteppers33839 == 0) CountActives33839 = false; var SetTimeOutPeriods33839 = (Math.abs(CountSteppers33839)-1)*1000 + 990; puti(BackColors33839, ForeColors33839); var dthens33839 = new Date(TargetDates33839); var dnows33839 = new Date("04/03/2026 3:58:17 PM"); if(CountSteppers33839>0) ddiffs33839 = new Date(dnows33839-dthens33839); else ddiffs33839 = new Date(dthens33839-dnows33839); gsecss33839 = Math.floor(ddiffs33839.valueOf()/1000); CountBacks33839(gsecss33839);