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 (LeadingZeros31786 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31786(secs) { if (secs < 0) { document.getElementById("cntdwns31786").innerHTML = FinishMessages31786; return; } DisplayStrs31786 = DisplayFormats31786.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31786 = DisplayStrs31786.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31786 = DisplayStrs31786.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31786 = DisplayStrs31786.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31786").innerHTML = DisplayStrs31786; if (CountActives31786) //alert(SetTimeOutPeriods31786); setTimeout("CountBacks31786(" + (secs+CountSteppers31786) + ")", SetTimeOutPeriods31786); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31786)=="undefined") BackColors31786 = ""; if (typeof(ForeColors31786)=="undefined") ForeColors31786= "white"; if (typeof(TargetDates31786)=="undefined") TargetDates31786 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31786)=="undefined") DisplayFormats31786 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31786)=="undefined") CountActives31786 = true; if (typeof(FinishMessages31786)=="undefined") FinishMessages31786 = ""; if (typeof(CountSteppers31786)!="number") CountSteppers31786 = -1; if (typeof(LeadingZeros31786)=="undefined") LeadingZeros31786 = true; CountSteppers31786 = Math.ceil(CountSteppers31786); if (CountSteppers31786 == 0) CountActives31786 = false; var SetTimeOutPeriods31786 = (Math.abs(CountSteppers31786)-1)*1000 + 990; puti(BackColors31786, ForeColors31786); var dthens31786 = new Date(TargetDates31786); var dnows31786 = new Date("02/22/2025 9:28:56 PM"); if(CountSteppers31786>0) ddiffs31786 = new Date(dnows31786-dthens31786); else ddiffs31786 = new Date(dthens31786-dnows31786); gsecss31786 = Math.floor(ddiffs31786.valueOf()/1000); CountBacks31786(gsecss31786);