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 (LeadingZeros30098 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30098(secs) { if (secs < 0) { document.getElementById("cntdwns30098").innerHTML = FinishMessages30098; return; } DisplayStrs30098 = DisplayFormats30098.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30098 = DisplayStrs30098.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30098 = DisplayStrs30098.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30098 = DisplayStrs30098.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30098").innerHTML = DisplayStrs30098; if (CountActives30098) //alert(SetTimeOutPeriods30098); setTimeout("CountBacks30098(" + (secs+CountSteppers30098) + ")", SetTimeOutPeriods30098); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30098)=="undefined") BackColors30098 = ""; if (typeof(ForeColors30098)=="undefined") ForeColors30098= "white"; if (typeof(TargetDates30098)=="undefined") TargetDates30098 = "04/25/2024 11:00:00 PM"; if (typeof(DisplayFormats30098)=="undefined") DisplayFormats30098 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30098)=="undefined") CountActives30098 = true; if (typeof(FinishMessages30098)=="undefined") FinishMessages30098 = ""; if (typeof(CountSteppers30098)!="number") CountSteppers30098 = -1; if (typeof(LeadingZeros30098)=="undefined") LeadingZeros30098 = true; CountSteppers30098 = Math.ceil(CountSteppers30098); if (CountSteppers30098 == 0) CountActives30098 = false; var SetTimeOutPeriods30098 = (Math.abs(CountSteppers30098)-1)*1000 + 990; puti(BackColors30098, ForeColors30098); var dthens30098 = new Date(TargetDates30098); var dnows30098 = new Date("05/03/2024 8:08:28 PM"); if(CountSteppers30098>0) ddiffs30098 = new Date(dnows30098-dthens30098); else ddiffs30098 = new Date(dthens30098-dnows30098); gsecss30098 = Math.floor(ddiffs30098.valueOf()/1000); CountBacks30098(gsecss30098);