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 (LeadingZeros32241 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32241(secs) { if (secs < 0) { document.getElementById("cntdwns32241").innerHTML = FinishMessages32241; return; } DisplayStrs32241 = DisplayFormats32241.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32241 = DisplayStrs32241.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32241 = DisplayStrs32241.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32241 = DisplayStrs32241.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32241").innerHTML = DisplayStrs32241; if (CountActives32241) //alert(SetTimeOutPeriods32241); setTimeout("CountBacks32241(" + (secs+CountSteppers32241) + ")", SetTimeOutPeriods32241); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32241)=="undefined") BackColors32241 = ""; if (typeof(ForeColors32241)=="undefined") ForeColors32241= "white"; if (typeof(TargetDates32241)=="undefined") TargetDates32241 = "04/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32241)=="undefined") DisplayFormats32241 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32241)=="undefined") CountActives32241 = true; if (typeof(FinishMessages32241)=="undefined") FinishMessages32241 = ""; if (typeof(CountSteppers32241)!="number") CountSteppers32241 = -1; if (typeof(LeadingZeros32241)=="undefined") LeadingZeros32241 = true; CountSteppers32241 = Math.ceil(CountSteppers32241); if (CountSteppers32241 == 0) CountActives32241 = false; var SetTimeOutPeriods32241 = (Math.abs(CountSteppers32241)-1)*1000 + 990; puti(BackColors32241, ForeColors32241); var dthens32241 = new Date(TargetDates32241); var dnows32241 = new Date("04/20/2025 8:26:25 PM"); if(CountSteppers32241>0) ddiffs32241 = new Date(dnows32241-dthens32241); else ddiffs32241 = new Date(dthens32241-dnows32241); gsecss32241 = Math.floor(ddiffs32241.valueOf()/1000); CountBacks32241(gsecss32241);