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 (LeadingZeros32519 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32519(secs) { if (secs < 0) { document.getElementById("cntdwns32519").innerHTML = FinishMessages32519; return; } DisplayStrs32519 = DisplayFormats32519.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32519 = DisplayStrs32519.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32519 = DisplayStrs32519.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32519 = DisplayStrs32519.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32519").innerHTML = DisplayStrs32519; if (CountActives32519) //alert(SetTimeOutPeriods32519); setTimeout("CountBacks32519(" + (secs+CountSteppers32519) + ")", SetTimeOutPeriods32519); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32519)=="undefined") BackColors32519 = ""; if (typeof(ForeColors32519)=="undefined") ForeColors32519= "white"; if (typeof(TargetDates32519)=="undefined") TargetDates32519 = "08/18/2025 11:00:00 PM"; if (typeof(DisplayFormats32519)=="undefined") DisplayFormats32519 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32519)=="undefined") CountActives32519 = true; if (typeof(FinishMessages32519)=="undefined") FinishMessages32519 = ""; if (typeof(CountSteppers32519)!="number") CountSteppers32519 = -1; if (typeof(LeadingZeros32519)=="undefined") LeadingZeros32519 = true; CountSteppers32519 = Math.ceil(CountSteppers32519); if (CountSteppers32519 == 0) CountActives32519 = false; var SetTimeOutPeriods32519 = (Math.abs(CountSteppers32519)-1)*1000 + 990; puti(BackColors32519, ForeColors32519); var dthens32519 = new Date(TargetDates32519); var dnows32519 = new Date("08/17/2025 1:45:57 AM"); if(CountSteppers32519>0) ddiffs32519 = new Date(dnows32519-dthens32519); else ddiffs32519 = new Date(dthens32519-dnows32519); gsecss32519 = Math.floor(ddiffs32519.valueOf()/1000); CountBacks32519(gsecss32519);