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 (LeadingZeros31865 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31865(secs) { if (secs < 0) { document.getElementById("cntdwns31865").innerHTML = FinishMessages31865; return; } DisplayStrs31865 = DisplayFormats31865.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31865 = DisplayStrs31865.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31865 = DisplayStrs31865.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31865 = DisplayStrs31865.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31865").innerHTML = DisplayStrs31865; if (CountActives31865) //alert(SetTimeOutPeriods31865); setTimeout("CountBacks31865(" + (secs+CountSteppers31865) + ")", SetTimeOutPeriods31865); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31865)=="undefined") BackColors31865 = ""; if (typeof(ForeColors31865)=="undefined") ForeColors31865= "white"; if (typeof(TargetDates31865)=="undefined") TargetDates31865 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31865)=="undefined") DisplayFormats31865 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31865)=="undefined") CountActives31865 = true; if (typeof(FinishMessages31865)=="undefined") FinishMessages31865 = ""; if (typeof(CountSteppers31865)!="number") CountSteppers31865 = -1; if (typeof(LeadingZeros31865)=="undefined") LeadingZeros31865 = true; CountSteppers31865 = Math.ceil(CountSteppers31865); if (CountSteppers31865 == 0) CountActives31865 = false; var SetTimeOutPeriods31865 = (Math.abs(CountSteppers31865)-1)*1000 + 990; puti(BackColors31865, ForeColors31865); var dthens31865 = new Date(TargetDates31865); var dnows31865 = new Date("02/22/2025 7:32:26 PM"); if(CountSteppers31865>0) ddiffs31865 = new Date(dnows31865-dthens31865); else ddiffs31865 = new Date(dthens31865-dnows31865); gsecss31865 = Math.floor(ddiffs31865.valueOf()/1000); CountBacks31865(gsecss31865);