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 (LeadingZeros30342 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30342(secs) { if (secs < 0) { document.getElementById("cntdwns30342").innerHTML = FinishMessages30342; return; } DisplayStrs30342 = DisplayFormats30342.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30342 = DisplayStrs30342.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30342 = DisplayStrs30342.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30342 = DisplayStrs30342.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30342").innerHTML = DisplayStrs30342; if (CountActives30342) //alert(SetTimeOutPeriods30342); setTimeout("CountBacks30342(" + (secs+CountSteppers30342) + ")", SetTimeOutPeriods30342); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30342)=="undefined") BackColors30342 = ""; if (typeof(ForeColors30342)=="undefined") ForeColors30342= "white"; if (typeof(TargetDates30342)=="undefined") TargetDates30342 = "04/21/2024 10:00:00 PM"; if (typeof(DisplayFormats30342)=="undefined") DisplayFormats30342 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30342)=="undefined") CountActives30342 = true; if (typeof(FinishMessages30342)=="undefined") FinishMessages30342 = ""; if (typeof(CountSteppers30342)!="number") CountSteppers30342 = -1; if (typeof(LeadingZeros30342)=="undefined") LeadingZeros30342 = true; CountSteppers30342 = Math.ceil(CountSteppers30342); if (CountSteppers30342 == 0) CountActives30342 = false; var SetTimeOutPeriods30342 = (Math.abs(CountSteppers30342)-1)*1000 + 990; puti(BackColors30342, ForeColors30342); var dthens30342 = new Date(TargetDates30342); var dnows30342 = new Date("05/03/2024 5:28:01 AM"); if(CountSteppers30342>0) ddiffs30342 = new Date(dnows30342-dthens30342); else ddiffs30342 = new Date(dthens30342-dnows30342); gsecss30342 = Math.floor(ddiffs30342.valueOf()/1000); CountBacks30342(gsecss30342);