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 (LeadingZeros31472 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31472(secs) { if (secs < 0) { document.getElementById("cntdwns31472").innerHTML = FinishMessages31472; return; } DisplayStrs31472 = DisplayFormats31472.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31472 = DisplayStrs31472.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31472 = DisplayStrs31472.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31472 = DisplayStrs31472.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31472").innerHTML = DisplayStrs31472; if (CountActives31472) //alert(SetTimeOutPeriods31472); setTimeout("CountBacks31472(" + (secs+CountSteppers31472) + ")", SetTimeOutPeriods31472); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31472)=="undefined") BackColors31472 = ""; if (typeof(ForeColors31472)=="undefined") ForeColors31472= "white"; if (typeof(TargetDates31472)=="undefined") TargetDates31472 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31472)=="undefined") DisplayFormats31472 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31472)=="undefined") CountActives31472 = true; if (typeof(FinishMessages31472)=="undefined") FinishMessages31472 = ""; if (typeof(CountSteppers31472)!="number") CountSteppers31472 = -1; if (typeof(LeadingZeros31472)=="undefined") LeadingZeros31472 = true; CountSteppers31472 = Math.ceil(CountSteppers31472); if (CountSteppers31472 == 0) CountActives31472 = false; var SetTimeOutPeriods31472 = (Math.abs(CountSteppers31472)-1)*1000 + 990; puti(BackColors31472, ForeColors31472); var dthens31472 = new Date(TargetDates31472); var dnows31472 = new Date("02/22/2025 9:58:00 PM"); if(CountSteppers31472>0) ddiffs31472 = new Date(dnows31472-dthens31472); else ddiffs31472 = new Date(dthens31472-dnows31472); gsecss31472 = Math.floor(ddiffs31472.valueOf()/1000); CountBacks31472(gsecss31472);