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 (LeadingZeros32847 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32847(secs) { if (secs < 0) { document.getElementById("cntdwns32847").innerHTML = FinishMessages32847; return; } DisplayStrs32847 = DisplayFormats32847.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32847 = DisplayStrs32847.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32847 = DisplayStrs32847.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32847 = DisplayStrs32847.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32847").innerHTML = DisplayStrs32847; if (CountActives32847) //alert(SetTimeOutPeriods32847); setTimeout("CountBacks32847(" + (secs+CountSteppers32847) + ")", SetTimeOutPeriods32847); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32847)=="undefined") BackColors32847 = ""; if (typeof(ForeColors32847)=="undefined") ForeColors32847= "white"; if (typeof(TargetDates32847)=="undefined") TargetDates32847 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32847)=="undefined") DisplayFormats32847 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32847)=="undefined") CountActives32847 = true; if (typeof(FinishMessages32847)=="undefined") FinishMessages32847 = ""; if (typeof(CountSteppers32847)!="number") CountSteppers32847 = -1; if (typeof(LeadingZeros32847)=="undefined") LeadingZeros32847 = true; CountSteppers32847 = Math.ceil(CountSteppers32847); if (CountSteppers32847 == 0) CountActives32847 = false; var SetTimeOutPeriods32847 = (Math.abs(CountSteppers32847)-1)*1000 + 990; puti(BackColors32847, ForeColors32847); var dthens32847 = new Date(TargetDates32847); var dnows32847 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32847>0) ddiffs32847 = new Date(dnows32847-dthens32847); else ddiffs32847 = new Date(dthens32847-dnows32847); gsecss32847 = Math.floor(ddiffs32847.valueOf()/1000); CountBacks32847(gsecss32847);