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 (LeadingZeros31410 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31410(secs) { if (secs < 0) { document.getElementById("cntdwns31410").innerHTML = FinishMessages31410; return; } DisplayStrs31410 = DisplayFormats31410.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31410 = DisplayStrs31410.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31410 = DisplayStrs31410.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31410 = DisplayStrs31410.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31410").innerHTML = DisplayStrs31410; if (CountActives31410) //alert(SetTimeOutPeriods31410); setTimeout("CountBacks31410(" + (secs+CountSteppers31410) + ")", SetTimeOutPeriods31410); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31410)=="undefined") BackColors31410 = ""; if (typeof(ForeColors31410)=="undefined") ForeColors31410= "white"; if (typeof(TargetDates31410)=="undefined") TargetDates31410 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31410)=="undefined") DisplayFormats31410 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31410)=="undefined") CountActives31410 = true; if (typeof(FinishMessages31410)=="undefined") FinishMessages31410 = ""; if (typeof(CountSteppers31410)!="number") CountSteppers31410 = -1; if (typeof(LeadingZeros31410)=="undefined") LeadingZeros31410 = true; CountSteppers31410 = Math.ceil(CountSteppers31410); if (CountSteppers31410 == 0) CountActives31410 = false; var SetTimeOutPeriods31410 = (Math.abs(CountSteppers31410)-1)*1000 + 990; puti(BackColors31410, ForeColors31410); var dthens31410 = new Date(TargetDates31410); var dnows31410 = new Date("02/22/2025 9:28:53 PM"); if(CountSteppers31410>0) ddiffs31410 = new Date(dnows31410-dthens31410); else ddiffs31410 = new Date(dthens31410-dnows31410); gsecss31410 = Math.floor(ddiffs31410.valueOf()/1000); CountBacks31410(gsecss31410);