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 (LeadingZeros32947 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32947(secs) { if (secs < 0) { document.getElementById("cntdwns32947").innerHTML = FinishMessages32947; return; } DisplayStrs32947 = DisplayFormats32947.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32947 = DisplayStrs32947.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32947 = DisplayStrs32947.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32947 = DisplayStrs32947.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32947").innerHTML = DisplayStrs32947; if (CountActives32947) //alert(SetTimeOutPeriods32947); setTimeout("CountBacks32947(" + (secs+CountSteppers32947) + ")", SetTimeOutPeriods32947); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32947)=="undefined") BackColors32947 = ""; if (typeof(ForeColors32947)=="undefined") ForeColors32947= "white"; if (typeof(TargetDates32947)=="undefined") TargetDates32947 = "10/11/2025 8:00:00 AM"; if (typeof(DisplayFormats32947)=="undefined") DisplayFormats32947 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32947)=="undefined") CountActives32947 = true; if (typeof(FinishMessages32947)=="undefined") FinishMessages32947 = ""; if (typeof(CountSteppers32947)!="number") CountSteppers32947 = -1; if (typeof(LeadingZeros32947)=="undefined") LeadingZeros32947 = true; CountSteppers32947 = Math.ceil(CountSteppers32947); if (CountSteppers32947 == 0) CountActives32947 = false; var SetTimeOutPeriods32947 = (Math.abs(CountSteppers32947)-1)*1000 + 990; puti(BackColors32947, ForeColors32947); var dthens32947 = new Date(TargetDates32947); var dnows32947 = new Date("10/09/2025 8:05:15 AM"); if(CountSteppers32947>0) ddiffs32947 = new Date(dnows32947-dthens32947); else ddiffs32947 = new Date(dthens32947-dnows32947); gsecss32947 = Math.floor(ddiffs32947.valueOf()/1000); CountBacks32947(gsecss32947);