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 (LeadingZeros33852 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks33852(secs) { if (secs < 0) { document.getElementById("cntdwns33852").innerHTML = FinishMessages33852; return; } DisplayStrs33852 = DisplayFormats33852.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs33852 = DisplayStrs33852.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs33852 = DisplayStrs33852.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs33852 = DisplayStrs33852.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns33852").innerHTML = DisplayStrs33852; if (CountActives33852) //alert(SetTimeOutPeriods33852); setTimeout("CountBacks33852(" + (secs+CountSteppers33852) + ")", SetTimeOutPeriods33852); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors33852)=="undefined") BackColors33852 = ""; if (typeof(ForeColors33852)=="undefined") ForeColors33852= "white"; if (typeof(TargetDates33852)=="undefined") TargetDates33852 = "04/24/2026 10:00:00 PM"; if (typeof(DisplayFormats33852)=="undefined") DisplayFormats33852 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives33852)=="undefined") CountActives33852 = true; if (typeof(FinishMessages33852)=="undefined") FinishMessages33852 = ""; if (typeof(CountSteppers33852)!="number") CountSteppers33852 = -1; if (typeof(LeadingZeros33852)=="undefined") LeadingZeros33852 = true; CountSteppers33852 = Math.ceil(CountSteppers33852); if (CountSteppers33852 == 0) CountActives33852 = false; var SetTimeOutPeriods33852 = (Math.abs(CountSteppers33852)-1)*1000 + 990; puti(BackColors33852, ForeColors33852); var dthens33852 = new Date(TargetDates33852); var dnows33852 = new Date("04/22/2026 7:16:25 PM"); if(CountSteppers33852>0) ddiffs33852 = new Date(dnows33852-dthens33852); else ddiffs33852 = new Date(dthens33852-dnows33852); gsecss33852 = Math.floor(ddiffs33852.valueOf()/1000); CountBacks33852(gsecss33852);