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 (LeadingZeros33237 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33237(secs) { if (secs < 0) { document.getElementById("cntdwns33237").innerHTML = FinishMessages33237; return; } DisplayStrs33237 = DisplayFormats33237.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33237 = DisplayStrs33237.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33237 = DisplayStrs33237.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33237 = DisplayStrs33237.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33237").innerHTML = DisplayStrs33237; if (CountActives33237) //alert(SetTimeOutPeriods33237); setTimeout("CountBacks33237(" + (secs+CountSteppers33237) + ")", SetTimeOutPeriods33237); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33237)=="undefined") BackColors33237 = ""; if (typeof(ForeColors33237)=="undefined") ForeColors33237= "white"; if (typeof(TargetDates33237)=="undefined") TargetDates33237 = "01/13/2026 10:00:00 PM"; if (typeof(DisplayFormats33237)=="undefined") DisplayFormats33237 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33237)=="undefined") CountActives33237 = true; if (typeof(FinishMessages33237)=="undefined") FinishMessages33237 = ""; if (typeof(CountSteppers33237)!="number") CountSteppers33237 = -1; if (typeof(LeadingZeros33237)=="undefined") LeadingZeros33237 = true; CountSteppers33237 = Math.ceil(CountSteppers33237); if (CountSteppers33237 == 0) CountActives33237 = false; var SetTimeOutPeriods33237 = (Math.abs(CountSteppers33237)-1)*1000 + 990; puti(BackColors33237, ForeColors33237); var dthens33237 = new Date(TargetDates33237); var dnows33237 = new Date("01/10/2026 10:19:45 PM"); if(CountSteppers33237>0) ddiffs33237 = new Date(dnows33237-dthens33237); else ddiffs33237 = new Date(dthens33237-dnows33237); gsecss33237 = Math.floor(ddiffs33237.valueOf()/1000); CountBacks33237(gsecss33237);