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 (LeadingZeros32846 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32846(secs) { if (secs < 0) { document.getElementById("cntdwns32846").innerHTML = FinishMessages32846; return; } DisplayStrs32846 = DisplayFormats32846.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32846 = DisplayStrs32846.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32846 = DisplayStrs32846.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32846 = DisplayStrs32846.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32846").innerHTML = DisplayStrs32846; if (CountActives32846) //alert(SetTimeOutPeriods32846); setTimeout("CountBacks32846(" + (secs+CountSteppers32846) + ")", SetTimeOutPeriods32846); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32846)=="undefined") BackColors32846 = ""; if (typeof(ForeColors32846)=="undefined") ForeColors32846= "white"; if (typeof(TargetDates32846)=="undefined") TargetDates32846 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32846)=="undefined") DisplayFormats32846 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32846)=="undefined") CountActives32846 = true; if (typeof(FinishMessages32846)=="undefined") FinishMessages32846 = ""; if (typeof(CountSteppers32846)!="number") CountSteppers32846 = -1; if (typeof(LeadingZeros32846)=="undefined") LeadingZeros32846 = true; CountSteppers32846 = Math.ceil(CountSteppers32846); if (CountSteppers32846 == 0) CountActives32846 = false; var SetTimeOutPeriods32846 = (Math.abs(CountSteppers32846)-1)*1000 + 990; puti(BackColors32846, ForeColors32846); var dthens32846 = new Date(TargetDates32846); var dnows32846 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32846>0) ddiffs32846 = new Date(dnows32846-dthens32846); else ddiffs32846 = new Date(dthens32846-dnows32846); gsecss32846 = Math.floor(ddiffs32846.valueOf()/1000); CountBacks32846(gsecss32846);