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 (LeadingZeros31589 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31589(secs) { if (secs < 0) { document.getElementById("cntdwns31589").innerHTML = FinishMessages31589; return; } DisplayStrs31589 = DisplayFormats31589.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31589 = DisplayStrs31589.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31589 = DisplayStrs31589.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31589 = DisplayStrs31589.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31589").innerHTML = DisplayStrs31589; if (CountActives31589) //alert(SetTimeOutPeriods31589); setTimeout("CountBacks31589(" + (secs+CountSteppers31589) + ")", SetTimeOutPeriods31589); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31589)=="undefined") BackColors31589 = ""; if (typeof(ForeColors31589)=="undefined") ForeColors31589= "white"; if (typeof(TargetDates31589)=="undefined") TargetDates31589 = "03/16/2025 10:00:00 PM"; if (typeof(DisplayFormats31589)=="undefined") DisplayFormats31589 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31589)=="undefined") CountActives31589 = true; if (typeof(FinishMessages31589)=="undefined") FinishMessages31589 = ""; if (typeof(CountSteppers31589)!="number") CountSteppers31589 = -1; if (typeof(LeadingZeros31589)=="undefined") LeadingZeros31589 = true; CountSteppers31589 = Math.ceil(CountSteppers31589); if (CountSteppers31589 == 0) CountActives31589 = false; var SetTimeOutPeriods31589 = (Math.abs(CountSteppers31589)-1)*1000 + 990; puti(BackColors31589, ForeColors31589); var dthens31589 = new Date(TargetDates31589); var dnows31589 = new Date("03/14/2025 9:41:21 AM"); if(CountSteppers31589>0) ddiffs31589 = new Date(dnows31589-dthens31589); else ddiffs31589 = new Date(dthens31589-dnows31589); gsecss31589 = Math.floor(ddiffs31589.valueOf()/1000); CountBacks31589(gsecss31589);