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 (LeadingZeros31446 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31446(secs) { if (secs < 0) { document.getElementById("cntdwns31446").innerHTML = FinishMessages31446; return; } DisplayStrs31446 = DisplayFormats31446.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31446 = DisplayStrs31446.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31446 = DisplayStrs31446.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31446 = DisplayStrs31446.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31446").innerHTML = DisplayStrs31446; if (CountActives31446) //alert(SetTimeOutPeriods31446); setTimeout("CountBacks31446(" + (secs+CountSteppers31446) + ")", SetTimeOutPeriods31446); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31446)=="undefined") BackColors31446 = ""; if (typeof(ForeColors31446)=="undefined") ForeColors31446= "white"; if (typeof(TargetDates31446)=="undefined") TargetDates31446 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31446)=="undefined") DisplayFormats31446 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31446)=="undefined") CountActives31446 = true; if (typeof(FinishMessages31446)=="undefined") FinishMessages31446 = ""; if (typeof(CountSteppers31446)!="number") CountSteppers31446 = -1; if (typeof(LeadingZeros31446)=="undefined") LeadingZeros31446 = true; CountSteppers31446 = Math.ceil(CountSteppers31446); if (CountSteppers31446 == 0) CountActives31446 = false; var SetTimeOutPeriods31446 = (Math.abs(CountSteppers31446)-1)*1000 + 990; puti(BackColors31446, ForeColors31446); var dthens31446 = new Date(TargetDates31446); var dnows31446 = new Date("02/22/2025 12:49:38 PM"); if(CountSteppers31446>0) ddiffs31446 = new Date(dnows31446-dthens31446); else ddiffs31446 = new Date(dthens31446-dnows31446); gsecss31446 = Math.floor(ddiffs31446.valueOf()/1000); CountBacks31446(gsecss31446);