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 (LeadingZeros30036 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30036(secs) { if (secs < 0) { document.getElementById("cntdwns30036").innerHTML = FinishMessages30036; return; } DisplayStrs30036 = DisplayFormats30036.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30036 = DisplayStrs30036.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30036 = DisplayStrs30036.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30036 = DisplayStrs30036.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30036").innerHTML = DisplayStrs30036; if (CountActives30036) //alert(SetTimeOutPeriods30036); setTimeout("CountBacks30036(" + (secs+CountSteppers30036) + ")", SetTimeOutPeriods30036); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30036)=="undefined") BackColors30036 = ""; if (typeof(ForeColors30036)=="undefined") ForeColors30036= "white"; if (typeof(TargetDates30036)=="undefined") TargetDates30036 = "03/31/2024 11:00:00 PM"; if (typeof(DisplayFormats30036)=="undefined") DisplayFormats30036 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30036)=="undefined") CountActives30036 = true; if (typeof(FinishMessages30036)=="undefined") FinishMessages30036 = ""; if (typeof(CountSteppers30036)!="number") CountSteppers30036 = -1; if (typeof(LeadingZeros30036)=="undefined") LeadingZeros30036 = true; CountSteppers30036 = Math.ceil(CountSteppers30036); if (CountSteppers30036 == 0) CountActives30036 = false; var SetTimeOutPeriods30036 = (Math.abs(CountSteppers30036)-1)*1000 + 990; puti(BackColors30036, ForeColors30036); var dthens30036 = new Date(TargetDates30036); var dnows30036 = new Date("04/28/2024 9:17:07 PM"); if(CountSteppers30036>0) ddiffs30036 = new Date(dnows30036-dthens30036); else ddiffs30036 = new Date(dthens30036-dnows30036); gsecss30036 = Math.floor(ddiffs30036.valueOf()/1000); CountBacks30036(gsecss30036);