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 (LeadingZeros32410 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32410(secs) { if (secs < 0) { document.getElementById("cntdwns32410").innerHTML = FinishMessages32410; return; } DisplayStrs32410 = DisplayFormats32410.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32410 = DisplayStrs32410.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32410 = DisplayStrs32410.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32410 = DisplayStrs32410.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32410").innerHTML = DisplayStrs32410; if (CountActives32410) //alert(SetTimeOutPeriods32410); setTimeout("CountBacks32410(" + (secs+CountSteppers32410) + ")", SetTimeOutPeriods32410); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32410)=="undefined") BackColors32410 = ""; if (typeof(ForeColors32410)=="undefined") ForeColors32410= "white"; if (typeof(TargetDates32410)=="undefined") TargetDates32410 = "06/22/2025 10:00:00 PM"; if (typeof(DisplayFormats32410)=="undefined") DisplayFormats32410 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32410)=="undefined") CountActives32410 = true; if (typeof(FinishMessages32410)=="undefined") FinishMessages32410 = ""; if (typeof(CountSteppers32410)!="number") CountSteppers32410 = -1; if (typeof(LeadingZeros32410)=="undefined") LeadingZeros32410 = true; CountSteppers32410 = Math.ceil(CountSteppers32410); if (CountSteppers32410 == 0) CountActives32410 = false; var SetTimeOutPeriods32410 = (Math.abs(CountSteppers32410)-1)*1000 + 990; puti(BackColors32410, ForeColors32410); var dthens32410 = new Date(TargetDates32410); var dnows32410 = new Date("06/19/2025 8:40:28 AM"); if(CountSteppers32410>0) ddiffs32410 = new Date(dnows32410-dthens32410); else ddiffs32410 = new Date(dthens32410-dnows32410); gsecss32410 = Math.floor(ddiffs32410.valueOf()/1000); CountBacks32410(gsecss32410);