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 (LeadingZeros32485 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32485(secs) { if (secs < 0) { document.getElementById("cntdwns32485").innerHTML = FinishMessages32485; return; } DisplayStrs32485 = DisplayFormats32485.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32485 = DisplayStrs32485.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32485 = DisplayStrs32485.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32485 = DisplayStrs32485.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32485").innerHTML = DisplayStrs32485; if (CountActives32485) //alert(SetTimeOutPeriods32485); setTimeout("CountBacks32485(" + (secs+CountSteppers32485) + ")", SetTimeOutPeriods32485); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32485)=="undefined") BackColors32485 = ""; if (typeof(ForeColors32485)=="undefined") ForeColors32485= "white"; if (typeof(TargetDates32485)=="undefined") TargetDates32485 = "06/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32485)=="undefined") DisplayFormats32485 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32485)=="undefined") CountActives32485 = true; if (typeof(FinishMessages32485)=="undefined") FinishMessages32485 = ""; if (typeof(CountSteppers32485)!="number") CountSteppers32485 = -1; if (typeof(LeadingZeros32485)=="undefined") LeadingZeros32485 = true; CountSteppers32485 = Math.ceil(CountSteppers32485); if (CountSteppers32485 == 0) CountActives32485 = false; var SetTimeOutPeriods32485 = (Math.abs(CountSteppers32485)-1)*1000 + 990; puti(BackColors32485, ForeColors32485); var dthens32485 = new Date(TargetDates32485); var dnows32485 = new Date("06/21/2025 12:38:37 PM"); if(CountSteppers32485>0) ddiffs32485 = new Date(dnows32485-dthens32485); else ddiffs32485 = new Date(dthens32485-dnows32485); gsecss32485 = Math.floor(ddiffs32485.valueOf()/1000); CountBacks32485(gsecss32485);