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 (LeadingZeros30344 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30344(secs) { if (secs < 0) { document.getElementById("cntdwns30344").innerHTML = FinishMessages30344; return; } DisplayStrs30344 = DisplayFormats30344.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30344 = DisplayStrs30344.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30344 = DisplayStrs30344.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30344 = DisplayStrs30344.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30344").innerHTML = DisplayStrs30344; if (CountActives30344) //alert(SetTimeOutPeriods30344); setTimeout("CountBacks30344(" + (secs+CountSteppers30344) + ")", SetTimeOutPeriods30344); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30344)=="undefined") BackColors30344 = ""; if (typeof(ForeColors30344)=="undefined") ForeColors30344= "white"; if (typeof(TargetDates30344)=="undefined") TargetDates30344 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30344)=="undefined") DisplayFormats30344 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30344)=="undefined") CountActives30344 = true; if (typeof(FinishMessages30344)=="undefined") FinishMessages30344 = ""; if (typeof(CountSteppers30344)!="number") CountSteppers30344 = -1; if (typeof(LeadingZeros30344)=="undefined") LeadingZeros30344 = true; CountSteppers30344 = Math.ceil(CountSteppers30344); if (CountSteppers30344 == 0) CountActives30344 = false; var SetTimeOutPeriods30344 = (Math.abs(CountSteppers30344)-1)*1000 + 990; puti(BackColors30344, ForeColors30344); var dthens30344 = new Date(TargetDates30344); var dnows30344 = new Date("09/08/2024 2:02:30 AM"); if(CountSteppers30344>0) ddiffs30344 = new Date(dnows30344-dthens30344); else ddiffs30344 = new Date(dthens30344-dnows30344); gsecss30344 = Math.floor(ddiffs30344.valueOf()/1000); CountBacks30344(gsecss30344);