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 (LeadingZeros31615 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31615(secs) { if (secs < 0) { document.getElementById("cntdwns31615").innerHTML = FinishMessages31615; return; } DisplayStrs31615 = DisplayFormats31615.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31615 = DisplayStrs31615.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31615 = DisplayStrs31615.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31615 = DisplayStrs31615.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31615").innerHTML = DisplayStrs31615; if (CountActives31615) //alert(SetTimeOutPeriods31615); setTimeout("CountBacks31615(" + (secs+CountSteppers31615) + ")", SetTimeOutPeriods31615); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31615)=="undefined") BackColors31615 = ""; if (typeof(ForeColors31615)=="undefined") ForeColors31615= "white"; if (typeof(TargetDates31615)=="undefined") TargetDates31615 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31615)=="undefined") DisplayFormats31615 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31615)=="undefined") CountActives31615 = true; if (typeof(FinishMessages31615)=="undefined") FinishMessages31615 = ""; if (typeof(CountSteppers31615)!="number") CountSteppers31615 = -1; if (typeof(LeadingZeros31615)=="undefined") LeadingZeros31615 = true; CountSteppers31615 = Math.ceil(CountSteppers31615); if (CountSteppers31615 == 0) CountActives31615 = false; var SetTimeOutPeriods31615 = (Math.abs(CountSteppers31615)-1)*1000 + 990; puti(BackColors31615, ForeColors31615); var dthens31615 = new Date(TargetDates31615); var dnows31615 = new Date("02/22/2025 9:44:43 PM"); if(CountSteppers31615>0) ddiffs31615 = new Date(dnows31615-dthens31615); else ddiffs31615 = new Date(dthens31615-dnows31615); gsecss31615 = Math.floor(ddiffs31615.valueOf()/1000); CountBacks31615(gsecss31615);