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 (LeadingZeros30382 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30382(secs) { if (secs < 0) { document.getElementById("cntdwns30382").innerHTML = FinishMessages30382; return; } DisplayStrs30382 = DisplayFormats30382.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30382 = DisplayStrs30382.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30382 = DisplayStrs30382.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30382 = DisplayStrs30382.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30382").innerHTML = DisplayStrs30382; if (CountActives30382) //alert(SetTimeOutPeriods30382); setTimeout("CountBacks30382(" + (secs+CountSteppers30382) + ")", SetTimeOutPeriods30382); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30382)=="undefined") BackColors30382 = ""; if (typeof(ForeColors30382)=="undefined") ForeColors30382= "white"; if (typeof(TargetDates30382)=="undefined") TargetDates30382 = "04/19/2024 10:00:00 PM"; if (typeof(DisplayFormats30382)=="undefined") DisplayFormats30382 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30382)=="undefined") CountActives30382 = true; if (typeof(FinishMessages30382)=="undefined") FinishMessages30382 = ""; if (typeof(CountSteppers30382)!="number") CountSteppers30382 = -1; if (typeof(LeadingZeros30382)=="undefined") LeadingZeros30382 = true; CountSteppers30382 = Math.ceil(CountSteppers30382); if (CountSteppers30382 == 0) CountActives30382 = false; var SetTimeOutPeriods30382 = (Math.abs(CountSteppers30382)-1)*1000 + 990; puti(BackColors30382, ForeColors30382); var dthens30382 = new Date(TargetDates30382); var dnows30382 = new Date("04/30/2024 8:46:07 AM"); if(CountSteppers30382>0) ddiffs30382 = new Date(dnows30382-dthens30382); else ddiffs30382 = new Date(dthens30382-dnows30382); gsecss30382 = Math.floor(ddiffs30382.valueOf()/1000); CountBacks30382(gsecss30382);