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 (LeadingZeros32837 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32837(secs) { if (secs < 0) { document.getElementById("cntdwns32837").innerHTML = FinishMessages32837; return; } DisplayStrs32837 = DisplayFormats32837.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32837 = DisplayStrs32837.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32837 = DisplayStrs32837.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32837 = DisplayStrs32837.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32837").innerHTML = DisplayStrs32837; if (CountActives32837) //alert(SetTimeOutPeriods32837); setTimeout("CountBacks32837(" + (secs+CountSteppers32837) + ")", SetTimeOutPeriods32837); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32837)=="undefined") BackColors32837 = ""; if (typeof(ForeColors32837)=="undefined") ForeColors32837= "white"; if (typeof(TargetDates32837)=="undefined") TargetDates32837 = "10/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32837)=="undefined") DisplayFormats32837 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32837)=="undefined") CountActives32837 = true; if (typeof(FinishMessages32837)=="undefined") FinishMessages32837 = ""; if (typeof(CountSteppers32837)!="number") CountSteppers32837 = -1; if (typeof(LeadingZeros32837)=="undefined") LeadingZeros32837 = true; CountSteppers32837 = Math.ceil(CountSteppers32837); if (CountSteppers32837 == 0) CountActives32837 = false; var SetTimeOutPeriods32837 = (Math.abs(CountSteppers32837)-1)*1000 + 990; puti(BackColors32837, ForeColors32837); var dthens32837 = new Date(TargetDates32837); var dnows32837 = new Date("10/14/2025 7:45:49 PM"); if(CountSteppers32837>0) ddiffs32837 = new Date(dnows32837-dthens32837); else ddiffs32837 = new Date(dthens32837-dnows32837); gsecss32837 = Math.floor(ddiffs32837.valueOf()/1000); CountBacks32837(gsecss32837);