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 (LeadingZeros30373 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30373(secs) { if (secs < 0) { document.getElementById("cntdwns30373").innerHTML = FinishMessages30373; return; } DisplayStrs30373 = DisplayFormats30373.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30373 = DisplayStrs30373.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30373 = DisplayStrs30373.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30373 = DisplayStrs30373.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30373").innerHTML = DisplayStrs30373; if (CountActives30373) //alert(SetTimeOutPeriods30373); setTimeout("CountBacks30373(" + (secs+CountSteppers30373) + ")", SetTimeOutPeriods30373); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30373)=="undefined") BackColors30373 = ""; if (typeof(ForeColors30373)=="undefined") ForeColors30373= "white"; if (typeof(TargetDates30373)=="undefined") TargetDates30373 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30373)=="undefined") DisplayFormats30373 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30373)=="undefined") CountActives30373 = true; if (typeof(FinishMessages30373)=="undefined") FinishMessages30373 = ""; if (typeof(CountSteppers30373)!="number") CountSteppers30373 = -1; if (typeof(LeadingZeros30373)=="undefined") LeadingZeros30373 = true; CountSteppers30373 = Math.ceil(CountSteppers30373); if (CountSteppers30373 == 0) CountActives30373 = false; var SetTimeOutPeriods30373 = (Math.abs(CountSteppers30373)-1)*1000 + 990; puti(BackColors30373, ForeColors30373); var dthens30373 = new Date(TargetDates30373); var dnows30373 = new Date("05/07/2024 7:13:32 PM"); if(CountSteppers30373>0) ddiffs30373 = new Date(dnows30373-dthens30373); else ddiffs30373 = new Date(dthens30373-dnows30373); gsecss30373 = Math.floor(ddiffs30373.valueOf()/1000); CountBacks30373(gsecss30373);