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 (LeadingZeros32695 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32695(secs) { if (secs < 0) { document.getElementById("cntdwns32695").innerHTML = FinishMessages32695; return; } DisplayStrs32695 = DisplayFormats32695.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32695 = DisplayStrs32695.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32695 = DisplayStrs32695.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32695 = DisplayStrs32695.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32695").innerHTML = DisplayStrs32695; if (CountActives32695) //alert(SetTimeOutPeriods32695); setTimeout("CountBacks32695(" + (secs+CountSteppers32695) + ")", SetTimeOutPeriods32695); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32695)=="undefined") BackColors32695 = ""; if (typeof(ForeColors32695)=="undefined") ForeColors32695= "white"; if (typeof(TargetDates32695)=="undefined") TargetDates32695 = "08/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32695)=="undefined") DisplayFormats32695 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32695)=="undefined") CountActives32695 = true; if (typeof(FinishMessages32695)=="undefined") FinishMessages32695 = ""; if (typeof(CountSteppers32695)!="number") CountSteppers32695 = -1; if (typeof(LeadingZeros32695)=="undefined") LeadingZeros32695 = true; CountSteppers32695 = Math.ceil(CountSteppers32695); if (CountSteppers32695 == 0) CountActives32695 = false; var SetTimeOutPeriods32695 = (Math.abs(CountSteppers32695)-1)*1000 + 990; puti(BackColors32695, ForeColors32695); var dthens32695 = new Date(TargetDates32695); var dnows32695 = new Date("08/14/2025 8:51:42 AM"); if(CountSteppers32695>0) ddiffs32695 = new Date(dnows32695-dthens32695); else ddiffs32695 = new Date(dthens32695-dnows32695); gsecss32695 = Math.floor(ddiffs32695.valueOf()/1000); CountBacks32695(gsecss32695);