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 (LeadingZeros30262 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30262(secs) { if (secs < 0) { document.getElementById("cntdwns30262").innerHTML = FinishMessages30262; return; } DisplayStrs30262 = DisplayFormats30262.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30262 = DisplayStrs30262.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30262 = DisplayStrs30262.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30262 = DisplayStrs30262.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30262").innerHTML = DisplayStrs30262; if (CountActives30262) //alert(SetTimeOutPeriods30262); setTimeout("CountBacks30262(" + (secs+CountSteppers30262) + ")", SetTimeOutPeriods30262); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30262)=="undefined") BackColors30262 = ""; if (typeof(ForeColors30262)=="undefined") ForeColors30262= "white"; if (typeof(TargetDates30262)=="undefined") TargetDates30262 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30262)=="undefined") DisplayFormats30262 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30262)=="undefined") CountActives30262 = true; if (typeof(FinishMessages30262)=="undefined") FinishMessages30262 = ""; if (typeof(CountSteppers30262)!="number") CountSteppers30262 = -1; if (typeof(LeadingZeros30262)=="undefined") LeadingZeros30262 = true; CountSteppers30262 = Math.ceil(CountSteppers30262); if (CountSteppers30262 == 0) CountActives30262 = false; var SetTimeOutPeriods30262 = (Math.abs(CountSteppers30262)-1)*1000 + 990; puti(BackColors30262, ForeColors30262); var dthens30262 = new Date(TargetDates30262); var dnows30262 = new Date("05/05/2024 2:07:16 PM"); if(CountSteppers30262>0) ddiffs30262 = new Date(dnows30262-dthens30262); else ddiffs30262 = new Date(dthens30262-dnows30262); gsecss30262 = Math.floor(ddiffs30262.valueOf()/1000); CountBacks30262(gsecss30262);