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 (LeadingZeros30734 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30734(secs) { if (secs < 0) { document.getElementById("cntdwns30734").innerHTML = FinishMessages30734; return; } DisplayStrs30734 = DisplayFormats30734.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30734 = DisplayStrs30734.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30734 = DisplayStrs30734.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30734 = DisplayStrs30734.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30734").innerHTML = DisplayStrs30734; if (CountActives30734) //alert(SetTimeOutPeriods30734); setTimeout("CountBacks30734(" + (secs+CountSteppers30734) + ")", SetTimeOutPeriods30734); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30734)=="undefined") BackColors30734 = ""; if (typeof(ForeColors30734)=="undefined") ForeColors30734= "white"; if (typeof(TargetDates30734)=="undefined") TargetDates30734 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30734)=="undefined") DisplayFormats30734 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30734)=="undefined") CountActives30734 = true; if (typeof(FinishMessages30734)=="undefined") FinishMessages30734 = ""; if (typeof(CountSteppers30734)!="number") CountSteppers30734 = -1; if (typeof(LeadingZeros30734)=="undefined") LeadingZeros30734 = true; CountSteppers30734 = Math.ceil(CountSteppers30734); if (CountSteppers30734 == 0) CountActives30734 = false; var SetTimeOutPeriods30734 = (Math.abs(CountSteppers30734)-1)*1000 + 990; puti(BackColors30734, ForeColors30734); var dthens30734 = new Date(TargetDates30734); var dnows30734 = new Date("10/18/2024 5:21:15 AM"); if(CountSteppers30734>0) ddiffs30734 = new Date(dnows30734-dthens30734); else ddiffs30734 = new Date(dthens30734-dnows30734); gsecss30734 = Math.floor(ddiffs30734.valueOf()/1000); CountBacks30734(gsecss30734);