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 (LeadingZeros30575 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30575(secs) { if (secs < 0) { document.getElementById("cntdwns30575").innerHTML = FinishMessages30575; return; } DisplayStrs30575 = DisplayFormats30575.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30575 = DisplayStrs30575.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30575 = DisplayStrs30575.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30575 = DisplayStrs30575.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30575").innerHTML = DisplayStrs30575; if (CountActives30575) //alert(SetTimeOutPeriods30575); setTimeout("CountBacks30575(" + (secs+CountSteppers30575) + ")", SetTimeOutPeriods30575); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30575)=="undefined") BackColors30575 = ""; if (typeof(ForeColors30575)=="undefined") ForeColors30575= "white"; if (typeof(TargetDates30575)=="undefined") TargetDates30575 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30575)=="undefined") DisplayFormats30575 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30575)=="undefined") CountActives30575 = true; if (typeof(FinishMessages30575)=="undefined") FinishMessages30575 = ""; if (typeof(CountSteppers30575)!="number") CountSteppers30575 = -1; if (typeof(LeadingZeros30575)=="undefined") LeadingZeros30575 = true; CountSteppers30575 = Math.ceil(CountSteppers30575); if (CountSteppers30575 == 0) CountActives30575 = false; var SetTimeOutPeriods30575 = (Math.abs(CountSteppers30575)-1)*1000 + 990; puti(BackColors30575, ForeColors30575); var dthens30575 = new Date(TargetDates30575); var dnows30575 = new Date("10/18/2024 8:04:41 AM"); if(CountSteppers30575>0) ddiffs30575 = new Date(dnows30575-dthens30575); else ddiffs30575 = new Date(dthens30575-dnows30575); gsecss30575 = Math.floor(ddiffs30575.valueOf()/1000); CountBacks30575(gsecss30575);