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 (LeadingZeros31429 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31429(secs) { if (secs < 0) { document.getElementById("cntdwns31429").innerHTML = FinishMessages31429; return; } DisplayStrs31429 = DisplayFormats31429.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31429 = DisplayStrs31429.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31429 = DisplayStrs31429.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31429 = DisplayStrs31429.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31429").innerHTML = DisplayStrs31429; if (CountActives31429) //alert(SetTimeOutPeriods31429); setTimeout("CountBacks31429(" + (secs+CountSteppers31429) + ")", SetTimeOutPeriods31429); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31429)=="undefined") BackColors31429 = ""; if (typeof(ForeColors31429)=="undefined") ForeColors31429= "white"; if (typeof(TargetDates31429)=="undefined") TargetDates31429 = "01/19/2025 10:00:00 PM"; if (typeof(DisplayFormats31429)=="undefined") DisplayFormats31429 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31429)=="undefined") CountActives31429 = true; if (typeof(FinishMessages31429)=="undefined") FinishMessages31429 = ""; if (typeof(CountSteppers31429)!="number") CountSteppers31429 = -1; if (typeof(LeadingZeros31429)=="undefined") LeadingZeros31429 = true; CountSteppers31429 = Math.ceil(CountSteppers31429); if (CountSteppers31429 == 0) CountActives31429 = false; var SetTimeOutPeriods31429 = (Math.abs(CountSteppers31429)-1)*1000 + 990; puti(BackColors31429, ForeColors31429); var dthens31429 = new Date(TargetDates31429); var dnows31429 = new Date("02/05/2025 4:58:26 AM"); if(CountSteppers31429>0) ddiffs31429 = new Date(dnows31429-dthens31429); else ddiffs31429 = new Date(dthens31429-dnows31429); gsecss31429 = Math.floor(ddiffs31429.valueOf()/1000); CountBacks31429(gsecss31429);