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 (LeadingZeros31280 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31280(secs) { if (secs < 0) { document.getElementById("cntdwns31280").innerHTML = FinishMessages31280; return; } DisplayStrs31280 = DisplayFormats31280.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31280 = DisplayStrs31280.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31280 = DisplayStrs31280.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31280 = DisplayStrs31280.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31280").innerHTML = DisplayStrs31280; if (CountActives31280) //alert(SetTimeOutPeriods31280); setTimeout("CountBacks31280(" + (secs+CountSteppers31280) + ")", SetTimeOutPeriods31280); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31280)=="undefined") BackColors31280 = ""; if (typeof(ForeColors31280)=="undefined") ForeColors31280= "white"; if (typeof(TargetDates31280)=="undefined") TargetDates31280 = "02/24/2025 9:00:00 PM"; if (typeof(DisplayFormats31280)=="undefined") DisplayFormats31280 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31280)=="undefined") CountActives31280 = true; if (typeof(FinishMessages31280)=="undefined") FinishMessages31280 = ""; if (typeof(CountSteppers31280)!="number") CountSteppers31280 = -1; if (typeof(LeadingZeros31280)=="undefined") LeadingZeros31280 = true; CountSteppers31280 = Math.ceil(CountSteppers31280); if (CountSteppers31280 == 0) CountActives31280 = false; var SetTimeOutPeriods31280 = (Math.abs(CountSteppers31280)-1)*1000 + 990; puti(BackColors31280, ForeColors31280); var dthens31280 = new Date(TargetDates31280); var dnows31280 = new Date("02/22/2025 3:30:02 PM"); if(CountSteppers31280>0) ddiffs31280 = new Date(dnows31280-dthens31280); else ddiffs31280 = new Date(dthens31280-dnows31280); gsecss31280 = Math.floor(ddiffs31280.valueOf()/1000); CountBacks31280(gsecss31280);