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 (LeadingZeros32799 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32799(secs) { if (secs < 0) { document.getElementById("cntdwns32799").innerHTML = FinishMessages32799; return; } DisplayStrs32799 = DisplayFormats32799.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32799 = DisplayStrs32799.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32799 = DisplayStrs32799.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32799 = DisplayStrs32799.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32799").innerHTML = DisplayStrs32799; if (CountActives32799) //alert(SetTimeOutPeriods32799); setTimeout("CountBacks32799(" + (secs+CountSteppers32799) + ")", SetTimeOutPeriods32799); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32799)=="undefined") BackColors32799 = ""; if (typeof(ForeColors32799)=="undefined") ForeColors32799= "white"; if (typeof(TargetDates32799)=="undefined") TargetDates32799 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32799)=="undefined") DisplayFormats32799 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32799)=="undefined") CountActives32799 = true; if (typeof(FinishMessages32799)=="undefined") FinishMessages32799 = ""; if (typeof(CountSteppers32799)!="number") CountSteppers32799 = -1; if (typeof(LeadingZeros32799)=="undefined") LeadingZeros32799 = true; CountSteppers32799 = Math.ceil(CountSteppers32799); if (CountSteppers32799 == 0) CountActives32799 = false; var SetTimeOutPeriods32799 = (Math.abs(CountSteppers32799)-1)*1000 + 990; puti(BackColors32799, ForeColors32799); var dthens32799 = new Date(TargetDates32799); var dnows32799 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32799>0) ddiffs32799 = new Date(dnows32799-dthens32799); else ddiffs32799 = new Date(dthens32799-dnows32799); gsecss32799 = Math.floor(ddiffs32799.valueOf()/1000); CountBacks32799(gsecss32799);