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 (LeadingZeros32197 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32197(secs) { if (secs < 0) { document.getElementById("cntdwns32197").innerHTML = FinishMessages32197; return; } DisplayStrs32197 = DisplayFormats32197.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32197 = DisplayStrs32197.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32197 = DisplayStrs32197.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32197 = DisplayStrs32197.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32197").innerHTML = DisplayStrs32197; if (CountActives32197) //alert(SetTimeOutPeriods32197); setTimeout("CountBacks32197(" + (secs+CountSteppers32197) + ")", SetTimeOutPeriods32197); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32197)=="undefined") BackColors32197 = ""; if (typeof(ForeColors32197)=="undefined") ForeColors32197= "white"; if (typeof(TargetDates32197)=="undefined") TargetDates32197 = "06/27/2025 10:00:00 PM"; if (typeof(DisplayFormats32197)=="undefined") DisplayFormats32197 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32197)=="undefined") CountActives32197 = true; if (typeof(FinishMessages32197)=="undefined") FinishMessages32197 = ""; if (typeof(CountSteppers32197)!="number") CountSteppers32197 = -1; if (typeof(LeadingZeros32197)=="undefined") LeadingZeros32197 = true; CountSteppers32197 = Math.ceil(CountSteppers32197); if (CountSteppers32197 == 0) CountActives32197 = false; var SetTimeOutPeriods32197 = (Math.abs(CountSteppers32197)-1)*1000 + 990; puti(BackColors32197, ForeColors32197); var dthens32197 = new Date(TargetDates32197); var dnows32197 = new Date("06/26/2025 2:12:31 AM"); if(CountSteppers32197>0) ddiffs32197 = new Date(dnows32197-dthens32197); else ddiffs32197 = new Date(dthens32197-dnows32197); gsecss32197 = Math.floor(ddiffs32197.valueOf()/1000); CountBacks32197(gsecss32197);