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 (LeadingZeros32844 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32844(secs) { if (secs < 0) { document.getElementById("cntdwns32844").innerHTML = FinishMessages32844; return; } DisplayStrs32844 = DisplayFormats32844.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32844 = DisplayStrs32844.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32844 = DisplayStrs32844.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32844 = DisplayStrs32844.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32844").innerHTML = DisplayStrs32844; if (CountActives32844) //alert(SetTimeOutPeriods32844); setTimeout("CountBacks32844(" + (secs+CountSteppers32844) + ")", SetTimeOutPeriods32844); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32844)=="undefined") BackColors32844 = ""; if (typeof(ForeColors32844)=="undefined") ForeColors32844= "white"; if (typeof(TargetDates32844)=="undefined") TargetDates32844 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32844)=="undefined") DisplayFormats32844 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32844)=="undefined") CountActives32844 = true; if (typeof(FinishMessages32844)=="undefined") FinishMessages32844 = ""; if (typeof(CountSteppers32844)!="number") CountSteppers32844 = -1; if (typeof(LeadingZeros32844)=="undefined") LeadingZeros32844 = true; CountSteppers32844 = Math.ceil(CountSteppers32844); if (CountSteppers32844 == 0) CountActives32844 = false; var SetTimeOutPeriods32844 = (Math.abs(CountSteppers32844)-1)*1000 + 990; puti(BackColors32844, ForeColors32844); var dthens32844 = new Date(TargetDates32844); var dnows32844 = new Date("10/09/2025 11:53:22 AM"); if(CountSteppers32844>0) ddiffs32844 = new Date(dnows32844-dthens32844); else ddiffs32844 = new Date(dthens32844-dnows32844); gsecss32844 = Math.floor(ddiffs32844.valueOf()/1000); CountBacks32844(gsecss32844);