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 (LeadingZeros31940 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31940(secs) { if (secs < 0) { document.getElementById("cntdwns31940").innerHTML = FinishMessages31940; return; } DisplayStrs31940 = DisplayFormats31940.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31940 = DisplayStrs31940.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31940 = DisplayStrs31940.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31940 = DisplayStrs31940.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31940").innerHTML = DisplayStrs31940; if (CountActives31940) //alert(SetTimeOutPeriods31940); setTimeout("CountBacks31940(" + (secs+CountSteppers31940) + ")", SetTimeOutPeriods31940); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31940)=="undefined") BackColors31940 = ""; if (typeof(ForeColors31940)=="undefined") ForeColors31940= "white"; if (typeof(TargetDates31940)=="undefined") TargetDates31940 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31940)=="undefined") DisplayFormats31940 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31940)=="undefined") CountActives31940 = true; if (typeof(FinishMessages31940)=="undefined") FinishMessages31940 = ""; if (typeof(CountSteppers31940)!="number") CountSteppers31940 = -1; if (typeof(LeadingZeros31940)=="undefined") LeadingZeros31940 = true; CountSteppers31940 = Math.ceil(CountSteppers31940); if (CountSteppers31940 == 0) CountActives31940 = false; var SetTimeOutPeriods31940 = (Math.abs(CountSteppers31940)-1)*1000 + 990; puti(BackColors31940, ForeColors31940); var dthens31940 = new Date(TargetDates31940); var dnows31940 = new Date("03/13/2025 1:06:45 AM"); if(CountSteppers31940>0) ddiffs31940 = new Date(dnows31940-dthens31940); else ddiffs31940 = new Date(dthens31940-dnows31940); gsecss31940 = Math.floor(ddiffs31940.valueOf()/1000); CountBacks31940(gsecss31940);