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 (LeadingZeros32416 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32416(secs) { if (secs < 0) { document.getElementById("cntdwns32416").innerHTML = FinishMessages32416; return; } DisplayStrs32416 = DisplayFormats32416.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32416 = DisplayStrs32416.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32416 = DisplayStrs32416.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32416 = DisplayStrs32416.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32416").innerHTML = DisplayStrs32416; if (CountActives32416) //alert(SetTimeOutPeriods32416); setTimeout("CountBacks32416(" + (secs+CountSteppers32416) + ")", SetTimeOutPeriods32416); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32416)=="undefined") BackColors32416 = ""; if (typeof(ForeColors32416)=="undefined") ForeColors32416= "white"; if (typeof(TargetDates32416)=="undefined") TargetDates32416 = "06/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32416)=="undefined") DisplayFormats32416 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32416)=="undefined") CountActives32416 = true; if (typeof(FinishMessages32416)=="undefined") FinishMessages32416 = ""; if (typeof(CountSteppers32416)!="number") CountSteppers32416 = -1; if (typeof(LeadingZeros32416)=="undefined") LeadingZeros32416 = true; CountSteppers32416 = Math.ceil(CountSteppers32416); if (CountSteppers32416 == 0) CountActives32416 = false; var SetTimeOutPeriods32416 = (Math.abs(CountSteppers32416)-1)*1000 + 990; puti(BackColors32416, ForeColors32416); var dthens32416 = new Date(TargetDates32416); var dnows32416 = new Date("06/13/2025 4:15:55 PM"); if(CountSteppers32416>0) ddiffs32416 = new Date(dnows32416-dthens32416); else ddiffs32416 = new Date(dthens32416-dnows32416); gsecss32416 = Math.floor(ddiffs32416.valueOf()/1000); CountBacks32416(gsecss32416);