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 (LeadingZeros32845 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32845(secs) { if (secs < 0) { document.getElementById("cntdwns32845").innerHTML = FinishMessages32845; return; } DisplayStrs32845 = DisplayFormats32845.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32845 = DisplayStrs32845.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32845 = DisplayStrs32845.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32845 = DisplayStrs32845.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32845").innerHTML = DisplayStrs32845; if (CountActives32845) //alert(SetTimeOutPeriods32845); setTimeout("CountBacks32845(" + (secs+CountSteppers32845) + ")", SetTimeOutPeriods32845); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32845)=="undefined") BackColors32845 = ""; if (typeof(ForeColors32845)=="undefined") ForeColors32845= "white"; if (typeof(TargetDates32845)=="undefined") TargetDates32845 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32845)=="undefined") DisplayFormats32845 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32845)=="undefined") CountActives32845 = true; if (typeof(FinishMessages32845)=="undefined") FinishMessages32845 = ""; if (typeof(CountSteppers32845)!="number") CountSteppers32845 = -1; if (typeof(LeadingZeros32845)=="undefined") LeadingZeros32845 = true; CountSteppers32845 = Math.ceil(CountSteppers32845); if (CountSteppers32845 == 0) CountActives32845 = false; var SetTimeOutPeriods32845 = (Math.abs(CountSteppers32845)-1)*1000 + 990; puti(BackColors32845, ForeColors32845); var dthens32845 = new Date(TargetDates32845); var dnows32845 = new Date("10/09/2025 11:53:21 AM"); if(CountSteppers32845>0) ddiffs32845 = new Date(dnows32845-dthens32845); else ddiffs32845 = new Date(dthens32845-dnows32845); gsecss32845 = Math.floor(ddiffs32845.valueOf()/1000); CountBacks32845(gsecss32845);