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 (LeadingZeros30454 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30454(secs) { if (secs < 0) { document.getElementById("cntdwns30454").innerHTML = FinishMessages30454; return; } DisplayStrs30454 = DisplayFormats30454.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30454 = DisplayStrs30454.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30454 = DisplayStrs30454.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30454 = DisplayStrs30454.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30454").innerHTML = DisplayStrs30454; if (CountActives30454) //alert(SetTimeOutPeriods30454); setTimeout("CountBacks30454(" + (secs+CountSteppers30454) + ")", SetTimeOutPeriods30454); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30454)=="undefined") BackColors30454 = ""; if (typeof(ForeColors30454)=="undefined") ForeColors30454= "white"; if (typeof(TargetDates30454)=="undefined") TargetDates30454 = "04/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30454)=="undefined") DisplayFormats30454 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30454)=="undefined") CountActives30454 = true; if (typeof(FinishMessages30454)=="undefined") FinishMessages30454 = ""; if (typeof(CountSteppers30454)!="number") CountSteppers30454 = -1; if (typeof(LeadingZeros30454)=="undefined") LeadingZeros30454 = true; CountSteppers30454 = Math.ceil(CountSteppers30454); if (CountSteppers30454 == 0) CountActives30454 = false; var SetTimeOutPeriods30454 = (Math.abs(CountSteppers30454)-1)*1000 + 990; puti(BackColors30454, ForeColors30454); var dthens30454 = new Date(TargetDates30454); var dnows30454 = new Date("05/08/2024 7:02:22 PM"); if(CountSteppers30454>0) ddiffs30454 = new Date(dnows30454-dthens30454); else ddiffs30454 = new Date(dthens30454-dnows30454); gsecss30454 = Math.floor(ddiffs30454.valueOf()/1000); CountBacks30454(gsecss30454);