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 (LeadingZeros30275 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30275(secs) { if (secs < 0) { document.getElementById("cntdwns30275").innerHTML = FinishMessages30275; return; } DisplayStrs30275 = DisplayFormats30275.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30275 = DisplayStrs30275.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30275 = DisplayStrs30275.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30275 = DisplayStrs30275.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30275").innerHTML = DisplayStrs30275; if (CountActives30275) //alert(SetTimeOutPeriods30275); setTimeout("CountBacks30275(" + (secs+CountSteppers30275) + ")", SetTimeOutPeriods30275); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30275)=="undefined") BackColors30275 = ""; if (typeof(ForeColors30275)=="undefined") ForeColors30275= "white"; if (typeof(TargetDates30275)=="undefined") TargetDates30275 = "04/19/2024 9:00:00 PM"; if (typeof(DisplayFormats30275)=="undefined") DisplayFormats30275 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30275)=="undefined") CountActives30275 = true; if (typeof(FinishMessages30275)=="undefined") FinishMessages30275 = ""; if (typeof(CountSteppers30275)!="number") CountSteppers30275 = -1; if (typeof(LeadingZeros30275)=="undefined") LeadingZeros30275 = true; CountSteppers30275 = Math.ceil(CountSteppers30275); if (CountSteppers30275 == 0) CountActives30275 = false; var SetTimeOutPeriods30275 = (Math.abs(CountSteppers30275)-1)*1000 + 990; puti(BackColors30275, ForeColors30275); var dthens30275 = new Date(TargetDates30275); var dnows30275 = new Date("04/30/2024 7:26:19 AM"); if(CountSteppers30275>0) ddiffs30275 = new Date(dnows30275-dthens30275); else ddiffs30275 = new Date(dthens30275-dnows30275); gsecss30275 = Math.floor(ddiffs30275.valueOf()/1000); CountBacks30275(gsecss30275);