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 (LeadingZeros32531 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32531(secs) { if (secs < 0) { document.getElementById("cntdwns32531").innerHTML = FinishMessages32531; return; } DisplayStrs32531 = DisplayFormats32531.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32531 = DisplayStrs32531.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32531 = DisplayStrs32531.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32531 = DisplayStrs32531.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32531").innerHTML = DisplayStrs32531; if (CountActives32531) //alert(SetTimeOutPeriods32531); setTimeout("CountBacks32531(" + (secs+CountSteppers32531) + ")", SetTimeOutPeriods32531); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32531)=="undefined") BackColors32531 = ""; if (typeof(ForeColors32531)=="undefined") ForeColors32531= "white"; if (typeof(TargetDates32531)=="undefined") TargetDates32531 = "07/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32531)=="undefined") DisplayFormats32531 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32531)=="undefined") CountActives32531 = true; if (typeof(FinishMessages32531)=="undefined") FinishMessages32531 = ""; if (typeof(CountSteppers32531)!="number") CountSteppers32531 = -1; if (typeof(LeadingZeros32531)=="undefined") LeadingZeros32531 = true; CountSteppers32531 = Math.ceil(CountSteppers32531); if (CountSteppers32531 == 0) CountActives32531 = false; var SetTimeOutPeriods32531 = (Math.abs(CountSteppers32531)-1)*1000 + 990; puti(BackColors32531, ForeColors32531); var dthens32531 = new Date(TargetDates32531); var dnows32531 = new Date("07/02/2025 12:59:25 PM"); if(CountSteppers32531>0) ddiffs32531 = new Date(dnows32531-dthens32531); else ddiffs32531 = new Date(dthens32531-dnows32531); gsecss32531 = Math.floor(ddiffs32531.valueOf()/1000); CountBacks32531(gsecss32531);