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 (LeadingZeros32672 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32672(secs) { if (secs < 0) { document.getElementById("cntdwns32672").innerHTML = FinishMessages32672; return; } DisplayStrs32672 = DisplayFormats32672.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32672 = DisplayStrs32672.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32672 = DisplayStrs32672.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32672 = DisplayStrs32672.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32672").innerHTML = DisplayStrs32672; if (CountActives32672) //alert(SetTimeOutPeriods32672); setTimeout("CountBacks32672(" + (secs+CountSteppers32672) + ")", SetTimeOutPeriods32672); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32672)=="undefined") BackColors32672 = ""; if (typeof(ForeColors32672)=="undefined") ForeColors32672= "white"; if (typeof(TargetDates32672)=="undefined") TargetDates32672 = "08/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32672)=="undefined") DisplayFormats32672 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32672)=="undefined") CountActives32672 = true; if (typeof(FinishMessages32672)=="undefined") FinishMessages32672 = ""; if (typeof(CountSteppers32672)!="number") CountSteppers32672 = -1; if (typeof(LeadingZeros32672)=="undefined") LeadingZeros32672 = true; CountSteppers32672 = Math.ceil(CountSteppers32672); if (CountSteppers32672 == 0) CountActives32672 = false; var SetTimeOutPeriods32672 = (Math.abs(CountSteppers32672)-1)*1000 + 990; puti(BackColors32672, ForeColors32672); var dthens32672 = new Date(TargetDates32672); var dnows32672 = new Date("08/11/2025 9:27:21 PM"); if(CountSteppers32672>0) ddiffs32672 = new Date(dnows32672-dthens32672); else ddiffs32672 = new Date(dthens32672-dnows32672); gsecss32672 = Math.floor(ddiffs32672.valueOf()/1000); CountBacks32672(gsecss32672);