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 (LeadingZeros31746 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31746(secs) { if (secs < 0) { document.getElementById("cntdwns31746").innerHTML = FinishMessages31746; return; } DisplayStrs31746 = DisplayFormats31746.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31746 = DisplayStrs31746.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31746 = DisplayStrs31746.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31746 = DisplayStrs31746.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31746").innerHTML = DisplayStrs31746; if (CountActives31746) //alert(SetTimeOutPeriods31746); setTimeout("CountBacks31746(" + (secs+CountSteppers31746) + ")", SetTimeOutPeriods31746); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31746)=="undefined") BackColors31746 = ""; if (typeof(ForeColors31746)=="undefined") ForeColors31746= "white"; if (typeof(TargetDates31746)=="undefined") TargetDates31746 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31746)=="undefined") DisplayFormats31746 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31746)=="undefined") CountActives31746 = true; if (typeof(FinishMessages31746)=="undefined") FinishMessages31746 = ""; if (typeof(CountSteppers31746)!="number") CountSteppers31746 = -1; if (typeof(LeadingZeros31746)=="undefined") LeadingZeros31746 = true; CountSteppers31746 = Math.ceil(CountSteppers31746); if (CountSteppers31746 == 0) CountActives31746 = false; var SetTimeOutPeriods31746 = (Math.abs(CountSteppers31746)-1)*1000 + 990; puti(BackColors31746, ForeColors31746); var dthens31746 = new Date(TargetDates31746); var dnows31746 = new Date("02/22/2025 10:23:19 PM"); if(CountSteppers31746>0) ddiffs31746 = new Date(dnows31746-dthens31746); else ddiffs31746 = new Date(dthens31746-dnows31746); gsecss31746 = Math.floor(ddiffs31746.valueOf()/1000); CountBacks31746(gsecss31746);