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 (LeadingZeros30425 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30425(secs) { if (secs < 0) { document.getElementById("cntdwns30425").innerHTML = FinishMessages30425; return; } DisplayStrs30425 = DisplayFormats30425.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30425 = DisplayStrs30425.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30425 = DisplayStrs30425.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30425 = DisplayStrs30425.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30425").innerHTML = DisplayStrs30425; if (CountActives30425) //alert(SetTimeOutPeriods30425); setTimeout("CountBacks30425(" + (secs+CountSteppers30425) + ")", SetTimeOutPeriods30425); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30425)=="undefined") BackColors30425 = ""; if (typeof(ForeColors30425)=="undefined") ForeColors30425= "white"; if (typeof(TargetDates30425)=="undefined") TargetDates30425 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30425)=="undefined") DisplayFormats30425 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30425)=="undefined") CountActives30425 = true; if (typeof(FinishMessages30425)=="undefined") FinishMessages30425 = ""; if (typeof(CountSteppers30425)!="number") CountSteppers30425 = -1; if (typeof(LeadingZeros30425)=="undefined") LeadingZeros30425 = true; CountSteppers30425 = Math.ceil(CountSteppers30425); if (CountSteppers30425 == 0) CountActives30425 = false; var SetTimeOutPeriods30425 = (Math.abs(CountSteppers30425)-1)*1000 + 990; puti(BackColors30425, ForeColors30425); var dthens30425 = new Date(TargetDates30425); var dnows30425 = new Date("05/07/2024 2:29:01 PM"); if(CountSteppers30425>0) ddiffs30425 = new Date(dnows30425-dthens30425); else ddiffs30425 = new Date(dthens30425-dnows30425); gsecss30425 = Math.floor(ddiffs30425.valueOf()/1000); CountBacks30425(gsecss30425);