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 (LeadingZeros31846 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31846(secs) { if (secs < 0) { document.getElementById("cntdwns31846").innerHTML = FinishMessages31846; return; } DisplayStrs31846 = DisplayFormats31846.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31846 = DisplayStrs31846.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31846 = DisplayStrs31846.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31846 = DisplayStrs31846.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31846").innerHTML = DisplayStrs31846; if (CountActives31846) //alert(SetTimeOutPeriods31846); setTimeout("CountBacks31846(" + (secs+CountSteppers31846) + ")", SetTimeOutPeriods31846); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31846)=="undefined") BackColors31846 = ""; if (typeof(ForeColors31846)=="undefined") ForeColors31846= "white"; if (typeof(TargetDates31846)=="undefined") TargetDates31846 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31846)=="undefined") DisplayFormats31846 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31846)=="undefined") CountActives31846 = true; if (typeof(FinishMessages31846)=="undefined") FinishMessages31846 = ""; if (typeof(CountSteppers31846)!="number") CountSteppers31846 = -1; if (typeof(LeadingZeros31846)=="undefined") LeadingZeros31846 = true; CountSteppers31846 = Math.ceil(CountSteppers31846); if (CountSteppers31846 == 0) CountActives31846 = false; var SetTimeOutPeriods31846 = (Math.abs(CountSteppers31846)-1)*1000 + 990; puti(BackColors31846, ForeColors31846); var dthens31846 = new Date(TargetDates31846); var dnows31846 = new Date("02/22/2025 9:58:04 PM"); if(CountSteppers31846>0) ddiffs31846 = new Date(dnows31846-dthens31846); else ddiffs31846 = new Date(dthens31846-dnows31846); gsecss31846 = Math.floor(ddiffs31846.valueOf()/1000); CountBacks31846(gsecss31846);