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 (LeadingZeros32681 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32681(secs) { if (secs < 0) { document.getElementById("cntdwns32681").innerHTML = FinishMessages32681; return; } DisplayStrs32681 = DisplayFormats32681.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32681 = DisplayStrs32681.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32681 = DisplayStrs32681.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32681 = DisplayStrs32681.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32681").innerHTML = DisplayStrs32681; if (CountActives32681) //alert(SetTimeOutPeriods32681); setTimeout("CountBacks32681(" + (secs+CountSteppers32681) + ")", SetTimeOutPeriods32681); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32681)=="undefined") BackColors32681 = ""; if (typeof(ForeColors32681)=="undefined") ForeColors32681= "white"; if (typeof(TargetDates32681)=="undefined") TargetDates32681 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32681)=="undefined") DisplayFormats32681 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32681)=="undefined") CountActives32681 = true; if (typeof(FinishMessages32681)=="undefined") FinishMessages32681 = ""; if (typeof(CountSteppers32681)!="number") CountSteppers32681 = -1; if (typeof(LeadingZeros32681)=="undefined") LeadingZeros32681 = true; CountSteppers32681 = Math.ceil(CountSteppers32681); if (CountSteppers32681 == 0) CountActives32681 = false; var SetTimeOutPeriods32681 = (Math.abs(CountSteppers32681)-1)*1000 + 990; puti(BackColors32681, ForeColors32681); var dthens32681 = new Date(TargetDates32681); var dnows32681 = new Date("08/12/2025 2:20:29 PM"); if(CountSteppers32681>0) ddiffs32681 = new Date(dnows32681-dthens32681); else ddiffs32681 = new Date(dthens32681-dnows32681); gsecss32681 = Math.floor(ddiffs32681.valueOf()/1000); CountBacks32681(gsecss32681);