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 (LeadingZeros32832 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32832(secs) { if (secs < 0) { document.getElementById("cntdwns32832").innerHTML = FinishMessages32832; return; } DisplayStrs32832 = DisplayFormats32832.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32832 = DisplayStrs32832.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32832 = DisplayStrs32832.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32832 = DisplayStrs32832.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32832").innerHTML = DisplayStrs32832; if (CountActives32832) //alert(SetTimeOutPeriods32832); setTimeout("CountBacks32832(" + (secs+CountSteppers32832) + ")", SetTimeOutPeriods32832); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32832)=="undefined") BackColors32832 = ""; if (typeof(ForeColors32832)=="undefined") ForeColors32832= "white"; if (typeof(TargetDates32832)=="undefined") TargetDates32832 = "10/16/2025 10:00:00 PM"; if (typeof(DisplayFormats32832)=="undefined") DisplayFormats32832 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32832)=="undefined") CountActives32832 = true; if (typeof(FinishMessages32832)=="undefined") FinishMessages32832 = ""; if (typeof(CountSteppers32832)!="number") CountSteppers32832 = -1; if (typeof(LeadingZeros32832)=="undefined") LeadingZeros32832 = true; CountSteppers32832 = Math.ceil(CountSteppers32832); if (CountSteppers32832 == 0) CountActives32832 = false; var SetTimeOutPeriods32832 = (Math.abs(CountSteppers32832)-1)*1000 + 990; puti(BackColors32832, ForeColors32832); var dthens32832 = new Date(TargetDates32832); var dnows32832 = new Date("10/14/2025 3:06:12 AM"); if(CountSteppers32832>0) ddiffs32832 = new Date(dnows32832-dthens32832); else ddiffs32832 = new Date(dthens32832-dnows32832); gsecss32832 = Math.floor(ddiffs32832.valueOf()/1000); CountBacks32832(gsecss32832);