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 (LeadingZeros31688 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31688(secs) { if (secs < 0) { document.getElementById("cntdwns31688").innerHTML = FinishMessages31688; return; } DisplayStrs31688 = DisplayFormats31688.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31688 = DisplayStrs31688.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31688 = DisplayStrs31688.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31688 = DisplayStrs31688.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31688").innerHTML = DisplayStrs31688; if (CountActives31688) //alert(SetTimeOutPeriods31688); setTimeout("CountBacks31688(" + (secs+CountSteppers31688) + ")", SetTimeOutPeriods31688); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31688)=="undefined") BackColors31688 = ""; if (typeof(ForeColors31688)=="undefined") ForeColors31688= "white"; if (typeof(TargetDates31688)=="undefined") TargetDates31688 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31688)=="undefined") DisplayFormats31688 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31688)=="undefined") CountActives31688 = true; if (typeof(FinishMessages31688)=="undefined") FinishMessages31688 = ""; if (typeof(CountSteppers31688)!="number") CountSteppers31688 = -1; if (typeof(LeadingZeros31688)=="undefined") LeadingZeros31688 = true; CountSteppers31688 = Math.ceil(CountSteppers31688); if (CountSteppers31688 == 0) CountActives31688 = false; var SetTimeOutPeriods31688 = (Math.abs(CountSteppers31688)-1)*1000 + 990; puti(BackColors31688, ForeColors31688); var dthens31688 = new Date(TargetDates31688); var dnows31688 = new Date("02/22/2025 11:18:59 AM"); if(CountSteppers31688>0) ddiffs31688 = new Date(dnows31688-dthens31688); else ddiffs31688 = new Date(dthens31688-dnows31688); gsecss31688 = Math.floor(ddiffs31688.valueOf()/1000); CountBacks31688(gsecss31688);