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 (LeadingZeros32469 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32469(secs) { if (secs < 0) { document.getElementById("cntdwns32469").innerHTML = FinishMessages32469; return; } DisplayStrs32469 = DisplayFormats32469.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32469 = DisplayStrs32469.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32469 = DisplayStrs32469.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32469 = DisplayStrs32469.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32469").innerHTML = DisplayStrs32469; if (CountActives32469) //alert(SetTimeOutPeriods32469); setTimeout("CountBacks32469(" + (secs+CountSteppers32469) + ")", SetTimeOutPeriods32469); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32469)=="undefined") BackColors32469 = ""; if (typeof(ForeColors32469)=="undefined") ForeColors32469= "white"; if (typeof(TargetDates32469)=="undefined") TargetDates32469 = "06/25/2025 10:00:00 PM"; if (typeof(DisplayFormats32469)=="undefined") DisplayFormats32469 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32469)=="undefined") CountActives32469 = true; if (typeof(FinishMessages32469)=="undefined") FinishMessages32469 = ""; if (typeof(CountSteppers32469)!="number") CountSteppers32469 = -1; if (typeof(LeadingZeros32469)=="undefined") LeadingZeros32469 = true; CountSteppers32469 = Math.ceil(CountSteppers32469); if (CountSteppers32469 == 0) CountActives32469 = false; var SetTimeOutPeriods32469 = (Math.abs(CountSteppers32469)-1)*1000 + 990; puti(BackColors32469, ForeColors32469); var dthens32469 = new Date(TargetDates32469); var dnows32469 = new Date("06/23/2025 4:25:10 PM"); if(CountSteppers32469>0) ddiffs32469 = new Date(dnows32469-dthens32469); else ddiffs32469 = new Date(dthens32469-dnows32469); gsecss32469 = Math.floor(ddiffs32469.valueOf()/1000); CountBacks32469(gsecss32469);