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 (LeadingZeros31443 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31443(secs) { if (secs < 0) { document.getElementById("cntdwns31443").innerHTML = FinishMessages31443; return; } DisplayStrs31443 = DisplayFormats31443.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31443 = DisplayStrs31443.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31443 = DisplayStrs31443.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31443 = DisplayStrs31443.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31443").innerHTML = DisplayStrs31443; if (CountActives31443) //alert(SetTimeOutPeriods31443); setTimeout("CountBacks31443(" + (secs+CountSteppers31443) + ")", SetTimeOutPeriods31443); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31443)=="undefined") BackColors31443 = ""; if (typeof(ForeColors31443)=="undefined") ForeColors31443= "white"; if (typeof(TargetDates31443)=="undefined") TargetDates31443 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31443)=="undefined") DisplayFormats31443 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31443)=="undefined") CountActives31443 = true; if (typeof(FinishMessages31443)=="undefined") FinishMessages31443 = ""; if (typeof(CountSteppers31443)!="number") CountSteppers31443 = -1; if (typeof(LeadingZeros31443)=="undefined") LeadingZeros31443 = true; CountSteppers31443 = Math.ceil(CountSteppers31443); if (CountSteppers31443 == 0) CountActives31443 = false; var SetTimeOutPeriods31443 = (Math.abs(CountSteppers31443)-1)*1000 + 990; puti(BackColors31443, ForeColors31443); var dthens31443 = new Date(TargetDates31443); var dnows31443 = new Date("02/22/2025 9:47:52 PM"); if(CountSteppers31443>0) ddiffs31443 = new Date(dnows31443-dthens31443); else ddiffs31443 = new Date(dthens31443-dnows31443); gsecss31443 = Math.floor(ddiffs31443.valueOf()/1000); CountBacks31443(gsecss31443);