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 (LeadingZeros32723 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32723(secs) { if (secs < 0) { document.getElementById("cntdwns32723").innerHTML = FinishMessages32723; return; } DisplayStrs32723 = DisplayFormats32723.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32723 = DisplayStrs32723.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32723 = DisplayStrs32723.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32723 = DisplayStrs32723.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32723").innerHTML = DisplayStrs32723; if (CountActives32723) //alert(SetTimeOutPeriods32723); setTimeout("CountBacks32723(" + (secs+CountSteppers32723) + ")", SetTimeOutPeriods32723); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32723)=="undefined") BackColors32723 = ""; if (typeof(ForeColors32723)=="undefined") ForeColors32723= "white"; if (typeof(TargetDates32723)=="undefined") TargetDates32723 = "09/03/2025 8:00:00 AM"; if (typeof(DisplayFormats32723)=="undefined") DisplayFormats32723 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32723)=="undefined") CountActives32723 = true; if (typeof(FinishMessages32723)=="undefined") FinishMessages32723 = ""; if (typeof(CountSteppers32723)!="number") CountSteppers32723 = -1; if (typeof(LeadingZeros32723)=="undefined") LeadingZeros32723 = true; CountSteppers32723 = Math.ceil(CountSteppers32723); if (CountSteppers32723 == 0) CountActives32723 = false; var SetTimeOutPeriods32723 = (Math.abs(CountSteppers32723)-1)*1000 + 990; puti(BackColors32723, ForeColors32723); var dthens32723 = new Date(TargetDates32723); var dnows32723 = new Date("09/04/2025 11:39:06 AM"); if(CountSteppers32723>0) ddiffs32723 = new Date(dnows32723-dthens32723); else ddiffs32723 = new Date(dthens32723-dnows32723); gsecss32723 = Math.floor(ddiffs32723.valueOf()/1000); CountBacks32723(gsecss32723);