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 (LeadingZeros31529 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31529(secs) { if (secs < 0) { document.getElementById("cntdwns31529").innerHTML = FinishMessages31529; return; } DisplayStrs31529 = DisplayFormats31529.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31529 = DisplayStrs31529.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31529 = DisplayStrs31529.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31529 = DisplayStrs31529.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31529").innerHTML = DisplayStrs31529; if (CountActives31529) //alert(SetTimeOutPeriods31529); setTimeout("CountBacks31529(" + (secs+CountSteppers31529) + ")", SetTimeOutPeriods31529); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31529)=="undefined") BackColors31529 = ""; if (typeof(ForeColors31529)=="undefined") ForeColors31529= "white"; if (typeof(TargetDates31529)=="undefined") TargetDates31529 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31529)=="undefined") DisplayFormats31529 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31529)=="undefined") CountActives31529 = true; if (typeof(FinishMessages31529)=="undefined") FinishMessages31529 = ""; if (typeof(CountSteppers31529)!="number") CountSteppers31529 = -1; if (typeof(LeadingZeros31529)=="undefined") LeadingZeros31529 = true; CountSteppers31529 = Math.ceil(CountSteppers31529); if (CountSteppers31529 == 0) CountActives31529 = false; var SetTimeOutPeriods31529 = (Math.abs(CountSteppers31529)-1)*1000 + 990; puti(BackColors31529, ForeColors31529); var dthens31529 = new Date(TargetDates31529); var dnows31529 = new Date("02/22/2025 10:48:35 AM"); if(CountSteppers31529>0) ddiffs31529 = new Date(dnows31529-dthens31529); else ddiffs31529 = new Date(dthens31529-dnows31529); gsecss31529 = Math.floor(ddiffs31529.valueOf()/1000); CountBacks31529(gsecss31529);