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 (LeadingZeros30352 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30352(secs) { if (secs < 0) { document.getElementById("cntdwns30352").innerHTML = FinishMessages30352; return; } DisplayStrs30352 = DisplayFormats30352.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30352 = DisplayStrs30352.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30352 = DisplayStrs30352.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30352 = DisplayStrs30352.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30352").innerHTML = DisplayStrs30352; if (CountActives30352) //alert(SetTimeOutPeriods30352); setTimeout("CountBacks30352(" + (secs+CountSteppers30352) + ")", SetTimeOutPeriods30352); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30352)=="undefined") BackColors30352 = ""; if (typeof(ForeColors30352)=="undefined") ForeColors30352= "white"; if (typeof(TargetDates30352)=="undefined") TargetDates30352 = "04/19/2024 9:00:00 AM"; if (typeof(DisplayFormats30352)=="undefined") DisplayFormats30352 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30352)=="undefined") CountActives30352 = true; if (typeof(FinishMessages30352)=="undefined") FinishMessages30352 = ""; if (typeof(CountSteppers30352)!="number") CountSteppers30352 = -1; if (typeof(LeadingZeros30352)=="undefined") LeadingZeros30352 = true; CountSteppers30352 = Math.ceil(CountSteppers30352); if (CountSteppers30352 == 0) CountActives30352 = false; var SetTimeOutPeriods30352 = (Math.abs(CountSteppers30352)-1)*1000 + 990; puti(BackColors30352, ForeColors30352); var dthens30352 = new Date(TargetDates30352); var dnows30352 = new Date("04/30/2024 3:12:27 AM"); if(CountSteppers30352>0) ddiffs30352 = new Date(dnows30352-dthens30352); else ddiffs30352 = new Date(dthens30352-dnows30352); gsecss30352 = Math.floor(ddiffs30352.valueOf()/1000); CountBacks30352(gsecss30352);