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 (LeadingZeros31856 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31856(secs) { if (secs < 0) { document.getElementById("cntdwns31856").innerHTML = FinishMessages31856; return; } DisplayStrs31856 = DisplayFormats31856.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31856 = DisplayStrs31856.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31856 = DisplayStrs31856.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31856 = DisplayStrs31856.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31856").innerHTML = DisplayStrs31856; if (CountActives31856) //alert(SetTimeOutPeriods31856); setTimeout("CountBacks31856(" + (secs+CountSteppers31856) + ")", SetTimeOutPeriods31856); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31856)=="undefined") BackColors31856 = ""; if (typeof(ForeColors31856)=="undefined") ForeColors31856= "white"; if (typeof(TargetDates31856)=="undefined") TargetDates31856 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31856)=="undefined") DisplayFormats31856 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31856)=="undefined") CountActives31856 = true; if (typeof(FinishMessages31856)=="undefined") FinishMessages31856 = ""; if (typeof(CountSteppers31856)!="number") CountSteppers31856 = -1; if (typeof(LeadingZeros31856)=="undefined") LeadingZeros31856 = true; CountSteppers31856 = Math.ceil(CountSteppers31856); if (CountSteppers31856 == 0) CountActives31856 = false; var SetTimeOutPeriods31856 = (Math.abs(CountSteppers31856)-1)*1000 + 990; puti(BackColors31856, ForeColors31856); var dthens31856 = new Date(TargetDates31856); var dnows31856 = new Date("02/22/2025 9:38:29 PM"); if(CountSteppers31856>0) ddiffs31856 = new Date(dnows31856-dthens31856); else ddiffs31856 = new Date(dthens31856-dnows31856); gsecss31856 = Math.floor(ddiffs31856.valueOf()/1000); CountBacks31856(gsecss31856);