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 (LeadingZeros30370 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30370(secs) { if (secs < 0) { document.getElementById("cntdwns30370").innerHTML = FinishMessages30370; return; } DisplayStrs30370 = DisplayFormats30370.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30370 = DisplayStrs30370.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30370 = DisplayStrs30370.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30370 = DisplayStrs30370.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30370").innerHTML = DisplayStrs30370; if (CountActives30370) //alert(SetTimeOutPeriods30370); setTimeout("CountBacks30370(" + (secs+CountSteppers30370) + ")", SetTimeOutPeriods30370); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30370)=="undefined") BackColors30370 = ""; if (typeof(ForeColors30370)=="undefined") ForeColors30370= "white"; if (typeof(TargetDates30370)=="undefined") TargetDates30370 = "04/19/2024 10:00:00 PM"; if (typeof(DisplayFormats30370)=="undefined") DisplayFormats30370 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30370)=="undefined") CountActives30370 = true; if (typeof(FinishMessages30370)=="undefined") FinishMessages30370 = ""; if (typeof(CountSteppers30370)!="number") CountSteppers30370 = -1; if (typeof(LeadingZeros30370)=="undefined") LeadingZeros30370 = true; CountSteppers30370 = Math.ceil(CountSteppers30370); if (CountSteppers30370 == 0) CountActives30370 = false; var SetTimeOutPeriods30370 = (Math.abs(CountSteppers30370)-1)*1000 + 990; puti(BackColors30370, ForeColors30370); var dthens30370 = new Date(TargetDates30370); var dnows30370 = new Date("04/30/2024 4:49:34 AM"); if(CountSteppers30370>0) ddiffs30370 = new Date(dnows30370-dthens30370); else ddiffs30370 = new Date(dthens30370-dnows30370); gsecss30370 = Math.floor(ddiffs30370.valueOf()/1000); CountBacks30370(gsecss30370);