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 (LeadingZeros32641 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32641(secs) { if (secs < 0) { document.getElementById("cntdwns32641").innerHTML = FinishMessages32641; return; } DisplayStrs32641 = DisplayFormats32641.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32641 = DisplayStrs32641.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32641 = DisplayStrs32641.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32641 = DisplayStrs32641.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32641").innerHTML = DisplayStrs32641; if (CountActives32641) //alert(SetTimeOutPeriods32641); setTimeout("CountBacks32641(" + (secs+CountSteppers32641) + ")", SetTimeOutPeriods32641); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32641)=="undefined") BackColors32641 = ""; if (typeof(ForeColors32641)=="undefined") ForeColors32641= "white"; if (typeof(TargetDates32641)=="undefined") TargetDates32641 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32641)=="undefined") DisplayFormats32641 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32641)=="undefined") CountActives32641 = true; if (typeof(FinishMessages32641)=="undefined") FinishMessages32641 = ""; if (typeof(CountSteppers32641)!="number") CountSteppers32641 = -1; if (typeof(LeadingZeros32641)=="undefined") LeadingZeros32641 = true; CountSteppers32641 = Math.ceil(CountSteppers32641); if (CountSteppers32641 == 0) CountActives32641 = false; var SetTimeOutPeriods32641 = (Math.abs(CountSteppers32641)-1)*1000 + 990; puti(BackColors32641, ForeColors32641); var dthens32641 = new Date(TargetDates32641); var dnows32641 = new Date("08/11/2025 9:27:20 PM"); if(CountSteppers32641>0) ddiffs32641 = new Date(dnows32641-dthens32641); else ddiffs32641 = new Date(dthens32641-dnows32641); gsecss32641 = Math.floor(ddiffs32641.valueOf()/1000); CountBacks32641(gsecss32641);