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 (LeadingZeros31268 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31268(secs) { if (secs < 0) { document.getElementById("cntdwns31268").innerHTML = FinishMessages31268; return; } DisplayStrs31268 = DisplayFormats31268.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31268 = DisplayStrs31268.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31268 = DisplayStrs31268.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31268 = DisplayStrs31268.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31268").innerHTML = DisplayStrs31268; if (CountActives31268) //alert(SetTimeOutPeriods31268); setTimeout("CountBacks31268(" + (secs+CountSteppers31268) + ")", SetTimeOutPeriods31268); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31268)=="undefined") BackColors31268 = ""; if (typeof(ForeColors31268)=="undefined") ForeColors31268= "white"; if (typeof(TargetDates31268)=="undefined") TargetDates31268 = "02/25/2025 9:00:00 PM"; if (typeof(DisplayFormats31268)=="undefined") DisplayFormats31268 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31268)=="undefined") CountActives31268 = true; if (typeof(FinishMessages31268)=="undefined") FinishMessages31268 = ""; if (typeof(CountSteppers31268)!="number") CountSteppers31268 = -1; if (typeof(LeadingZeros31268)=="undefined") LeadingZeros31268 = true; CountSteppers31268 = Math.ceil(CountSteppers31268); if (CountSteppers31268 == 0) CountActives31268 = false; var SetTimeOutPeriods31268 = (Math.abs(CountSteppers31268)-1)*1000 + 990; puti(BackColors31268, ForeColors31268); var dthens31268 = new Date(TargetDates31268); var dnows31268 = new Date("02/22/2025 10:13:20 PM"); if(CountSteppers31268>0) ddiffs31268 = new Date(dnows31268-dthens31268); else ddiffs31268 = new Date(dthens31268-dnows31268); gsecss31268 = Math.floor(ddiffs31268.valueOf()/1000); CountBacks31268(gsecss31268);