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 (LeadingZeros31467 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31467(secs) { if (secs < 0) { document.getElementById("cntdwns31467").innerHTML = FinishMessages31467; return; } DisplayStrs31467 = DisplayFormats31467.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31467 = DisplayStrs31467.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31467 = DisplayStrs31467.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31467 = DisplayStrs31467.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31467").innerHTML = DisplayStrs31467; if (CountActives31467) //alert(SetTimeOutPeriods31467); setTimeout("CountBacks31467(" + (secs+CountSteppers31467) + ")", SetTimeOutPeriods31467); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31467)=="undefined") BackColors31467 = ""; if (typeof(ForeColors31467)=="undefined") ForeColors31467= "white"; if (typeof(TargetDates31467)=="undefined") TargetDates31467 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31467)=="undefined") DisplayFormats31467 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31467)=="undefined") CountActives31467 = true; if (typeof(FinishMessages31467)=="undefined") FinishMessages31467 = ""; if (typeof(CountSteppers31467)!="number") CountSteppers31467 = -1; if (typeof(LeadingZeros31467)=="undefined") LeadingZeros31467 = true; CountSteppers31467 = Math.ceil(CountSteppers31467); if (CountSteppers31467 == 0) CountActives31467 = false; var SetTimeOutPeriods31467 = (Math.abs(CountSteppers31467)-1)*1000 + 990; puti(BackColors31467, ForeColors31467); var dthens31467 = new Date(TargetDates31467); var dnows31467 = new Date("02/22/2025 10:24:41 PM"); if(CountSteppers31467>0) ddiffs31467 = new Date(dnows31467-dthens31467); else ddiffs31467 = new Date(dthens31467-dnows31467); gsecss31467 = Math.floor(ddiffs31467.valueOf()/1000); CountBacks31467(gsecss31467);