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 (LeadingZeros30421 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30421(secs) { if (secs < 0) { document.getElementById("cntdwns30421").innerHTML = FinishMessages30421; return; } DisplayStrs30421 = DisplayFormats30421.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30421 = DisplayStrs30421.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30421 = DisplayStrs30421.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30421 = DisplayStrs30421.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30421").innerHTML = DisplayStrs30421; if (CountActives30421) //alert(SetTimeOutPeriods30421); setTimeout("CountBacks30421(" + (secs+CountSteppers30421) + ")", SetTimeOutPeriods30421); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30421)=="undefined") BackColors30421 = ""; if (typeof(ForeColors30421)=="undefined") ForeColors30421= "white"; if (typeof(TargetDates30421)=="undefined") TargetDates30421 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30421)=="undefined") DisplayFormats30421 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30421)=="undefined") CountActives30421 = true; if (typeof(FinishMessages30421)=="undefined") FinishMessages30421 = ""; if (typeof(CountSteppers30421)!="number") CountSteppers30421 = -1; if (typeof(LeadingZeros30421)=="undefined") LeadingZeros30421 = true; CountSteppers30421 = Math.ceil(CountSteppers30421); if (CountSteppers30421 == 0) CountActives30421 = false; var SetTimeOutPeriods30421 = (Math.abs(CountSteppers30421)-1)*1000 + 990; puti(BackColors30421, ForeColors30421); var dthens30421 = new Date(TargetDates30421); var dnows30421 = new Date("05/09/2024 7:19:50 AM"); if(CountSteppers30421>0) ddiffs30421 = new Date(dnows30421-dthens30421); else ddiffs30421 = new Date(dthens30421-dnows30421); gsecss30421 = Math.floor(ddiffs30421.valueOf()/1000); CountBacks30421(gsecss30421);