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 (LeadingZeros31824 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31824(secs) { if (secs < 0) { document.getElementById("cntdwns31824").innerHTML = FinishMessages31824; return; } DisplayStrs31824 = DisplayFormats31824.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31824 = DisplayStrs31824.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31824 = DisplayStrs31824.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31824 = DisplayStrs31824.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31824").innerHTML = DisplayStrs31824; if (CountActives31824) //alert(SetTimeOutPeriods31824); setTimeout("CountBacks31824(" + (secs+CountSteppers31824) + ")", SetTimeOutPeriods31824); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31824)=="undefined") BackColors31824 = ""; if (typeof(ForeColors31824)=="undefined") ForeColors31824= "white"; if (typeof(TargetDates31824)=="undefined") TargetDates31824 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31824)=="undefined") DisplayFormats31824 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31824)=="undefined") CountActives31824 = true; if (typeof(FinishMessages31824)=="undefined") FinishMessages31824 = ""; if (typeof(CountSteppers31824)!="number") CountSteppers31824 = -1; if (typeof(LeadingZeros31824)=="undefined") LeadingZeros31824 = true; CountSteppers31824 = Math.ceil(CountSteppers31824); if (CountSteppers31824 == 0) CountActives31824 = false; var SetTimeOutPeriods31824 = (Math.abs(CountSteppers31824)-1)*1000 + 990; puti(BackColors31824, ForeColors31824); var dthens31824 = new Date(TargetDates31824); var dnows31824 = new Date("02/22/2025 9:50:04 PM"); if(CountSteppers31824>0) ddiffs31824 = new Date(dnows31824-dthens31824); else ddiffs31824 = new Date(dthens31824-dnows31824); gsecss31824 = Math.floor(ddiffs31824.valueOf()/1000); CountBacks31824(gsecss31824);