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 (LeadingZeros30757 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30757(secs) { if (secs < 0) { document.getElementById("cntdwns30757").innerHTML = FinishMessages30757; return; } DisplayStrs30757 = DisplayFormats30757.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30757 = DisplayStrs30757.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30757 = DisplayStrs30757.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30757 = DisplayStrs30757.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30757").innerHTML = DisplayStrs30757; if (CountActives30757) //alert(SetTimeOutPeriods30757); setTimeout("CountBacks30757(" + (secs+CountSteppers30757) + ")", SetTimeOutPeriods30757); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30757)=="undefined") BackColors30757 = ""; if (typeof(ForeColors30757)=="undefined") ForeColors30757= "white"; if (typeof(TargetDates30757)=="undefined") TargetDates30757 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30757)=="undefined") DisplayFormats30757 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30757)=="undefined") CountActives30757 = true; if (typeof(FinishMessages30757)=="undefined") FinishMessages30757 = ""; if (typeof(CountSteppers30757)!="number") CountSteppers30757 = -1; if (typeof(LeadingZeros30757)=="undefined") LeadingZeros30757 = true; CountSteppers30757 = Math.ceil(CountSteppers30757); if (CountSteppers30757 == 0) CountActives30757 = false; var SetTimeOutPeriods30757 = (Math.abs(CountSteppers30757)-1)*1000 + 990; puti(BackColors30757, ForeColors30757); var dthens30757 = new Date(TargetDates30757); var dnows30757 = new Date("10/18/2024 5:53:30 AM"); if(CountSteppers30757>0) ddiffs30757 = new Date(dnows30757-dthens30757); else ddiffs30757 = new Date(dthens30757-dnows30757); gsecss30757 = Math.floor(ddiffs30757.valueOf()/1000); CountBacks30757(gsecss30757);