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 (LeadingZeros31976 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31976(secs) { if (secs < 0) { document.getElementById("cntdwns31976").innerHTML = FinishMessages31976; return; } DisplayStrs31976 = DisplayFormats31976.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31976 = DisplayStrs31976.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31976 = DisplayStrs31976.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31976 = DisplayStrs31976.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31976").innerHTML = DisplayStrs31976; if (CountActives31976) //alert(SetTimeOutPeriods31976); setTimeout("CountBacks31976(" + (secs+CountSteppers31976) + ")", SetTimeOutPeriods31976); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31976)=="undefined") BackColors31976 = ""; if (typeof(ForeColors31976)=="undefined") ForeColors31976= "white"; if (typeof(TargetDates31976)=="undefined") TargetDates31976 = "04/28/2025 11:00:00 PM"; if (typeof(DisplayFormats31976)=="undefined") DisplayFormats31976 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31976)=="undefined") CountActives31976 = true; if (typeof(FinishMessages31976)=="undefined") FinishMessages31976 = ""; if (typeof(CountSteppers31976)!="number") CountSteppers31976 = -1; if (typeof(LeadingZeros31976)=="undefined") LeadingZeros31976 = true; CountSteppers31976 = Math.ceil(CountSteppers31976); if (CountSteppers31976 == 0) CountActives31976 = false; var SetTimeOutPeriods31976 = (Math.abs(CountSteppers31976)-1)*1000 + 990; puti(BackColors31976, ForeColors31976); var dthens31976 = new Date(TargetDates31976); var dnows31976 = new Date("05/09/2025 4:10:02 PM"); if(CountSteppers31976>0) ddiffs31976 = new Date(dnows31976-dthens31976); else ddiffs31976 = new Date(dthens31976-dnows31976); gsecss31976 = Math.floor(ddiffs31976.valueOf()/1000); CountBacks31976(gsecss31976);