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 (LeadingZeros32668 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32668(secs) { if (secs < 0) { document.getElementById("cntdwns32668").innerHTML = FinishMessages32668; return; } DisplayStrs32668 = DisplayFormats32668.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32668 = DisplayStrs32668.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32668 = DisplayStrs32668.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32668 = DisplayStrs32668.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32668").innerHTML = DisplayStrs32668; if (CountActives32668) //alert(SetTimeOutPeriods32668); setTimeout("CountBacks32668(" + (secs+CountSteppers32668) + ")", SetTimeOutPeriods32668); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32668)=="undefined") BackColors32668 = ""; if (typeof(ForeColors32668)=="undefined") ForeColors32668= "white"; if (typeof(TargetDates32668)=="undefined") TargetDates32668 = "08/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32668)=="undefined") DisplayFormats32668 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32668)=="undefined") CountActives32668 = true; if (typeof(FinishMessages32668)=="undefined") FinishMessages32668 = ""; if (typeof(CountSteppers32668)!="number") CountSteppers32668 = -1; if (typeof(LeadingZeros32668)=="undefined") LeadingZeros32668 = true; CountSteppers32668 = Math.ceil(CountSteppers32668); if (CountSteppers32668 == 0) CountActives32668 = false; var SetTimeOutPeriods32668 = (Math.abs(CountSteppers32668)-1)*1000 + 990; puti(BackColors32668, ForeColors32668); var dthens32668 = new Date(TargetDates32668); var dnows32668 = new Date("08/17/2025 8:19:16 AM"); if(CountSteppers32668>0) ddiffs32668 = new Date(dnows32668-dthens32668); else ddiffs32668 = new Date(dthens32668-dnows32668); gsecss32668 = Math.floor(ddiffs32668.valueOf()/1000); CountBacks32668(gsecss32668);