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 (LeadingZeros31710 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31710(secs) { if (secs < 0) { document.getElementById("cntdwns31710").innerHTML = FinishMessages31710; return; } DisplayStrs31710 = DisplayFormats31710.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31710 = DisplayStrs31710.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31710 = DisplayStrs31710.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31710 = DisplayStrs31710.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31710").innerHTML = DisplayStrs31710; if (CountActives31710) //alert(SetTimeOutPeriods31710); setTimeout("CountBacks31710(" + (secs+CountSteppers31710) + ")", SetTimeOutPeriods31710); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31710)=="undefined") BackColors31710 = ""; if (typeof(ForeColors31710)=="undefined") ForeColors31710= "white"; if (typeof(TargetDates31710)=="undefined") TargetDates31710 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31710)=="undefined") DisplayFormats31710 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31710)=="undefined") CountActives31710 = true; if (typeof(FinishMessages31710)=="undefined") FinishMessages31710 = ""; if (typeof(CountSteppers31710)!="number") CountSteppers31710 = -1; if (typeof(LeadingZeros31710)=="undefined") LeadingZeros31710 = true; CountSteppers31710 = Math.ceil(CountSteppers31710); if (CountSteppers31710 == 0) CountActives31710 = false; var SetTimeOutPeriods31710 = (Math.abs(CountSteppers31710)-1)*1000 + 990; puti(BackColors31710, ForeColors31710); var dthens31710 = new Date(TargetDates31710); var dnows31710 = new Date("02/22/2025 9:32:39 PM"); if(CountSteppers31710>0) ddiffs31710 = new Date(dnows31710-dthens31710); else ddiffs31710 = new Date(dthens31710-dnows31710); gsecss31710 = Math.floor(ddiffs31710.valueOf()/1000); CountBacks31710(gsecss31710);