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 (LeadingZeros32225 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32225(secs) { if (secs < 0) { document.getElementById("cntdwns32225").innerHTML = FinishMessages32225; return; } DisplayStrs32225 = DisplayFormats32225.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32225 = DisplayStrs32225.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32225 = DisplayStrs32225.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32225 = DisplayStrs32225.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32225").innerHTML = DisplayStrs32225; if (CountActives32225) //alert(SetTimeOutPeriods32225); setTimeout("CountBacks32225(" + (secs+CountSteppers32225) + ")", SetTimeOutPeriods32225); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32225)=="undefined") BackColors32225 = ""; if (typeof(ForeColors32225)=="undefined") ForeColors32225= "white"; if (typeof(TargetDates32225)=="undefined") TargetDates32225 = "04/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32225)=="undefined") DisplayFormats32225 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32225)=="undefined") CountActives32225 = true; if (typeof(FinishMessages32225)=="undefined") FinishMessages32225 = ""; if (typeof(CountSteppers32225)!="number") CountSteppers32225 = -1; if (typeof(LeadingZeros32225)=="undefined") LeadingZeros32225 = true; CountSteppers32225 = Math.ceil(CountSteppers32225); if (CountSteppers32225 == 0) CountActives32225 = false; var SetTimeOutPeriods32225 = (Math.abs(CountSteppers32225)-1)*1000 + 990; puti(BackColors32225, ForeColors32225); var dthens32225 = new Date(TargetDates32225); var dnows32225 = new Date("04/16/2025 11:06:21 AM"); if(CountSteppers32225>0) ddiffs32225 = new Date(dnows32225-dthens32225); else ddiffs32225 = new Date(dthens32225-dnows32225); gsecss32225 = Math.floor(ddiffs32225.valueOf()/1000); CountBacks32225(gsecss32225);