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 (LeadingZeros31868 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31868(secs) { if (secs < 0) { document.getElementById("cntdwns31868").innerHTML = FinishMessages31868; return; } DisplayStrs31868 = DisplayFormats31868.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31868 = DisplayStrs31868.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31868 = DisplayStrs31868.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31868 = DisplayStrs31868.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31868").innerHTML = DisplayStrs31868; if (CountActives31868) //alert(SetTimeOutPeriods31868); setTimeout("CountBacks31868(" + (secs+CountSteppers31868) + ")", SetTimeOutPeriods31868); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31868)=="undefined") BackColors31868 = ""; if (typeof(ForeColors31868)=="undefined") ForeColors31868= "white"; if (typeof(TargetDates31868)=="undefined") TargetDates31868 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31868)=="undefined") DisplayFormats31868 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31868)=="undefined") CountActives31868 = true; if (typeof(FinishMessages31868)=="undefined") FinishMessages31868 = ""; if (typeof(CountSteppers31868)!="number") CountSteppers31868 = -1; if (typeof(LeadingZeros31868)=="undefined") LeadingZeros31868 = true; CountSteppers31868 = Math.ceil(CountSteppers31868); if (CountSteppers31868 == 0) CountActives31868 = false; var SetTimeOutPeriods31868 = (Math.abs(CountSteppers31868)-1)*1000 + 990; puti(BackColors31868, ForeColors31868); var dthens31868 = new Date(TargetDates31868); var dnows31868 = new Date("03/29/2025 3:13:30 PM"); if(CountSteppers31868>0) ddiffs31868 = new Date(dnows31868-dthens31868); else ddiffs31868 = new Date(dthens31868-dnows31868); gsecss31868 = Math.floor(ddiffs31868.valueOf()/1000); CountBacks31868(gsecss31868);