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 (LeadingZeros31894 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31894(secs) { if (secs < 0) { document.getElementById("cntdwns31894").innerHTML = FinishMessages31894; return; } DisplayStrs31894 = DisplayFormats31894.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31894 = DisplayStrs31894.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31894 = DisplayStrs31894.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31894 = DisplayStrs31894.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31894").innerHTML = DisplayStrs31894; if (CountActives31894) //alert(SetTimeOutPeriods31894); setTimeout("CountBacks31894(" + (secs+CountSteppers31894) + ")", SetTimeOutPeriods31894); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31894)=="undefined") BackColors31894 = ""; if (typeof(ForeColors31894)=="undefined") ForeColors31894= "white"; if (typeof(TargetDates31894)=="undefined") TargetDates31894 = "03/16/2025 10:00:00 PM"; if (typeof(DisplayFormats31894)=="undefined") DisplayFormats31894 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31894)=="undefined") CountActives31894 = true; if (typeof(FinishMessages31894)=="undefined") FinishMessages31894 = ""; if (typeof(CountSteppers31894)!="number") CountSteppers31894 = -1; if (typeof(LeadingZeros31894)=="undefined") LeadingZeros31894 = true; CountSteppers31894 = Math.ceil(CountSteppers31894); if (CountSteppers31894 == 0) CountActives31894 = false; var SetTimeOutPeriods31894 = (Math.abs(CountSteppers31894)-1)*1000 + 990; puti(BackColors31894, ForeColors31894); var dthens31894 = new Date(TargetDates31894); var dnows31894 = new Date("03/14/2025 9:42:59 AM"); if(CountSteppers31894>0) ddiffs31894 = new Date(dnows31894-dthens31894); else ddiffs31894 = new Date(dthens31894-dnows31894); gsecss31894 = Math.floor(ddiffs31894.valueOf()/1000); CountBacks31894(gsecss31894);