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 (LeadingZeros31966 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31966(secs) { if (secs < 0) { document.getElementById("cntdwns31966").innerHTML = FinishMessages31966; return; } DisplayStrs31966 = DisplayFormats31966.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31966 = DisplayStrs31966.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31966 = DisplayStrs31966.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31966 = DisplayStrs31966.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31966").innerHTML = DisplayStrs31966; if (CountActives31966) //alert(SetTimeOutPeriods31966); setTimeout("CountBacks31966(" + (secs+CountSteppers31966) + ")", SetTimeOutPeriods31966); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31966)=="undefined") BackColors31966 = ""; if (typeof(ForeColors31966)=="undefined") ForeColors31966= "white"; if (typeof(TargetDates31966)=="undefined") TargetDates31966 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31966)=="undefined") DisplayFormats31966 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31966)=="undefined") CountActives31966 = true; if (typeof(FinishMessages31966)=="undefined") FinishMessages31966 = ""; if (typeof(CountSteppers31966)!="number") CountSteppers31966 = -1; if (typeof(LeadingZeros31966)=="undefined") LeadingZeros31966 = true; CountSteppers31966 = Math.ceil(CountSteppers31966); if (CountSteppers31966 == 0) CountActives31966 = false; var SetTimeOutPeriods31966 = (Math.abs(CountSteppers31966)-1)*1000 + 990; puti(BackColors31966, ForeColors31966); var dthens31966 = new Date(TargetDates31966); var dnows31966 = new Date("03/29/2025 4:22:38 PM"); if(CountSteppers31966>0) ddiffs31966 = new Date(dnows31966-dthens31966); else ddiffs31966 = new Date(dthens31966-dnows31966); gsecss31966 = Math.floor(ddiffs31966.valueOf()/1000); CountBacks31966(gsecss31966);