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 (LeadingZeros31769 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31769(secs) { if (secs < 0) { document.getElementById("cntdwns31769").innerHTML = FinishMessages31769; return; } DisplayStrs31769 = DisplayFormats31769.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31769 = DisplayStrs31769.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31769 = DisplayStrs31769.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31769 = DisplayStrs31769.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31769").innerHTML = DisplayStrs31769; if (CountActives31769) //alert(SetTimeOutPeriods31769); setTimeout("CountBacks31769(" + (secs+CountSteppers31769) + ")", SetTimeOutPeriods31769); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31769)=="undefined") BackColors31769 = ""; if (typeof(ForeColors31769)=="undefined") ForeColors31769= "white"; if (typeof(TargetDates31769)=="undefined") TargetDates31769 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31769)=="undefined") DisplayFormats31769 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31769)=="undefined") CountActives31769 = true; if (typeof(FinishMessages31769)=="undefined") FinishMessages31769 = ""; if (typeof(CountSteppers31769)!="number") CountSteppers31769 = -1; if (typeof(LeadingZeros31769)=="undefined") LeadingZeros31769 = true; CountSteppers31769 = Math.ceil(CountSteppers31769); if (CountSteppers31769 == 0) CountActives31769 = false; var SetTimeOutPeriods31769 = (Math.abs(CountSteppers31769)-1)*1000 + 990; puti(BackColors31769, ForeColors31769); var dthens31769 = new Date(TargetDates31769); var dnows31769 = new Date("02/22/2025 9:50:38 PM"); if(CountSteppers31769>0) ddiffs31769 = new Date(dnows31769-dthens31769); else ddiffs31769 = new Date(dthens31769-dnows31769); gsecss31769 = Math.floor(ddiffs31769.valueOf()/1000); CountBacks31769(gsecss31769);