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 (LeadingZeros31991 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31991(secs) { if (secs < 0) { document.getElementById("cntdwns31991").innerHTML = FinishMessages31991; return; } DisplayStrs31991 = DisplayFormats31991.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31991 = DisplayStrs31991.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31991 = DisplayStrs31991.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31991 = DisplayStrs31991.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31991").innerHTML = DisplayStrs31991; if (CountActives31991) //alert(SetTimeOutPeriods31991); setTimeout("CountBacks31991(" + (secs+CountSteppers31991) + ")", SetTimeOutPeriods31991); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31991)=="undefined") BackColors31991 = ""; if (typeof(ForeColors31991)=="undefined") ForeColors31991= "white"; if (typeof(TargetDates31991)=="undefined") TargetDates31991 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31991)=="undefined") DisplayFormats31991 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31991)=="undefined") CountActives31991 = true; if (typeof(FinishMessages31991)=="undefined") FinishMessages31991 = ""; if (typeof(CountSteppers31991)!="number") CountSteppers31991 = -1; if (typeof(LeadingZeros31991)=="undefined") LeadingZeros31991 = true; CountSteppers31991 = Math.ceil(CountSteppers31991); if (CountSteppers31991 == 0) CountActives31991 = false; var SetTimeOutPeriods31991 = (Math.abs(CountSteppers31991)-1)*1000 + 990; puti(BackColors31991, ForeColors31991); var dthens31991 = new Date(TargetDates31991); var dnows31991 = new Date("03/29/2025 4:27:13 PM"); if(CountSteppers31991>0) ddiffs31991 = new Date(dnows31991-dthens31991); else ddiffs31991 = new Date(dthens31991-dnows31991); gsecss31991 = Math.floor(ddiffs31991.valueOf()/1000); CountBacks31991(gsecss31991);