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 (LeadingZeros30426 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30426(secs) { if (secs < 0) { document.getElementById("cntdwns30426").innerHTML = FinishMessages30426; return; } DisplayStrs30426 = DisplayFormats30426.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30426 = DisplayStrs30426.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30426 = DisplayStrs30426.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30426 = DisplayStrs30426.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30426").innerHTML = DisplayStrs30426; if (CountActives30426) //alert(SetTimeOutPeriods30426); setTimeout("CountBacks30426(" + (secs+CountSteppers30426) + ")", SetTimeOutPeriods30426); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30426)=="undefined") BackColors30426 = ""; if (typeof(ForeColors30426)=="undefined") ForeColors30426= "white"; if (typeof(TargetDates30426)=="undefined") TargetDates30426 = "04/28/2024 10:00:00 PM"; if (typeof(DisplayFormats30426)=="undefined") DisplayFormats30426 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30426)=="undefined") CountActives30426 = true; if (typeof(FinishMessages30426)=="undefined") FinishMessages30426 = ""; if (typeof(CountSteppers30426)!="number") CountSteppers30426 = -1; if (typeof(LeadingZeros30426)=="undefined") LeadingZeros30426 = true; CountSteppers30426 = Math.ceil(CountSteppers30426); if (CountSteppers30426 == 0) CountActives30426 = false; var SetTimeOutPeriods30426 = (Math.abs(CountSteppers30426)-1)*1000 + 990; puti(BackColors30426, ForeColors30426); var dthens30426 = new Date(TargetDates30426); var dnows30426 = new Date("05/05/2024 11:33:28 AM"); if(CountSteppers30426>0) ddiffs30426 = new Date(dnows30426-dthens30426); else ddiffs30426 = new Date(dthens30426-dnows30426); gsecss30426 = Math.floor(ddiffs30426.valueOf()/1000); CountBacks30426(gsecss30426);