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 (LeadingZeros31878 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31878(secs) { if (secs < 0) { document.getElementById("cntdwns31878").innerHTML = FinishMessages31878; return; } DisplayStrs31878 = DisplayFormats31878.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31878 = DisplayStrs31878.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31878 = DisplayStrs31878.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31878 = DisplayStrs31878.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31878").innerHTML = DisplayStrs31878; if (CountActives31878) //alert(SetTimeOutPeriods31878); setTimeout("CountBacks31878(" + (secs+CountSteppers31878) + ")", SetTimeOutPeriods31878); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31878)=="undefined") BackColors31878 = ""; if (typeof(ForeColors31878)=="undefined") ForeColors31878= "white"; if (typeof(TargetDates31878)=="undefined") TargetDates31878 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31878)=="undefined") DisplayFormats31878 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31878)=="undefined") CountActives31878 = true; if (typeof(FinishMessages31878)=="undefined") FinishMessages31878 = ""; if (typeof(CountSteppers31878)!="number") CountSteppers31878 = -1; if (typeof(LeadingZeros31878)=="undefined") LeadingZeros31878 = true; CountSteppers31878 = Math.ceil(CountSteppers31878); if (CountSteppers31878 == 0) CountActives31878 = false; var SetTimeOutPeriods31878 = (Math.abs(CountSteppers31878)-1)*1000 + 990; puti(BackColors31878, ForeColors31878); var dthens31878 = new Date(TargetDates31878); var dnows31878 = new Date("02/22/2025 9:38:42 PM"); if(CountSteppers31878>0) ddiffs31878 = new Date(dnows31878-dthens31878); else ddiffs31878 = new Date(dthens31878-dnows31878); gsecss31878 = Math.floor(ddiffs31878.valueOf()/1000); CountBacks31878(gsecss31878);