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 (LeadingZeros32961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32961(secs) { if (secs < 0) { document.getElementById("cntdwns32961").innerHTML = FinishMessages32961; return; } DisplayStrs32961 = DisplayFormats32961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32961 = DisplayStrs32961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32961 = DisplayStrs32961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32961 = DisplayStrs32961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32961").innerHTML = DisplayStrs32961; if (CountActives32961) //alert(SetTimeOutPeriods32961); setTimeout("CountBacks32961(" + (secs+CountSteppers32961) + ")", SetTimeOutPeriods32961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32961)=="undefined") BackColors32961 = ""; if (typeof(ForeColors32961)=="undefined") ForeColors32961= "white"; if (typeof(TargetDates32961)=="undefined") TargetDates32961 = "10/10/2025 10:00:00 PM"; if (typeof(DisplayFormats32961)=="undefined") DisplayFormats32961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32961)=="undefined") CountActives32961 = true; if (typeof(FinishMessages32961)=="undefined") FinishMessages32961 = ""; if (typeof(CountSteppers32961)!="number") CountSteppers32961 = -1; if (typeof(LeadingZeros32961)=="undefined") LeadingZeros32961 = true; CountSteppers32961 = Math.ceil(CountSteppers32961); if (CountSteppers32961 == 0) CountActives32961 = false; var SetTimeOutPeriods32961 = (Math.abs(CountSteppers32961)-1)*1000 + 990; puti(BackColors32961, ForeColors32961); var dthens32961 = new Date(TargetDates32961); var dnows32961 = new Date("10/08/2025 11:39:21 PM"); if(CountSteppers32961>0) ddiffs32961 = new Date(dnows32961-dthens32961); else ddiffs32961 = new Date(dthens32961-dnows32961); gsecss32961 = Math.floor(ddiffs32961.valueOf()/1000); CountBacks32961(gsecss32961);