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 (LeadingZeros30366 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30366(secs) { if (secs < 0) { document.getElementById("cntdwns30366").innerHTML = FinishMessages30366; return; } DisplayStrs30366 = DisplayFormats30366.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30366 = DisplayStrs30366.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30366 = DisplayStrs30366.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30366 = DisplayStrs30366.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30366").innerHTML = DisplayStrs30366; if (CountActives30366) //alert(SetTimeOutPeriods30366); setTimeout("CountBacks30366(" + (secs+CountSteppers30366) + ")", SetTimeOutPeriods30366); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30366)=="undefined") BackColors30366 = ""; if (typeof(ForeColors30366)=="undefined") ForeColors30366= "white"; if (typeof(TargetDates30366)=="undefined") TargetDates30366 = "04/22/2024 10:00:00 PM"; if (typeof(DisplayFormats30366)=="undefined") DisplayFormats30366 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30366)=="undefined") CountActives30366 = true; if (typeof(FinishMessages30366)=="undefined") FinishMessages30366 = ""; if (typeof(CountSteppers30366)!="number") CountSteppers30366 = -1; if (typeof(LeadingZeros30366)=="undefined") LeadingZeros30366 = true; CountSteppers30366 = Math.ceil(CountSteppers30366); if (CountSteppers30366 == 0) CountActives30366 = false; var SetTimeOutPeriods30366 = (Math.abs(CountSteppers30366)-1)*1000 + 990; puti(BackColors30366, ForeColors30366); var dthens30366 = new Date(TargetDates30366); var dnows30366 = new Date("05/03/2024 12:14:16 PM"); if(CountSteppers30366>0) ddiffs30366 = new Date(dnows30366-dthens30366); else ddiffs30366 = new Date(dthens30366-dnows30366); gsecss30366 = Math.floor(ddiffs30366.valueOf()/1000); CountBacks30366(gsecss30366);