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 (LeadingZeros31654 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31654(secs) { if (secs < 0) { document.getElementById("cntdwns31654").innerHTML = FinishMessages31654; return; } DisplayStrs31654 = DisplayFormats31654.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31654 = DisplayStrs31654.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31654 = DisplayStrs31654.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31654 = DisplayStrs31654.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31654").innerHTML = DisplayStrs31654; if (CountActives31654) //alert(SetTimeOutPeriods31654); setTimeout("CountBacks31654(" + (secs+CountSteppers31654) + ")", SetTimeOutPeriods31654); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31654)=="undefined") BackColors31654 = ""; if (typeof(ForeColors31654)=="undefined") ForeColors31654= "white"; if (typeof(TargetDates31654)=="undefined") TargetDates31654 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31654)=="undefined") DisplayFormats31654 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31654)=="undefined") CountActives31654 = true; if (typeof(FinishMessages31654)=="undefined") FinishMessages31654 = ""; if (typeof(CountSteppers31654)!="number") CountSteppers31654 = -1; if (typeof(LeadingZeros31654)=="undefined") LeadingZeros31654 = true; CountSteppers31654 = Math.ceil(CountSteppers31654); if (CountSteppers31654 == 0) CountActives31654 = false; var SetTimeOutPeriods31654 = (Math.abs(CountSteppers31654)-1)*1000 + 990; puti(BackColors31654, ForeColors31654); var dthens31654 = new Date(TargetDates31654); var dnows31654 = new Date("02/23/2025 1:39:19 PM"); if(CountSteppers31654>0) ddiffs31654 = new Date(dnows31654-dthens31654); else ddiffs31654 = new Date(dthens31654-dnows31654); gsecss31654 = Math.floor(ddiffs31654.valueOf()/1000); CountBacks31654(gsecss31654);