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 (LeadingZeros32815 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32815(secs) { if (secs < 0) { document.getElementById("cntdwns32815").innerHTML = FinishMessages32815; return; } DisplayStrs32815 = DisplayFormats32815.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32815 = DisplayStrs32815.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32815 = DisplayStrs32815.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32815 = DisplayStrs32815.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32815").innerHTML = DisplayStrs32815; if (CountActives32815) //alert(SetTimeOutPeriods32815); setTimeout("CountBacks32815(" + (secs+CountSteppers32815) + ")", SetTimeOutPeriods32815); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32815)=="undefined") BackColors32815 = ""; if (typeof(ForeColors32815)=="undefined") ForeColors32815= "white"; if (typeof(TargetDates32815)=="undefined") TargetDates32815 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32815)=="undefined") DisplayFormats32815 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32815)=="undefined") CountActives32815 = true; if (typeof(FinishMessages32815)=="undefined") FinishMessages32815 = ""; if (typeof(CountSteppers32815)!="number") CountSteppers32815 = -1; if (typeof(LeadingZeros32815)=="undefined") LeadingZeros32815 = true; CountSteppers32815 = Math.ceil(CountSteppers32815); if (CountSteppers32815 == 0) CountActives32815 = false; var SetTimeOutPeriods32815 = (Math.abs(CountSteppers32815)-1)*1000 + 990; puti(BackColors32815, ForeColors32815); var dthens32815 = new Date(TargetDates32815); var dnows32815 = new Date("10/09/2025 3:24:57 PM"); if(CountSteppers32815>0) ddiffs32815 = new Date(dnows32815-dthens32815); else ddiffs32815 = new Date(dthens32815-dnows32815); gsecss32815 = Math.floor(ddiffs32815.valueOf()/1000); CountBacks32815(gsecss32815);