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 (LeadingZeros30808 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30808(secs) { if (secs < 0) { document.getElementById("cntdwns30808").innerHTML = FinishMessages30808; return; } DisplayStrs30808 = DisplayFormats30808.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30808 = DisplayStrs30808.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30808 = DisplayStrs30808.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30808 = DisplayStrs30808.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30808").innerHTML = DisplayStrs30808; if (CountActives30808) //alert(SetTimeOutPeriods30808); setTimeout("CountBacks30808(" + (secs+CountSteppers30808) + ")", SetTimeOutPeriods30808); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30808)=="undefined") BackColors30808 = ""; if (typeof(ForeColors30808)=="undefined") ForeColors30808= "white"; if (typeof(TargetDates30808)=="undefined") TargetDates30808 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30808)=="undefined") DisplayFormats30808 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30808)=="undefined") CountActives30808 = true; if (typeof(FinishMessages30808)=="undefined") FinishMessages30808 = ""; if (typeof(CountSteppers30808)!="number") CountSteppers30808 = -1; if (typeof(LeadingZeros30808)=="undefined") LeadingZeros30808 = true; CountSteppers30808 = Math.ceil(CountSteppers30808); if (CountSteppers30808 == 0) CountActives30808 = false; var SetTimeOutPeriods30808 = (Math.abs(CountSteppers30808)-1)*1000 + 990; puti(BackColors30808, ForeColors30808); var dthens30808 = new Date(TargetDates30808); var dnows30808 = new Date("10/18/2024 5:45:56 AM"); if(CountSteppers30808>0) ddiffs30808 = new Date(dnows30808-dthens30808); else ddiffs30808 = new Date(dthens30808-dnows30808); gsecss30808 = Math.floor(ddiffs30808.valueOf()/1000); CountBacks30808(gsecss30808);