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 (LeadingZeros30328 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30328(secs) { if (secs < 0) { document.getElementById("cntdwns30328").innerHTML = FinishMessages30328; return; } DisplayStrs30328 = DisplayFormats30328.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30328 = DisplayStrs30328.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30328 = DisplayStrs30328.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30328 = DisplayStrs30328.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30328").innerHTML = DisplayStrs30328; if (CountActives30328) //alert(SetTimeOutPeriods30328); setTimeout("CountBacks30328(" + (secs+CountSteppers30328) + ")", SetTimeOutPeriods30328); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30328)=="undefined") BackColors30328 = ""; if (typeof(ForeColors30328)=="undefined") ForeColors30328= "white"; if (typeof(TargetDates30328)=="undefined") TargetDates30328 = "04/27/2024 10:00:00 PM"; if (typeof(DisplayFormats30328)=="undefined") DisplayFormats30328 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30328)=="undefined") CountActives30328 = true; if (typeof(FinishMessages30328)=="undefined") FinishMessages30328 = ""; if (typeof(CountSteppers30328)!="number") CountSteppers30328 = -1; if (typeof(LeadingZeros30328)=="undefined") LeadingZeros30328 = true; CountSteppers30328 = Math.ceil(CountSteppers30328); if (CountSteppers30328 == 0) CountActives30328 = false; var SetTimeOutPeriods30328 = (Math.abs(CountSteppers30328)-1)*1000 + 990; puti(BackColors30328, ForeColors30328); var dthens30328 = new Date(TargetDates30328); var dnows30328 = new Date("05/05/2024 6:11:22 PM"); if(CountSteppers30328>0) ddiffs30328 = new Date(dnows30328-dthens30328); else ddiffs30328 = new Date(dthens30328-dnows30328); gsecss30328 = Math.floor(ddiffs30328.valueOf()/1000); CountBacks30328(gsecss30328);