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 (LeadingZeros31565 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31565(secs) { if (secs < 0) { document.getElementById("cntdwns31565").innerHTML = FinishMessages31565; return; } DisplayStrs31565 = DisplayFormats31565.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31565 = DisplayStrs31565.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31565 = DisplayStrs31565.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31565 = DisplayStrs31565.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31565").innerHTML = DisplayStrs31565; if (CountActives31565) //alert(SetTimeOutPeriods31565); setTimeout("CountBacks31565(" + (secs+CountSteppers31565) + ")", SetTimeOutPeriods31565); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31565)=="undefined") BackColors31565 = ""; if (typeof(ForeColors31565)=="undefined") ForeColors31565= "white"; if (typeof(TargetDates31565)=="undefined") TargetDates31565 = "02/26/2025 10:00:00 PM"; if (typeof(DisplayFormats31565)=="undefined") DisplayFormats31565 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31565)=="undefined") CountActives31565 = true; if (typeof(FinishMessages31565)=="undefined") FinishMessages31565 = ""; if (typeof(CountSteppers31565)!="number") CountSteppers31565 = -1; if (typeof(LeadingZeros31565)=="undefined") LeadingZeros31565 = true; CountSteppers31565 = Math.ceil(CountSteppers31565); if (CountSteppers31565 == 0) CountActives31565 = false; var SetTimeOutPeriods31565 = (Math.abs(CountSteppers31565)-1)*1000 + 990; puti(BackColors31565, ForeColors31565); var dthens31565 = new Date(TargetDates31565); var dnows31565 = new Date("02/24/2025 4:28:06 AM"); if(CountSteppers31565>0) ddiffs31565 = new Date(dnows31565-dthens31565); else ddiffs31565 = new Date(dthens31565-dnows31565); gsecss31565 = Math.floor(ddiffs31565.valueOf()/1000); CountBacks31565(gsecss31565);