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 (LeadingZeros30574 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30574(secs) { if (secs < 0) { document.getElementById("cntdwns30574").innerHTML = FinishMessages30574; return; } DisplayStrs30574 = DisplayFormats30574.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30574 = DisplayStrs30574.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30574 = DisplayStrs30574.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30574 = DisplayStrs30574.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30574").innerHTML = DisplayStrs30574; if (CountActives30574) //alert(SetTimeOutPeriods30574); setTimeout("CountBacks30574(" + (secs+CountSteppers30574) + ")", SetTimeOutPeriods30574); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30574)=="undefined") BackColors30574 = ""; if (typeof(ForeColors30574)=="undefined") ForeColors30574= "white"; if (typeof(TargetDates30574)=="undefined") TargetDates30574 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30574)=="undefined") DisplayFormats30574 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30574)=="undefined") CountActives30574 = true; if (typeof(FinishMessages30574)=="undefined") FinishMessages30574 = ""; if (typeof(CountSteppers30574)!="number") CountSteppers30574 = -1; if (typeof(LeadingZeros30574)=="undefined") LeadingZeros30574 = true; CountSteppers30574 = Math.ceil(CountSteppers30574); if (CountSteppers30574 == 0) CountActives30574 = false; var SetTimeOutPeriods30574 = (Math.abs(CountSteppers30574)-1)*1000 + 990; puti(BackColors30574, ForeColors30574); var dthens30574 = new Date(TargetDates30574); var dnows30574 = new Date("09/08/2024 2:14:00 AM"); if(CountSteppers30574>0) ddiffs30574 = new Date(dnows30574-dthens30574); else ddiffs30574 = new Date(dthens30574-dnows30574); gsecss30574 = Math.floor(ddiffs30574.valueOf()/1000); CountBacks30574(gsecss30574);