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 (LeadingZeros32559 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32559(secs) { if (secs < 0) { document.getElementById("cntdwns32559").innerHTML = FinishMessages32559; return; } DisplayStrs32559 = DisplayFormats32559.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32559 = DisplayStrs32559.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32559 = DisplayStrs32559.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32559 = DisplayStrs32559.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32559").innerHTML = DisplayStrs32559; if (CountActives32559) //alert(SetTimeOutPeriods32559); setTimeout("CountBacks32559(" + (secs+CountSteppers32559) + ")", SetTimeOutPeriods32559); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32559)=="undefined") BackColors32559 = ""; if (typeof(ForeColors32559)=="undefined") ForeColors32559= "white"; if (typeof(TargetDates32559)=="undefined") TargetDates32559 = "07/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32559)=="undefined") DisplayFormats32559 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32559)=="undefined") CountActives32559 = true; if (typeof(FinishMessages32559)=="undefined") FinishMessages32559 = ""; if (typeof(CountSteppers32559)!="number") CountSteppers32559 = -1; if (typeof(LeadingZeros32559)=="undefined") LeadingZeros32559 = true; CountSteppers32559 = Math.ceil(CountSteppers32559); if (CountSteppers32559 == 0) CountActives32559 = false; var SetTimeOutPeriods32559 = (Math.abs(CountSteppers32559)-1)*1000 + 990; puti(BackColors32559, ForeColors32559); var dthens32559 = new Date(TargetDates32559); var dnows32559 = new Date("07/16/2025 10:37:38 PM"); if(CountSteppers32559>0) ddiffs32559 = new Date(dnows32559-dthens32559); else ddiffs32559 = new Date(dthens32559-dnows32559); gsecss32559 = Math.floor(ddiffs32559.valueOf()/1000); CountBacks32559(gsecss32559);