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 (LeadingZeros33239 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33239(secs) { if (secs < 0) { document.getElementById("cntdwns33239").innerHTML = FinishMessages33239; return; } DisplayStrs33239 = DisplayFormats33239.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33239 = DisplayStrs33239.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33239 = DisplayStrs33239.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33239 = DisplayStrs33239.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33239").innerHTML = DisplayStrs33239; if (CountActives33239) //alert(SetTimeOutPeriods33239); setTimeout("CountBacks33239(" + (secs+CountSteppers33239) + ")", SetTimeOutPeriods33239); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33239)=="undefined") BackColors33239 = ""; if (typeof(ForeColors33239)=="undefined") ForeColors33239= "white"; if (typeof(TargetDates33239)=="undefined") TargetDates33239 = "01/13/2026 10:00:00 PM"; if (typeof(DisplayFormats33239)=="undefined") DisplayFormats33239 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33239)=="undefined") CountActives33239 = true; if (typeof(FinishMessages33239)=="undefined") FinishMessages33239 = ""; if (typeof(CountSteppers33239)!="number") CountSteppers33239 = -1; if (typeof(LeadingZeros33239)=="undefined") LeadingZeros33239 = true; CountSteppers33239 = Math.ceil(CountSteppers33239); if (CountSteppers33239 == 0) CountActives33239 = false; var SetTimeOutPeriods33239 = (Math.abs(CountSteppers33239)-1)*1000 + 990; puti(BackColors33239, ForeColors33239); var dthens33239 = new Date(TargetDates33239); var dnows33239 = new Date("01/10/2026 10:19:45 PM"); if(CountSteppers33239>0) ddiffs33239 = new Date(dnows33239-dthens33239); else ddiffs33239 = new Date(dthens33239-dnows33239); gsecss33239 = Math.floor(ddiffs33239.valueOf()/1000); CountBacks33239(gsecss33239);