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 (LeadingZeros32525 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32525(secs) { if (secs < 0) { document.getElementById("cntdwns32525").innerHTML = FinishMessages32525; return; } DisplayStrs32525 = DisplayFormats32525.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32525 = DisplayStrs32525.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32525 = DisplayStrs32525.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32525 = DisplayStrs32525.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32525").innerHTML = DisplayStrs32525; if (CountActives32525) //alert(SetTimeOutPeriods32525); setTimeout("CountBacks32525(" + (secs+CountSteppers32525) + ")", SetTimeOutPeriods32525); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32525)=="undefined") BackColors32525 = ""; if (typeof(ForeColors32525)=="undefined") ForeColors32525= "white"; if (typeof(TargetDates32525)=="undefined") TargetDates32525 = "07/19/2025 10:00:00 PM"; if (typeof(DisplayFormats32525)=="undefined") DisplayFormats32525 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32525)=="undefined") CountActives32525 = true; if (typeof(FinishMessages32525)=="undefined") FinishMessages32525 = ""; if (typeof(CountSteppers32525)!="number") CountSteppers32525 = -1; if (typeof(LeadingZeros32525)=="undefined") LeadingZeros32525 = true; CountSteppers32525 = Math.ceil(CountSteppers32525); if (CountSteppers32525 == 0) CountActives32525 = false; var SetTimeOutPeriods32525 = (Math.abs(CountSteppers32525)-1)*1000 + 990; puti(BackColors32525, ForeColors32525); var dthens32525 = new Date(TargetDates32525); var dnows32525 = new Date("07/17/2025 4:25:50 PM"); if(CountSteppers32525>0) ddiffs32525 = new Date(dnows32525-dthens32525); else ddiffs32525 = new Date(dthens32525-dnows32525); gsecss32525 = Math.floor(ddiffs32525.valueOf()/1000); CountBacks32525(gsecss32525);