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 (LeadingZeros31954 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31954(secs) { if (secs < 0) { document.getElementById("cntdwns31954").innerHTML = FinishMessages31954; return; } DisplayStrs31954 = DisplayFormats31954.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31954 = DisplayStrs31954.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31954 = DisplayStrs31954.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31954 = DisplayStrs31954.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31954").innerHTML = DisplayStrs31954; if (CountActives31954) //alert(SetTimeOutPeriods31954); setTimeout("CountBacks31954(" + (secs+CountSteppers31954) + ")", SetTimeOutPeriods31954); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31954)=="undefined") BackColors31954 = ""; if (typeof(ForeColors31954)=="undefined") ForeColors31954= "white"; if (typeof(TargetDates31954)=="undefined") TargetDates31954 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31954)=="undefined") DisplayFormats31954 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31954)=="undefined") CountActives31954 = true; if (typeof(FinishMessages31954)=="undefined") FinishMessages31954 = ""; if (typeof(CountSteppers31954)!="number") CountSteppers31954 = -1; if (typeof(LeadingZeros31954)=="undefined") LeadingZeros31954 = true; CountSteppers31954 = Math.ceil(CountSteppers31954); if (CountSteppers31954 == 0) CountActives31954 = false; var SetTimeOutPeriods31954 = (Math.abs(CountSteppers31954)-1)*1000 + 990; puti(BackColors31954, ForeColors31954); var dthens31954 = new Date(TargetDates31954); var dnows31954 = new Date("03/13/2025 10:41:45 PM"); if(CountSteppers31954>0) ddiffs31954 = new Date(dnows31954-dthens31954); else ddiffs31954 = new Date(dthens31954-dnows31954); gsecss31954 = Math.floor(ddiffs31954.valueOf()/1000); CountBacks31954(gsecss31954);