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 (LeadingZeros32912 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32912(secs) { if (secs < 0) { document.getElementById("cntdwns32912").innerHTML = FinishMessages32912; return; } DisplayStrs32912 = DisplayFormats32912.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32912 = DisplayStrs32912.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32912 = DisplayStrs32912.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32912 = DisplayStrs32912.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32912").innerHTML = DisplayStrs32912; if (CountActives32912) //alert(SetTimeOutPeriods32912); setTimeout("CountBacks32912(" + (secs+CountSteppers32912) + ")", SetTimeOutPeriods32912); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32912)=="undefined") BackColors32912 = ""; if (typeof(ForeColors32912)=="undefined") ForeColors32912= "white"; if (typeof(TargetDates32912)=="undefined") TargetDates32912 = "10/29/2025 9:00:00 PM"; if (typeof(DisplayFormats32912)=="undefined") DisplayFormats32912 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32912)=="undefined") CountActives32912 = true; if (typeof(FinishMessages32912)=="undefined") FinishMessages32912 = ""; if (typeof(CountSteppers32912)!="number") CountSteppers32912 = -1; if (typeof(LeadingZeros32912)=="undefined") LeadingZeros32912 = true; CountSteppers32912 = Math.ceil(CountSteppers32912); if (CountSteppers32912 == 0) CountActives32912 = false; var SetTimeOutPeriods32912 = (Math.abs(CountSteppers32912)-1)*1000 + 990; puti(BackColors32912, ForeColors32912); var dthens32912 = new Date(TargetDates32912); var dnows32912 = new Date("10/28/2025 2:47:01 AM"); if(CountSteppers32912>0) ddiffs32912 = new Date(dnows32912-dthens32912); else ddiffs32912 = new Date(dthens32912-dnows32912); gsecss32912 = Math.floor(ddiffs32912.valueOf()/1000); CountBacks32912(gsecss32912);