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 (LeadingZeros33228 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33228(secs) { if (secs < 0) { document.getElementById("cntdwns33228").innerHTML = FinishMessages33228; return; } DisplayStrs33228 = DisplayFormats33228.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33228 = DisplayStrs33228.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33228 = DisplayStrs33228.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33228 = DisplayStrs33228.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33228").innerHTML = DisplayStrs33228; if (CountActives33228) //alert(SetTimeOutPeriods33228); setTimeout("CountBacks33228(" + (secs+CountSteppers33228) + ")", SetTimeOutPeriods33228); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33228)=="undefined") BackColors33228 = ""; if (typeof(ForeColors33228)=="undefined") ForeColors33228= "white"; if (typeof(TargetDates33228)=="undefined") TargetDates33228 = "01/18/2026 10:00:00 PM"; if (typeof(DisplayFormats33228)=="undefined") DisplayFormats33228 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33228)=="undefined") CountActives33228 = true; if (typeof(FinishMessages33228)=="undefined") FinishMessages33228 = ""; if (typeof(CountSteppers33228)!="number") CountSteppers33228 = -1; if (typeof(LeadingZeros33228)=="undefined") LeadingZeros33228 = true; CountSteppers33228 = Math.ceil(CountSteppers33228); if (CountSteppers33228 == 0) CountActives33228 = false; var SetTimeOutPeriods33228 = (Math.abs(CountSteppers33228)-1)*1000 + 990; puti(BackColors33228, ForeColors33228); var dthens33228 = new Date(TargetDates33228); var dnows33228 = new Date("01/15/2026 5:30:09 PM"); if(CountSteppers33228>0) ddiffs33228 = new Date(dnows33228-dthens33228); else ddiffs33228 = new Date(dthens33228-dnows33228); gsecss33228 = Math.floor(ddiffs33228.valueOf()/1000); CountBacks33228(gsecss33228);