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 (LeadingZeros30113 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30113(secs) { if (secs < 0) { document.getElementById("cntdwns30113").innerHTML = FinishMessages30113; return; } DisplayStrs30113 = DisplayFormats30113.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30113 = DisplayStrs30113.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30113 = DisplayStrs30113.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30113 = DisplayStrs30113.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30113").innerHTML = DisplayStrs30113; if (CountActives30113) //alert(SetTimeOutPeriods30113); setTimeout("CountBacks30113(" + (secs+CountSteppers30113) + ")", SetTimeOutPeriods30113); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30113)=="undefined") BackColors30113 = ""; if (typeof(ForeColors30113)=="undefined") ForeColors30113= "white"; if (typeof(TargetDates30113)=="undefined") TargetDates30113 = "04/27/2024 11:00:00 PM"; if (typeof(DisplayFormats30113)=="undefined") DisplayFormats30113 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30113)=="undefined") CountActives30113 = true; if (typeof(FinishMessages30113)=="undefined") FinishMessages30113 = ""; if (typeof(CountSteppers30113)!="number") CountSteppers30113 = -1; if (typeof(LeadingZeros30113)=="undefined") LeadingZeros30113 = true; CountSteppers30113 = Math.ceil(CountSteppers30113); if (CountSteppers30113 == 0) CountActives30113 = false; var SetTimeOutPeriods30113 = (Math.abs(CountSteppers30113)-1)*1000 + 990; puti(BackColors30113, ForeColors30113); var dthens30113 = new Date(TargetDates30113); var dnows30113 = new Date("05/06/2024 10:38:16 AM"); if(CountSteppers30113>0) ddiffs30113 = new Date(dnows30113-dthens30113); else ddiffs30113 = new Date(dthens30113-dnows30113); gsecss30113 = Math.floor(ddiffs30113.valueOf()/1000); CountBacks30113(gsecss30113);