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 (LeadingZeros30532 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30532(secs) { if (secs < 0) { document.getElementById("cntdwns30532").innerHTML = FinishMessages30532; return; } DisplayStrs30532 = DisplayFormats30532.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30532 = DisplayStrs30532.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30532 = DisplayStrs30532.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30532 = DisplayStrs30532.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30532").innerHTML = DisplayStrs30532; if (CountActives30532) //alert(SetTimeOutPeriods30532); setTimeout("CountBacks30532(" + (secs+CountSteppers30532) + ")", SetTimeOutPeriods30532); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30532)=="undefined") BackColors30532 = ""; if (typeof(ForeColors30532)=="undefined") ForeColors30532= "white"; if (typeof(TargetDates30532)=="undefined") TargetDates30532 = "06/19/2024 10:00:00 PM"; if (typeof(DisplayFormats30532)=="undefined") DisplayFormats30532 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30532)=="undefined") CountActives30532 = true; if (typeof(FinishMessages30532)=="undefined") FinishMessages30532 = ""; if (typeof(CountSteppers30532)!="number") CountSteppers30532 = -1; if (typeof(LeadingZeros30532)=="undefined") LeadingZeros30532 = true; CountSteppers30532 = Math.ceil(CountSteppers30532); if (CountSteppers30532 == 0) CountActives30532 = false; var SetTimeOutPeriods30532 = (Math.abs(CountSteppers30532)-1)*1000 + 990; puti(BackColors30532, ForeColors30532); var dthens30532 = new Date(TargetDates30532); var dnows30532 = new Date("06/26/2024 5:04:13 AM"); if(CountSteppers30532>0) ddiffs30532 = new Date(dnows30532-dthens30532); else ddiffs30532 = new Date(dthens30532-dnows30532); gsecss30532 = Math.floor(ddiffs30532.valueOf()/1000); CountBacks30532(gsecss30532);