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 (LeadingZeros32580 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32580(secs) { if (secs < 0) { document.getElementById("cntdwns32580").innerHTML = FinishMessages32580; return; } DisplayStrs32580 = DisplayFormats32580.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32580 = DisplayStrs32580.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32580 = DisplayStrs32580.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32580 = DisplayStrs32580.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32580").innerHTML = DisplayStrs32580; if (CountActives32580) //alert(SetTimeOutPeriods32580); setTimeout("CountBacks32580(" + (secs+CountSteppers32580) + ")", SetTimeOutPeriods32580); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32580)=="undefined") BackColors32580 = ""; if (typeof(ForeColors32580)=="undefined") ForeColors32580= "white"; if (typeof(TargetDates32580)=="undefined") TargetDates32580 = "07/23/2025 10:00:00 PM"; if (typeof(DisplayFormats32580)=="undefined") DisplayFormats32580 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32580)=="undefined") CountActives32580 = true; if (typeof(FinishMessages32580)=="undefined") FinishMessages32580 = ""; if (typeof(CountSteppers32580)!="number") CountSteppers32580 = -1; if (typeof(LeadingZeros32580)=="undefined") LeadingZeros32580 = true; CountSteppers32580 = Math.ceil(CountSteppers32580); if (CountSteppers32580 == 0) CountActives32580 = false; var SetTimeOutPeriods32580 = (Math.abs(CountSteppers32580)-1)*1000 + 990; puti(BackColors32580, ForeColors32580); var dthens32580 = new Date(TargetDates32580); var dnows32580 = new Date("07/21/2025 10:52:41 PM"); if(CountSteppers32580>0) ddiffs32580 = new Date(dnows32580-dthens32580); else ddiffs32580 = new Date(dthens32580-dnows32580); gsecss32580 = Math.floor(ddiffs32580.valueOf()/1000); CountBacks32580(gsecss32580);