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 (LeadingZeros31935 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31935(secs) { if (secs < 0) { document.getElementById("cntdwns31935").innerHTML = FinishMessages31935; return; } DisplayStrs31935 = DisplayFormats31935.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31935 = DisplayStrs31935.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31935 = DisplayStrs31935.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31935 = DisplayStrs31935.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31935").innerHTML = DisplayStrs31935; if (CountActives31935) //alert(SetTimeOutPeriods31935); setTimeout("CountBacks31935(" + (secs+CountSteppers31935) + ")", SetTimeOutPeriods31935); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31935)=="undefined") BackColors31935 = ""; if (typeof(ForeColors31935)=="undefined") ForeColors31935= "white"; if (typeof(TargetDates31935)=="undefined") TargetDates31935 = "04/20/2025 11:00:00 PM"; if (typeof(DisplayFormats31935)=="undefined") DisplayFormats31935 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31935)=="undefined") CountActives31935 = true; if (typeof(FinishMessages31935)=="undefined") FinishMessages31935 = ""; if (typeof(CountSteppers31935)!="number") CountSteppers31935 = -1; if (typeof(LeadingZeros31935)=="undefined") LeadingZeros31935 = true; CountSteppers31935 = Math.ceil(CountSteppers31935); if (CountSteppers31935 == 0) CountActives31935 = false; var SetTimeOutPeriods31935 = (Math.abs(CountSteppers31935)-1)*1000 + 990; puti(BackColors31935, ForeColors31935); var dthens31935 = new Date(TargetDates31935); var dnows31935 = new Date("04/19/2025 12:56:28 PM"); if(CountSteppers31935>0) ddiffs31935 = new Date(dnows31935-dthens31935); else ddiffs31935 = new Date(dthens31935-dnows31935); gsecss31935 = Math.floor(ddiffs31935.valueOf()/1000); CountBacks31935(gsecss31935);