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 (LeadingZeros32917 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32917(secs) { if (secs < 0) { document.getElementById("cntdwns32917").innerHTML = FinishMessages32917; return; } DisplayStrs32917 = DisplayFormats32917.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32917 = DisplayStrs32917.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32917 = DisplayStrs32917.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32917 = DisplayStrs32917.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32917").innerHTML = DisplayStrs32917; if (CountActives32917) //alert(SetTimeOutPeriods32917); setTimeout("CountBacks32917(" + (secs+CountSteppers32917) + ")", SetTimeOutPeriods32917); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32917)=="undefined") BackColors32917 = ""; if (typeof(ForeColors32917)=="undefined") ForeColors32917= "white"; if (typeof(TargetDates32917)=="undefined") TargetDates32917 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32917)=="undefined") DisplayFormats32917 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32917)=="undefined") CountActives32917 = true; if (typeof(FinishMessages32917)=="undefined") FinishMessages32917 = ""; if (typeof(CountSteppers32917)!="number") CountSteppers32917 = -1; if (typeof(LeadingZeros32917)=="undefined") LeadingZeros32917 = true; CountSteppers32917 = Math.ceil(CountSteppers32917); if (CountSteppers32917 == 0) CountActives32917 = false; var SetTimeOutPeriods32917 = (Math.abs(CountSteppers32917)-1)*1000 + 990; puti(BackColors32917, ForeColors32917); var dthens32917 = new Date(TargetDates32917); var dnows32917 = new Date("10/09/2025 11:53:22 AM"); if(CountSteppers32917>0) ddiffs32917 = new Date(dnows32917-dthens32917); else ddiffs32917 = new Date(dthens32917-dnows32917); gsecss32917 = Math.floor(ddiffs32917.valueOf()/1000); CountBacks32917(gsecss32917);