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 (LeadingZeros31550 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31550(secs) { if (secs < 0) { document.getElementById("cntdwns31550").innerHTML = FinishMessages31550; return; } DisplayStrs31550 = DisplayFormats31550.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31550 = DisplayStrs31550.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31550 = DisplayStrs31550.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31550 = DisplayStrs31550.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31550").innerHTML = DisplayStrs31550; if (CountActives31550) //alert(SetTimeOutPeriods31550); setTimeout("CountBacks31550(" + (secs+CountSteppers31550) + ")", SetTimeOutPeriods31550); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31550)=="undefined") BackColors31550 = ""; if (typeof(ForeColors31550)=="undefined") ForeColors31550= "white"; if (typeof(TargetDates31550)=="undefined") TargetDates31550 = "01/27/2025 9:00:00 PM"; if (typeof(DisplayFormats31550)=="undefined") DisplayFormats31550 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31550)=="undefined") CountActives31550 = true; if (typeof(FinishMessages31550)=="undefined") FinishMessages31550 = ""; if (typeof(CountSteppers31550)!="number") CountSteppers31550 = -1; if (typeof(LeadingZeros31550)=="undefined") LeadingZeros31550 = true; CountSteppers31550 = Math.ceil(CountSteppers31550); if (CountSteppers31550 == 0) CountActives31550 = false; var SetTimeOutPeriods31550 = (Math.abs(CountSteppers31550)-1)*1000 + 990; puti(BackColors31550, ForeColors31550); var dthens31550 = new Date(TargetDates31550); var dnows31550 = new Date("02/05/2025 10:44:31 AM"); if(CountSteppers31550>0) ddiffs31550 = new Date(dnows31550-dthens31550); else ddiffs31550 = new Date(dthens31550-dnows31550); gsecss31550 = Math.floor(ddiffs31550.valueOf()/1000); CountBacks31550(gsecss31550);