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 (LeadingZeros31771 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31771(secs) { if (secs < 0) { document.getElementById("cntdwns31771").innerHTML = FinishMessages31771; return; } DisplayStrs31771 = DisplayFormats31771.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31771 = DisplayStrs31771.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31771 = DisplayStrs31771.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31771 = DisplayStrs31771.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31771").innerHTML = DisplayStrs31771; if (CountActives31771) //alert(SetTimeOutPeriods31771); setTimeout("CountBacks31771(" + (secs+CountSteppers31771) + ")", SetTimeOutPeriods31771); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31771)=="undefined") BackColors31771 = ""; if (typeof(ForeColors31771)=="undefined") ForeColors31771= "white"; if (typeof(TargetDates31771)=="undefined") TargetDates31771 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31771)=="undefined") DisplayFormats31771 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31771)=="undefined") CountActives31771 = true; if (typeof(FinishMessages31771)=="undefined") FinishMessages31771 = ""; if (typeof(CountSteppers31771)!="number") CountSteppers31771 = -1; if (typeof(LeadingZeros31771)=="undefined") LeadingZeros31771 = true; CountSteppers31771 = Math.ceil(CountSteppers31771); if (CountSteppers31771 == 0) CountActives31771 = false; var SetTimeOutPeriods31771 = (Math.abs(CountSteppers31771)-1)*1000 + 990; puti(BackColors31771, ForeColors31771); var dthens31771 = new Date(TargetDates31771); var dnows31771 = new Date("01/30/2025 3:35:50 PM"); if(CountSteppers31771>0) ddiffs31771 = new Date(dnows31771-dthens31771); else ddiffs31771 = new Date(dthens31771-dnows31771); gsecss31771 = Math.floor(ddiffs31771.valueOf()/1000); CountBacks31771(gsecss31771);