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 (LeadingZeros32879 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32879(secs) { if (secs < 0) { document.getElementById("cntdwns32879").innerHTML = FinishMessages32879; return; } DisplayStrs32879 = DisplayFormats32879.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32879 = DisplayStrs32879.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32879 = DisplayStrs32879.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32879 = DisplayStrs32879.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32879").innerHTML = DisplayStrs32879; if (CountActives32879) //alert(SetTimeOutPeriods32879); setTimeout("CountBacks32879(" + (secs+CountSteppers32879) + ")", SetTimeOutPeriods32879); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32879)=="undefined") BackColors32879 = ""; if (typeof(ForeColors32879)=="undefined") ForeColors32879= "white"; if (typeof(TargetDates32879)=="undefined") TargetDates32879 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32879)=="undefined") DisplayFormats32879 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32879)=="undefined") CountActives32879 = true; if (typeof(FinishMessages32879)=="undefined") FinishMessages32879 = ""; if (typeof(CountSteppers32879)!="number") CountSteppers32879 = -1; if (typeof(LeadingZeros32879)=="undefined") LeadingZeros32879 = true; CountSteppers32879 = Math.ceil(CountSteppers32879); if (CountSteppers32879 == 0) CountActives32879 = false; var SetTimeOutPeriods32879 = (Math.abs(CountSteppers32879)-1)*1000 + 990; puti(BackColors32879, ForeColors32879); var dthens32879 = new Date(TargetDates32879); var dnows32879 = new Date("10/09/2025 2:59:12 PM"); if(CountSteppers32879>0) ddiffs32879 = new Date(dnows32879-dthens32879); else ddiffs32879 = new Date(dthens32879-dnows32879); gsecss32879 = Math.floor(ddiffs32879.valueOf()/1000); CountBacks32879(gsecss32879);