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 (LeadingZeros31906 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31906(secs) { if (secs < 0) { document.getElementById("cntdwns31906").innerHTML = FinishMessages31906; return; } DisplayStrs31906 = DisplayFormats31906.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31906 = DisplayStrs31906.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31906 = DisplayStrs31906.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31906 = DisplayStrs31906.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31906").innerHTML = DisplayStrs31906; if (CountActives31906) //alert(SetTimeOutPeriods31906); setTimeout("CountBacks31906(" + (secs+CountSteppers31906) + ")", SetTimeOutPeriods31906); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31906)=="undefined") BackColors31906 = ""; if (typeof(ForeColors31906)=="undefined") ForeColors31906= "white"; if (typeof(TargetDates31906)=="undefined") TargetDates31906 = "03/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31906)=="undefined") DisplayFormats31906 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31906)=="undefined") CountActives31906 = true; if (typeof(FinishMessages31906)=="undefined") FinishMessages31906 = ""; if (typeof(CountSteppers31906)!="number") CountSteppers31906 = -1; if (typeof(LeadingZeros31906)=="undefined") LeadingZeros31906 = true; CountSteppers31906 = Math.ceil(CountSteppers31906); if (CountSteppers31906 == 0) CountActives31906 = false; var SetTimeOutPeriods31906 = (Math.abs(CountSteppers31906)-1)*1000 + 990; puti(BackColors31906, ForeColors31906); var dthens31906 = new Date(TargetDates31906); var dnows31906 = new Date("03/04/2025 7:50:31 AM"); if(CountSteppers31906>0) ddiffs31906 = new Date(dnows31906-dthens31906); else ddiffs31906 = new Date(dthens31906-dnows31906); gsecss31906 = Math.floor(ddiffs31906.valueOf()/1000); CountBacks31906(gsecss31906);