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 (LeadingZeros31736 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31736(secs) { if (secs < 0) { document.getElementById("cntdwns31736").innerHTML = FinishMessages31736; return; } DisplayStrs31736 = DisplayFormats31736.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31736 = DisplayStrs31736.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31736 = DisplayStrs31736.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31736 = DisplayStrs31736.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31736").innerHTML = DisplayStrs31736; if (CountActives31736) //alert(SetTimeOutPeriods31736); setTimeout("CountBacks31736(" + (secs+CountSteppers31736) + ")", SetTimeOutPeriods31736); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31736)=="undefined") BackColors31736 = ""; if (typeof(ForeColors31736)=="undefined") ForeColors31736= "white"; if (typeof(TargetDates31736)=="undefined") TargetDates31736 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31736)=="undefined") DisplayFormats31736 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31736)=="undefined") CountActives31736 = true; if (typeof(FinishMessages31736)=="undefined") FinishMessages31736 = ""; if (typeof(CountSteppers31736)!="number") CountSteppers31736 = -1; if (typeof(LeadingZeros31736)=="undefined") LeadingZeros31736 = true; CountSteppers31736 = Math.ceil(CountSteppers31736); if (CountSteppers31736 == 0) CountActives31736 = false; var SetTimeOutPeriods31736 = (Math.abs(CountSteppers31736)-1)*1000 + 990; puti(BackColors31736, ForeColors31736); var dthens31736 = new Date(TargetDates31736); var dnows31736 = new Date("02/22/2025 9:41:50 PM"); if(CountSteppers31736>0) ddiffs31736 = new Date(dnows31736-dthens31736); else ddiffs31736 = new Date(dthens31736-dnows31736); gsecss31736 = Math.floor(ddiffs31736.valueOf()/1000); CountBacks31736(gsecss31736);