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 (LeadingZeros33843 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33843(secs) { if (secs < 0) { document.getElementById("cntdwns33843").innerHTML = FinishMessages33843; return; } DisplayStrs33843 = DisplayFormats33843.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33843 = DisplayStrs33843.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33843 = DisplayStrs33843.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33843 = DisplayStrs33843.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33843").innerHTML = DisplayStrs33843; if (CountActives33843) //alert(SetTimeOutPeriods33843); setTimeout("CountBacks33843(" + (secs+CountSteppers33843) + ")", SetTimeOutPeriods33843); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33843)=="undefined") BackColors33843 = ""; if (typeof(ForeColors33843)=="undefined") ForeColors33843= "white"; if (typeof(TargetDates33843)=="undefined") TargetDates33843 = "05/10/2026 10:00:00 PM"; if (typeof(DisplayFormats33843)=="undefined") DisplayFormats33843 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33843)=="undefined") CountActives33843 = true; if (typeof(FinishMessages33843)=="undefined") FinishMessages33843 = ""; if (typeof(CountSteppers33843)!="number") CountSteppers33843 = -1; if (typeof(LeadingZeros33843)=="undefined") LeadingZeros33843 = true; CountSteppers33843 = Math.ceil(CountSteppers33843); if (CountSteppers33843 == 0) CountActives33843 = false; var SetTimeOutPeriods33843 = (Math.abs(CountSteppers33843)-1)*1000 + 990; puti(BackColors33843, ForeColors33843); var dthens33843 = new Date(TargetDates33843); var dnows33843 = new Date("05/08/2026 7:12:23 PM"); if(CountSteppers33843>0) ddiffs33843 = new Date(dnows33843-dthens33843); else ddiffs33843 = new Date(dthens33843-dnows33843); gsecss33843 = Math.floor(ddiffs33843.valueOf()/1000); CountBacks33843(gsecss33843);