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 (LeadingZeros33867 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33867(secs) { if (secs < 0) { document.getElementById("cntdwns33867").innerHTML = FinishMessages33867; return; } DisplayStrs33867 = DisplayFormats33867.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33867 = DisplayStrs33867.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33867 = DisplayStrs33867.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33867 = DisplayStrs33867.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33867").innerHTML = DisplayStrs33867; if (CountActives33867) //alert(SetTimeOutPeriods33867); setTimeout("CountBacks33867(" + (secs+CountSteppers33867) + ")", SetTimeOutPeriods33867); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33867)=="undefined") BackColors33867 = ""; if (typeof(ForeColors33867)=="undefined") ForeColors33867= "white"; if (typeof(TargetDates33867)=="undefined") TargetDates33867 = "04/11/2026 10:00:00 PM"; if (typeof(DisplayFormats33867)=="undefined") DisplayFormats33867 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33867)=="undefined") CountActives33867 = true; if (typeof(FinishMessages33867)=="undefined") FinishMessages33867 = ""; if (typeof(CountSteppers33867)!="number") CountSteppers33867 = -1; if (typeof(LeadingZeros33867)=="undefined") LeadingZeros33867 = true; CountSteppers33867 = Math.ceil(CountSteppers33867); if (CountSteppers33867 == 0) CountActives33867 = false; var SetTimeOutPeriods33867 = (Math.abs(CountSteppers33867)-1)*1000 + 990; puti(BackColors33867, ForeColors33867); var dthens33867 = new Date(TargetDates33867); var dnows33867 = new Date("04/09/2026 10:30:09 PM"); if(CountSteppers33867>0) ddiffs33867 = new Date(dnows33867-dthens33867); else ddiffs33867 = new Date(dthens33867-dnows33867); gsecss33867 = Math.floor(ddiffs33867.valueOf()/1000); CountBacks33867(gsecss33867);