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 (LeadingZeros30279 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30279(secs) { if (secs < 0) { document.getElementById("cntdwns30279").innerHTML = FinishMessages30279; return; } DisplayStrs30279 = DisplayFormats30279.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30279 = DisplayStrs30279.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30279 = DisplayStrs30279.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30279 = DisplayStrs30279.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30279").innerHTML = DisplayStrs30279; if (CountActives30279) //alert(SetTimeOutPeriods30279); setTimeout("CountBacks30279(" + (secs+CountSteppers30279) + ")", SetTimeOutPeriods30279); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30279)=="undefined") BackColors30279 = ""; if (typeof(ForeColors30279)=="undefined") ForeColors30279= "white"; if (typeof(TargetDates30279)=="undefined") TargetDates30279 = "06/19/2024 10:00:00 PM"; if (typeof(DisplayFormats30279)=="undefined") DisplayFormats30279 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30279)=="undefined") CountActives30279 = true; if (typeof(FinishMessages30279)=="undefined") FinishMessages30279 = ""; if (typeof(CountSteppers30279)!="number") CountSteppers30279 = -1; if (typeof(LeadingZeros30279)=="undefined") LeadingZeros30279 = true; CountSteppers30279 = Math.ceil(CountSteppers30279); if (CountSteppers30279 == 0) CountActives30279 = false; var SetTimeOutPeriods30279 = (Math.abs(CountSteppers30279)-1)*1000 + 990; puti(BackColors30279, ForeColors30279); var dthens30279 = new Date(TargetDates30279); var dnows30279 = new Date("06/26/2024 10:29:46 AM"); if(CountSteppers30279>0) ddiffs30279 = new Date(dnows30279-dthens30279); else ddiffs30279 = new Date(dthens30279-dnows30279); gsecss30279 = Math.floor(ddiffs30279.valueOf()/1000); CountBacks30279(gsecss30279);