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 (LeadingZeros32539 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32539(secs) { if (secs < 0) { document.getElementById("cntdwns32539").innerHTML = FinishMessages32539; return; } DisplayStrs32539 = DisplayFormats32539.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32539 = DisplayStrs32539.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32539 = DisplayStrs32539.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32539 = DisplayStrs32539.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32539").innerHTML = DisplayStrs32539; if (CountActives32539) //alert(SetTimeOutPeriods32539); setTimeout("CountBacks32539(" + (secs+CountSteppers32539) + ")", SetTimeOutPeriods32539); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32539)=="undefined") BackColors32539 = ""; if (typeof(ForeColors32539)=="undefined") ForeColors32539= "white"; if (typeof(TargetDates32539)=="undefined") TargetDates32539 = "07/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32539)=="undefined") DisplayFormats32539 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32539)=="undefined") CountActives32539 = true; if (typeof(FinishMessages32539)=="undefined") FinishMessages32539 = ""; if (typeof(CountSteppers32539)!="number") CountSteppers32539 = -1; if (typeof(LeadingZeros32539)=="undefined") LeadingZeros32539 = true; CountSteppers32539 = Math.ceil(CountSteppers32539); if (CountSteppers32539 == 0) CountActives32539 = false; var SetTimeOutPeriods32539 = (Math.abs(CountSteppers32539)-1)*1000 + 990; puti(BackColors32539, ForeColors32539); var dthens32539 = new Date(TargetDates32539); var dnows32539 = new Date("07/16/2025 10:37:38 PM"); if(CountSteppers32539>0) ddiffs32539 = new Date(dnows32539-dthens32539); else ddiffs32539 = new Date(dthens32539-dnows32539); gsecss32539 = Math.floor(ddiffs32539.valueOf()/1000); CountBacks32539(gsecss32539);