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 (LeadingZeros32918 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32918(secs) { if (secs < 0) { document.getElementById("cntdwns32918").innerHTML = FinishMessages32918; return; } DisplayStrs32918 = DisplayFormats32918.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32918 = DisplayStrs32918.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32918 = DisplayStrs32918.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32918 = DisplayStrs32918.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32918").innerHTML = DisplayStrs32918; if (CountActives32918) //alert(SetTimeOutPeriods32918); setTimeout("CountBacks32918(" + (secs+CountSteppers32918) + ")", SetTimeOutPeriods32918); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32918)=="undefined") BackColors32918 = ""; if (typeof(ForeColors32918)=="undefined") ForeColors32918= "white"; if (typeof(TargetDates32918)=="undefined") TargetDates32918 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32918)=="undefined") DisplayFormats32918 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32918)=="undefined") CountActives32918 = true; if (typeof(FinishMessages32918)=="undefined") FinishMessages32918 = ""; if (typeof(CountSteppers32918)!="number") CountSteppers32918 = -1; if (typeof(LeadingZeros32918)=="undefined") LeadingZeros32918 = true; CountSteppers32918 = Math.ceil(CountSteppers32918); if (CountSteppers32918 == 0) CountActives32918 = false; var SetTimeOutPeriods32918 = (Math.abs(CountSteppers32918)-1)*1000 + 990; puti(BackColors32918, ForeColors32918); var dthens32918 = new Date(TargetDates32918); var dnows32918 = new Date("10/09/2025 11:53:22 AM"); if(CountSteppers32918>0) ddiffs32918 = new Date(dnows32918-dthens32918); else ddiffs32918 = new Date(dthens32918-dnows32918); gsecss32918 = Math.floor(ddiffs32918.valueOf()/1000); CountBacks32918(gsecss32918);