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 (LeadingZeros30338 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30338(secs) { if (secs < 0) { document.getElementById("cntdwns30338").innerHTML = FinishMessages30338; return; } DisplayStrs30338 = DisplayFormats30338.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30338 = DisplayStrs30338.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30338 = DisplayStrs30338.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30338 = DisplayStrs30338.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30338").innerHTML = DisplayStrs30338; if (CountActives30338) //alert(SetTimeOutPeriods30338); setTimeout("CountBacks30338(" + (secs+CountSteppers30338) + ")", SetTimeOutPeriods30338); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30338)=="undefined") BackColors30338 = ""; if (typeof(ForeColors30338)=="undefined") ForeColors30338= "white"; if (typeof(TargetDates30338)=="undefined") TargetDates30338 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30338)=="undefined") DisplayFormats30338 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30338)=="undefined") CountActives30338 = true; if (typeof(FinishMessages30338)=="undefined") FinishMessages30338 = ""; if (typeof(CountSteppers30338)!="number") CountSteppers30338 = -1; if (typeof(LeadingZeros30338)=="undefined") LeadingZeros30338 = true; CountSteppers30338 = Math.ceil(CountSteppers30338); if (CountSteppers30338 == 0) CountActives30338 = false; var SetTimeOutPeriods30338 = (Math.abs(CountSteppers30338)-1)*1000 + 990; puti(BackColors30338, ForeColors30338); var dthens30338 = new Date(TargetDates30338); var dnows30338 = new Date("05/08/2024 11:11:27 PM"); if(CountSteppers30338>0) ddiffs30338 = new Date(dnows30338-dthens30338); else ddiffs30338 = new Date(dthens30338-dnows30338); gsecss30338 = Math.floor(ddiffs30338.valueOf()/1000); CountBacks30338(gsecss30338);