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 (LeadingZeros32955 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32955(secs) { if (secs < 0) { document.getElementById("cntdwns32955").innerHTML = FinishMessages32955; return; } DisplayStrs32955 = DisplayFormats32955.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32955 = DisplayStrs32955.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32955 = DisplayStrs32955.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32955 = DisplayStrs32955.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32955").innerHTML = DisplayStrs32955; if (CountActives32955) //alert(SetTimeOutPeriods32955); setTimeout("CountBacks32955(" + (secs+CountSteppers32955) + ")", SetTimeOutPeriods32955); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32955)=="undefined") BackColors32955 = ""; if (typeof(ForeColors32955)=="undefined") ForeColors32955= "white"; if (typeof(TargetDates32955)=="undefined") TargetDates32955 = "10/20/2025 10:00:00 PM"; if (typeof(DisplayFormats32955)=="undefined") DisplayFormats32955 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32955)=="undefined") CountActives32955 = true; if (typeof(FinishMessages32955)=="undefined") FinishMessages32955 = ""; if (typeof(CountSteppers32955)!="number") CountSteppers32955 = -1; if (typeof(LeadingZeros32955)=="undefined") LeadingZeros32955 = true; CountSteppers32955 = Math.ceil(CountSteppers32955); if (CountSteppers32955 == 0) CountActives32955 = false; var SetTimeOutPeriods32955 = (Math.abs(CountSteppers32955)-1)*1000 + 990; puti(BackColors32955, ForeColors32955); var dthens32955 = new Date(TargetDates32955); var dnows32955 = new Date("10/17/2025 1:39:27 PM"); if(CountSteppers32955>0) ddiffs32955 = new Date(dnows32955-dthens32955); else ddiffs32955 = new Date(dthens32955-dnows32955); gsecss32955 = Math.floor(ddiffs32955.valueOf()/1000); CountBacks32955(gsecss32955);