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 (LeadingZeros32421 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32421(secs) { if (secs < 0) { document.getElementById("cntdwns32421").innerHTML = FinishMessages32421; return; } DisplayStrs32421 = DisplayFormats32421.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32421 = DisplayStrs32421.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32421 = DisplayStrs32421.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32421 = DisplayStrs32421.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32421").innerHTML = DisplayStrs32421; if (CountActives32421) //alert(SetTimeOutPeriods32421); setTimeout("CountBacks32421(" + (secs+CountSteppers32421) + ")", SetTimeOutPeriods32421); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32421)=="undefined") BackColors32421 = ""; if (typeof(ForeColors32421)=="undefined") ForeColors32421= "white"; if (typeof(TargetDates32421)=="undefined") TargetDates32421 = "06/26/2025 11:00:00 PM"; if (typeof(DisplayFormats32421)=="undefined") DisplayFormats32421 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32421)=="undefined") CountActives32421 = true; if (typeof(FinishMessages32421)=="undefined") FinishMessages32421 = ""; if (typeof(CountSteppers32421)!="number") CountSteppers32421 = -1; if (typeof(LeadingZeros32421)=="undefined") LeadingZeros32421 = true; CountSteppers32421 = Math.ceil(CountSteppers32421); if (CountSteppers32421 == 0) CountActives32421 = false; var SetTimeOutPeriods32421 = (Math.abs(CountSteppers32421)-1)*1000 + 990; puti(BackColors32421, ForeColors32421); var dthens32421 = new Date(TargetDates32421); var dnows32421 = new Date("07/02/2025 3:17:56 AM"); if(CountSteppers32421>0) ddiffs32421 = new Date(dnows32421-dthens32421); else ddiffs32421 = new Date(dthens32421-dnows32421); gsecss32421 = Math.floor(ddiffs32421.valueOf()/1000); CountBacks32421(gsecss32421);