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 (LeadingZeros30346 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30346(secs) { if (secs < 0) { document.getElementById("cntdwns30346").innerHTML = FinishMessages30346; return; } DisplayStrs30346 = DisplayFormats30346.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30346 = DisplayStrs30346.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30346 = DisplayStrs30346.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30346 = DisplayStrs30346.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30346").innerHTML = DisplayStrs30346; if (CountActives30346) //alert(SetTimeOutPeriods30346); setTimeout("CountBacks30346(" + (secs+CountSteppers30346) + ")", SetTimeOutPeriods30346); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30346)=="undefined") BackColors30346 = ""; if (typeof(ForeColors30346)=="undefined") ForeColors30346= "white"; if (typeof(TargetDates30346)=="undefined") TargetDates30346 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30346)=="undefined") DisplayFormats30346 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30346)=="undefined") CountActives30346 = true; if (typeof(FinishMessages30346)=="undefined") FinishMessages30346 = ""; if (typeof(CountSteppers30346)!="number") CountSteppers30346 = -1; if (typeof(LeadingZeros30346)=="undefined") LeadingZeros30346 = true; CountSteppers30346 = Math.ceil(CountSteppers30346); if (CountSteppers30346 == 0) CountActives30346 = false; var SetTimeOutPeriods30346 = (Math.abs(CountSteppers30346)-1)*1000 + 990; puti(BackColors30346, ForeColors30346); var dthens30346 = new Date(TargetDates30346); var dnows30346 = new Date("05/07/2024 6:41:36 AM"); if(CountSteppers30346>0) ddiffs30346 = new Date(dnows30346-dthens30346); else ddiffs30346 = new Date(dthens30346-dnows30346); gsecss30346 = Math.floor(ddiffs30346.valueOf()/1000); CountBacks30346(gsecss30346);