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 (LeadingZeros31893 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31893(secs) { if (secs < 0) { document.getElementById("cntdwns31893").innerHTML = FinishMessages31893; return; } DisplayStrs31893 = DisplayFormats31893.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31893 = DisplayStrs31893.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31893 = DisplayStrs31893.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31893 = DisplayStrs31893.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31893").innerHTML = DisplayStrs31893; if (CountActives31893) //alert(SetTimeOutPeriods31893); setTimeout("CountBacks31893(" + (secs+CountSteppers31893) + ")", SetTimeOutPeriods31893); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31893)=="undefined") BackColors31893 = ""; if (typeof(ForeColors31893)=="undefined") ForeColors31893= "white"; if (typeof(TargetDates31893)=="undefined") TargetDates31893 = "03/16/2025 10:00:00 PM"; if (typeof(DisplayFormats31893)=="undefined") DisplayFormats31893 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31893)=="undefined") CountActives31893 = true; if (typeof(FinishMessages31893)=="undefined") FinishMessages31893 = ""; if (typeof(CountSteppers31893)!="number") CountSteppers31893 = -1; if (typeof(LeadingZeros31893)=="undefined") LeadingZeros31893 = true; CountSteppers31893 = Math.ceil(CountSteppers31893); if (CountSteppers31893 == 0) CountActives31893 = false; var SetTimeOutPeriods31893 = (Math.abs(CountSteppers31893)-1)*1000 + 990; puti(BackColors31893, ForeColors31893); var dthens31893 = new Date(TargetDates31893); var dnows31893 = new Date("03/14/2025 9:42:58 AM"); if(CountSteppers31893>0) ddiffs31893 = new Date(dnows31893-dthens31893); else ddiffs31893 = new Date(dthens31893-dnows31893); gsecss31893 = Math.floor(ddiffs31893.valueOf()/1000); CountBacks31893(gsecss31893);