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 (LeadingZeros31939 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31939(secs) { if (secs < 0) { document.getElementById("cntdwns31939").innerHTML = FinishMessages31939; return; } DisplayStrs31939 = DisplayFormats31939.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31939 = DisplayStrs31939.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31939 = DisplayStrs31939.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31939 = DisplayStrs31939.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31939").innerHTML = DisplayStrs31939; if (CountActives31939) //alert(SetTimeOutPeriods31939); setTimeout("CountBacks31939(" + (secs+CountSteppers31939) + ")", SetTimeOutPeriods31939); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31939)=="undefined") BackColors31939 = ""; if (typeof(ForeColors31939)=="undefined") ForeColors31939= "white"; if (typeof(TargetDates31939)=="undefined") TargetDates31939 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31939)=="undefined") DisplayFormats31939 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31939)=="undefined") CountActives31939 = true; if (typeof(FinishMessages31939)=="undefined") FinishMessages31939 = ""; if (typeof(CountSteppers31939)!="number") CountSteppers31939 = -1; if (typeof(LeadingZeros31939)=="undefined") LeadingZeros31939 = true; CountSteppers31939 = Math.ceil(CountSteppers31939); if (CountSteppers31939 == 0) CountActives31939 = false; var SetTimeOutPeriods31939 = (Math.abs(CountSteppers31939)-1)*1000 + 990; puti(BackColors31939, ForeColors31939); var dthens31939 = new Date(TargetDates31939); var dnows31939 = new Date("03/29/2025 3:13:31 PM"); if(CountSteppers31939>0) ddiffs31939 = new Date(dnows31939-dthens31939); else ddiffs31939 = new Date(dthens31939-dnows31939); gsecss31939 = Math.floor(ddiffs31939.valueOf()/1000); CountBacks31939(gsecss31939);