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 (LeadingZeros32873 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32873(secs) { if (secs < 0) { document.getElementById("cntdwns32873").innerHTML = FinishMessages32873; return; } DisplayStrs32873 = DisplayFormats32873.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32873 = DisplayStrs32873.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32873 = DisplayStrs32873.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32873 = DisplayStrs32873.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32873").innerHTML = DisplayStrs32873; if (CountActives32873) //alert(SetTimeOutPeriods32873); setTimeout("CountBacks32873(" + (secs+CountSteppers32873) + ")", SetTimeOutPeriods32873); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32873)=="undefined") BackColors32873 = ""; if (typeof(ForeColors32873)=="undefined") ForeColors32873= "white"; if (typeof(TargetDates32873)=="undefined") TargetDates32873 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32873)=="undefined") DisplayFormats32873 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32873)=="undefined") CountActives32873 = true; if (typeof(FinishMessages32873)=="undefined") FinishMessages32873 = ""; if (typeof(CountSteppers32873)!="number") CountSteppers32873 = -1; if (typeof(LeadingZeros32873)=="undefined") LeadingZeros32873 = true; CountSteppers32873 = Math.ceil(CountSteppers32873); if (CountSteppers32873 == 0) CountActives32873 = false; var SetTimeOutPeriods32873 = (Math.abs(CountSteppers32873)-1)*1000 + 990; puti(BackColors32873, ForeColors32873); var dthens32873 = new Date(TargetDates32873); var dnows32873 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32873>0) ddiffs32873 = new Date(dnows32873-dthens32873); else ddiffs32873 = new Date(dthens32873-dnows32873); gsecss32873 = Math.floor(ddiffs32873.valueOf()/1000); CountBacks32873(gsecss32873);