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 (LeadingZeros32545 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32545(secs) { if (secs < 0) { document.getElementById("cntdwns32545").innerHTML = FinishMessages32545; return; } DisplayStrs32545 = DisplayFormats32545.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32545 = DisplayStrs32545.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32545 = DisplayStrs32545.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32545 = DisplayStrs32545.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32545").innerHTML = DisplayStrs32545; if (CountActives32545) //alert(SetTimeOutPeriods32545); setTimeout("CountBacks32545(" + (secs+CountSteppers32545) + ")", SetTimeOutPeriods32545); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32545)=="undefined") BackColors32545 = ""; if (typeof(ForeColors32545)=="undefined") ForeColors32545= "white"; if (typeof(TargetDates32545)=="undefined") TargetDates32545 = "07/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32545)=="undefined") DisplayFormats32545 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32545)=="undefined") CountActives32545 = true; if (typeof(FinishMessages32545)=="undefined") FinishMessages32545 = ""; if (typeof(CountSteppers32545)!="number") CountSteppers32545 = -1; if (typeof(LeadingZeros32545)=="undefined") LeadingZeros32545 = true; CountSteppers32545 = Math.ceil(CountSteppers32545); if (CountSteppers32545 == 0) CountActives32545 = false; var SetTimeOutPeriods32545 = (Math.abs(CountSteppers32545)-1)*1000 + 990; puti(BackColors32545, ForeColors32545); var dthens32545 = new Date(TargetDates32545); var dnows32545 = new Date("07/22/2025 12:21:39 AM"); if(CountSteppers32545>0) ddiffs32545 = new Date(dnows32545-dthens32545); else ddiffs32545 = new Date(dthens32545-dnows32545); gsecss32545 = Math.floor(ddiffs32545.valueOf()/1000); CountBacks32545(gsecss32545);