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 (LeadingZeros30060 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30060(secs) { if (secs < 0) { document.getElementById("cntdwns30060").innerHTML = FinishMessages30060; return; } DisplayStrs30060 = DisplayFormats30060.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30060 = DisplayStrs30060.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30060 = DisplayStrs30060.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30060 = DisplayStrs30060.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30060").innerHTML = DisplayStrs30060; if (CountActives30060) //alert(SetTimeOutPeriods30060); setTimeout("CountBacks30060(" + (secs+CountSteppers30060) + ")", SetTimeOutPeriods30060); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30060)=="undefined") BackColors30060 = ""; if (typeof(ForeColors30060)=="undefined") ForeColors30060= "white"; if (typeof(TargetDates30060)=="undefined") TargetDates30060 = "04/22/2024 11:00:00 PM"; if (typeof(DisplayFormats30060)=="undefined") DisplayFormats30060 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30060)=="undefined") CountActives30060 = true; if (typeof(FinishMessages30060)=="undefined") FinishMessages30060 = ""; if (typeof(CountSteppers30060)!="number") CountSteppers30060 = -1; if (typeof(LeadingZeros30060)=="undefined") LeadingZeros30060 = true; CountSteppers30060 = Math.ceil(CountSteppers30060); if (CountSteppers30060 == 0) CountActives30060 = false; var SetTimeOutPeriods30060 = (Math.abs(CountSteppers30060)-1)*1000 + 990; puti(BackColors30060, ForeColors30060); var dthens30060 = new Date(TargetDates30060); var dnows30060 = new Date("05/03/2024 3:23:54 PM"); if(CountSteppers30060>0) ddiffs30060 = new Date(dnows30060-dthens30060); else ddiffs30060 = new Date(dthens30060-dnows30060); gsecss30060 = Math.floor(ddiffs30060.valueOf()/1000); CountBacks30060(gsecss30060);