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 (LeadingZeros31426 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31426(secs) { if (secs < 0) { document.getElementById("cntdwns31426").innerHTML = FinishMessages31426; return; } DisplayStrs31426 = DisplayFormats31426.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31426 = DisplayStrs31426.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31426 = DisplayStrs31426.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31426 = DisplayStrs31426.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31426").innerHTML = DisplayStrs31426; if (CountActives31426) //alert(SetTimeOutPeriods31426); setTimeout("CountBacks31426(" + (secs+CountSteppers31426) + ")", SetTimeOutPeriods31426); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31426)=="undefined") BackColors31426 = ""; if (typeof(ForeColors31426)=="undefined") ForeColors31426= "white"; if (typeof(TargetDates31426)=="undefined") TargetDates31426 = "03/17/2025 10:00:00 PM"; if (typeof(DisplayFormats31426)=="undefined") DisplayFormats31426 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31426)=="undefined") CountActives31426 = true; if (typeof(FinishMessages31426)=="undefined") FinishMessages31426 = ""; if (typeof(CountSteppers31426)!="number") CountSteppers31426 = -1; if (typeof(LeadingZeros31426)=="undefined") LeadingZeros31426 = true; CountSteppers31426 = Math.ceil(CountSteppers31426); if (CountSteppers31426 == 0) CountActives31426 = false; var SetTimeOutPeriods31426 = (Math.abs(CountSteppers31426)-1)*1000 + 990; puti(BackColors31426, ForeColors31426); var dthens31426 = new Date(TargetDates31426); var dnows31426 = new Date("03/14/2025 3:50:53 PM"); if(CountSteppers31426>0) ddiffs31426 = new Date(dnows31426-dthens31426); else ddiffs31426 = new Date(dthens31426-dnows31426); gsecss31426 = Math.floor(ddiffs31426.valueOf()/1000); CountBacks31426(gsecss31426);