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 (LeadingZeros30368 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30368(secs) { if (secs < 0) { document.getElementById("cntdwns30368").innerHTML = FinishMessages30368; return; } DisplayStrs30368 = DisplayFormats30368.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30368 = DisplayStrs30368.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30368 = DisplayStrs30368.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30368 = DisplayStrs30368.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30368").innerHTML = DisplayStrs30368; if (CountActives30368) //alert(SetTimeOutPeriods30368); setTimeout("CountBacks30368(" + (secs+CountSteppers30368) + ")", SetTimeOutPeriods30368); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30368)=="undefined") BackColors30368 = ""; if (typeof(ForeColors30368)=="undefined") ForeColors30368= "white"; if (typeof(TargetDates30368)=="undefined") TargetDates30368 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30368)=="undefined") DisplayFormats30368 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30368)=="undefined") CountActives30368 = true; if (typeof(FinishMessages30368)=="undefined") FinishMessages30368 = ""; if (typeof(CountSteppers30368)!="number") CountSteppers30368 = -1; if (typeof(LeadingZeros30368)=="undefined") LeadingZeros30368 = true; CountSteppers30368 = Math.ceil(CountSteppers30368); if (CountSteppers30368 == 0) CountActives30368 = false; var SetTimeOutPeriods30368 = (Math.abs(CountSteppers30368)-1)*1000 + 990; puti(BackColors30368, ForeColors30368); var dthens30368 = new Date(TargetDates30368); var dnows30368 = new Date("05/03/2024 7:00:55 AM"); if(CountSteppers30368>0) ddiffs30368 = new Date(dnows30368-dthens30368); else ddiffs30368 = new Date(dthens30368-dnows30368); gsecss30368 = Math.floor(ddiffs30368.valueOf()/1000); CountBacks30368(gsecss30368);