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 (LeadingZeros31803 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31803(secs) { if (secs < 0) { document.getElementById("cntdwns31803").innerHTML = FinishMessages31803; return; } DisplayStrs31803 = DisplayFormats31803.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31803 = DisplayStrs31803.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31803 = DisplayStrs31803.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31803 = DisplayStrs31803.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31803").innerHTML = DisplayStrs31803; if (CountActives31803) //alert(SetTimeOutPeriods31803); setTimeout("CountBacks31803(" + (secs+CountSteppers31803) + ")", SetTimeOutPeriods31803); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31803)=="undefined") BackColors31803 = ""; if (typeof(ForeColors31803)=="undefined") ForeColors31803= "white"; if (typeof(TargetDates31803)=="undefined") TargetDates31803 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31803)=="undefined") DisplayFormats31803 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31803)=="undefined") CountActives31803 = true; if (typeof(FinishMessages31803)=="undefined") FinishMessages31803 = ""; if (typeof(CountSteppers31803)!="number") CountSteppers31803 = -1; if (typeof(LeadingZeros31803)=="undefined") LeadingZeros31803 = true; CountSteppers31803 = Math.ceil(CountSteppers31803); if (CountSteppers31803 == 0) CountActives31803 = false; var SetTimeOutPeriods31803 = (Math.abs(CountSteppers31803)-1)*1000 + 990; puti(BackColors31803, ForeColors31803); var dthens31803 = new Date(TargetDates31803); var dnows31803 = new Date("03/29/2025 3:24:03 AM"); if(CountSteppers31803>0) ddiffs31803 = new Date(dnows31803-dthens31803); else ddiffs31803 = new Date(dthens31803-dnows31803); gsecss31803 = Math.floor(ddiffs31803.valueOf()/1000); CountBacks31803(gsecss31803);