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 (LeadingZeros31965 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31965(secs) { if (secs < 0) { document.getElementById("cntdwns31965").innerHTML = FinishMessages31965; return; } DisplayStrs31965 = DisplayFormats31965.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31965 = DisplayStrs31965.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31965 = DisplayStrs31965.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31965 = DisplayStrs31965.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31965").innerHTML = DisplayStrs31965; if (CountActives31965) //alert(SetTimeOutPeriods31965); setTimeout("CountBacks31965(" + (secs+CountSteppers31965) + ")", SetTimeOutPeriods31965); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31965)=="undefined") BackColors31965 = ""; if (typeof(ForeColors31965)=="undefined") ForeColors31965= "white"; if (typeof(TargetDates31965)=="undefined") TargetDates31965 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31965)=="undefined") DisplayFormats31965 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31965)=="undefined") CountActives31965 = true; if (typeof(FinishMessages31965)=="undefined") FinishMessages31965 = ""; if (typeof(CountSteppers31965)!="number") CountSteppers31965 = -1; if (typeof(LeadingZeros31965)=="undefined") LeadingZeros31965 = true; CountSteppers31965 = Math.ceil(CountSteppers31965); if (CountSteppers31965 == 0) CountActives31965 = false; var SetTimeOutPeriods31965 = (Math.abs(CountSteppers31965)-1)*1000 + 990; puti(BackColors31965, ForeColors31965); var dthens31965 = new Date(TargetDates31965); var dnows31965 = new Date("03/29/2025 4:29:33 PM"); if(CountSteppers31965>0) ddiffs31965 = new Date(dnows31965-dthens31965); else ddiffs31965 = new Date(dthens31965-dnows31965); gsecss31965 = Math.floor(ddiffs31965.valueOf()/1000); CountBacks31965(gsecss31965);