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 (LeadingZeros32647 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32647(secs) { if (secs < 0) { document.getElementById("cntdwns32647").innerHTML = FinishMessages32647; return; } DisplayStrs32647 = DisplayFormats32647.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32647 = DisplayStrs32647.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32647 = DisplayStrs32647.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32647 = DisplayStrs32647.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32647").innerHTML = DisplayStrs32647; if (CountActives32647) //alert(SetTimeOutPeriods32647); setTimeout("CountBacks32647(" + (secs+CountSteppers32647) + ")", SetTimeOutPeriods32647); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32647)=="undefined") BackColors32647 = ""; if (typeof(ForeColors32647)=="undefined") ForeColors32647= "white"; if (typeof(TargetDates32647)=="undefined") TargetDates32647 = "08/29/2025 10:00:00 PM"; if (typeof(DisplayFormats32647)=="undefined") DisplayFormats32647 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32647)=="undefined") CountActives32647 = true; if (typeof(FinishMessages32647)=="undefined") FinishMessages32647 = ""; if (typeof(CountSteppers32647)!="number") CountSteppers32647 = -1; if (typeof(LeadingZeros32647)=="undefined") LeadingZeros32647 = true; CountSteppers32647 = Math.ceil(CountSteppers32647); if (CountSteppers32647 == 0) CountActives32647 = false; var SetTimeOutPeriods32647 = (Math.abs(CountSteppers32647)-1)*1000 + 990; puti(BackColors32647, ForeColors32647); var dthens32647 = new Date(TargetDates32647); var dnows32647 = new Date("08/28/2025 1:25:27 AM"); if(CountSteppers32647>0) ddiffs32647 = new Date(dnows32647-dthens32647); else ddiffs32647 = new Date(dthens32647-dnows32647); gsecss32647 = Math.floor(ddiffs32647.valueOf()/1000); CountBacks32647(gsecss32647);