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 (LeadingZeros30025 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30025(secs) { if (secs < 0) { document.getElementById("cntdwns30025").innerHTML = FinishMessages30025; return; } DisplayStrs30025 = DisplayFormats30025.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30025 = DisplayStrs30025.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30025 = DisplayStrs30025.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30025 = DisplayStrs30025.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30025").innerHTML = DisplayStrs30025; if (CountActives30025) //alert(SetTimeOutPeriods30025); setTimeout("CountBacks30025(" + (secs+CountSteppers30025) + ")", SetTimeOutPeriods30025); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30025)=="undefined") BackColors30025 = ""; if (typeof(ForeColors30025)=="undefined") ForeColors30025= "white"; if (typeof(TargetDates30025)=="undefined") TargetDates30025 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30025)=="undefined") DisplayFormats30025 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30025)=="undefined") CountActives30025 = true; if (typeof(FinishMessages30025)=="undefined") FinishMessages30025 = ""; if (typeof(CountSteppers30025)!="number") CountSteppers30025 = -1; if (typeof(LeadingZeros30025)=="undefined") LeadingZeros30025 = true; CountSteppers30025 = Math.ceil(CountSteppers30025); if (CountSteppers30025 == 0) CountActives30025 = false; var SetTimeOutPeriods30025 = (Math.abs(CountSteppers30025)-1)*1000 + 990; puti(BackColors30025, ForeColors30025); var dthens30025 = new Date(TargetDates30025); var dnows30025 = new Date("05/05/2024 12:06:02 PM"); if(CountSteppers30025>0) ddiffs30025 = new Date(dnows30025-dthens30025); else ddiffs30025 = new Date(dthens30025-dnows30025); gsecss30025 = Math.floor(ddiffs30025.valueOf()/1000); CountBacks30025(gsecss30025);