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 (LeadingZeros32905 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32905(secs) { if (secs < 0) { document.getElementById("cntdwns32905").innerHTML = FinishMessages32905; return; } DisplayStrs32905 = DisplayFormats32905.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32905 = DisplayStrs32905.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32905 = DisplayStrs32905.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32905 = DisplayStrs32905.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32905").innerHTML = DisplayStrs32905; if (CountActives32905) //alert(SetTimeOutPeriods32905); setTimeout("CountBacks32905(" + (secs+CountSteppers32905) + ")", SetTimeOutPeriods32905); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32905)=="undefined") BackColors32905 = ""; if (typeof(ForeColors32905)=="undefined") ForeColors32905= "white"; if (typeof(TargetDates32905)=="undefined") TargetDates32905 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32905)=="undefined") DisplayFormats32905 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32905)=="undefined") CountActives32905 = true; if (typeof(FinishMessages32905)=="undefined") FinishMessages32905 = ""; if (typeof(CountSteppers32905)!="number") CountSteppers32905 = -1; if (typeof(LeadingZeros32905)=="undefined") LeadingZeros32905 = true; CountSteppers32905 = Math.ceil(CountSteppers32905); if (CountSteppers32905 == 0) CountActives32905 = false; var SetTimeOutPeriods32905 = (Math.abs(CountSteppers32905)-1)*1000 + 990; puti(BackColors32905, ForeColors32905); var dthens32905 = new Date(TargetDates32905); var dnows32905 = new Date("10/09/2025 3:24:58 PM"); if(CountSteppers32905>0) ddiffs32905 = new Date(dnows32905-dthens32905); else ddiffs32905 = new Date(dthens32905-dnows32905); gsecss32905 = Math.floor(ddiffs32905.valueOf()/1000); CountBacks32905(gsecss32905);