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 (LeadingZeros31881 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31881(secs) { if (secs < 0) { document.getElementById("cntdwns31881").innerHTML = FinishMessages31881; return; } DisplayStrs31881 = DisplayFormats31881.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31881 = DisplayStrs31881.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31881 = DisplayStrs31881.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31881 = DisplayStrs31881.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31881").innerHTML = DisplayStrs31881; if (CountActives31881) //alert(SetTimeOutPeriods31881); setTimeout("CountBacks31881(" + (secs+CountSteppers31881) + ")", SetTimeOutPeriods31881); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31881)=="undefined") BackColors31881 = ""; if (typeof(ForeColors31881)=="undefined") ForeColors31881= "white"; if (typeof(TargetDates31881)=="undefined") TargetDates31881 = "04/22/2025 11:00:00 PM"; if (typeof(DisplayFormats31881)=="undefined") DisplayFormats31881 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31881)=="undefined") CountActives31881 = true; if (typeof(FinishMessages31881)=="undefined") FinishMessages31881 = ""; if (typeof(CountSteppers31881)!="number") CountSteppers31881 = -1; if (typeof(LeadingZeros31881)=="undefined") LeadingZeros31881 = true; CountSteppers31881 = Math.ceil(CountSteppers31881); if (CountSteppers31881 == 0) CountActives31881 = false; var SetTimeOutPeriods31881 = (Math.abs(CountSteppers31881)-1)*1000 + 990; puti(BackColors31881, ForeColors31881); var dthens31881 = new Date(TargetDates31881); var dnows31881 = new Date("04/19/2025 2:52:01 PM"); if(CountSteppers31881>0) ddiffs31881 = new Date(dnows31881-dthens31881); else ddiffs31881 = new Date(dthens31881-dnows31881); gsecss31881 = Math.floor(ddiffs31881.valueOf()/1000); CountBacks31881(gsecss31881);