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 (LeadingZeros32631 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32631(secs) { if (secs < 0) { document.getElementById("cntdwns32631").innerHTML = FinishMessages32631; return; } DisplayStrs32631 = DisplayFormats32631.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32631 = DisplayStrs32631.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32631 = DisplayStrs32631.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32631 = DisplayStrs32631.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32631").innerHTML = DisplayStrs32631; if (CountActives32631) //alert(SetTimeOutPeriods32631); setTimeout("CountBacks32631(" + (secs+CountSteppers32631) + ")", SetTimeOutPeriods32631); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32631)=="undefined") BackColors32631 = ""; if (typeof(ForeColors32631)=="undefined") ForeColors32631= "white"; if (typeof(TargetDates32631)=="undefined") TargetDates32631 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32631)=="undefined") DisplayFormats32631 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32631)=="undefined") CountActives32631 = true; if (typeof(FinishMessages32631)=="undefined") FinishMessages32631 = ""; if (typeof(CountSteppers32631)!="number") CountSteppers32631 = -1; if (typeof(LeadingZeros32631)=="undefined") LeadingZeros32631 = true; CountSteppers32631 = Math.ceil(CountSteppers32631); if (CountSteppers32631 == 0) CountActives32631 = false; var SetTimeOutPeriods32631 = (Math.abs(CountSteppers32631)-1)*1000 + 990; puti(BackColors32631, ForeColors32631); var dthens32631 = new Date(TargetDates32631); var dnows32631 = new Date("08/11/2025 11:13:31 PM"); if(CountSteppers32631>0) ddiffs32631 = new Date(dnows32631-dthens32631); else ddiffs32631 = new Date(dthens32631-dnows32631); gsecss32631 = Math.floor(ddiffs32631.valueOf()/1000); CountBacks32631(gsecss32631);