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 (LeadingZeros30645 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30645(secs) { if (secs < 0) { document.getElementById("cntdwns30645").innerHTML = FinishMessages30645; return; } DisplayStrs30645 = DisplayFormats30645.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30645 = DisplayStrs30645.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30645 = DisplayStrs30645.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30645 = DisplayStrs30645.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30645").innerHTML = DisplayStrs30645; if (CountActives30645) //alert(SetTimeOutPeriods30645); setTimeout("CountBacks30645(" + (secs+CountSteppers30645) + ")", SetTimeOutPeriods30645); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30645)=="undefined") BackColors30645 = ""; if (typeof(ForeColors30645)=="undefined") ForeColors30645= "white"; if (typeof(TargetDates30645)=="undefined") TargetDates30645 = "06/18/2024 10:00:00 PM"; if (typeof(DisplayFormats30645)=="undefined") DisplayFormats30645 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30645)=="undefined") CountActives30645 = true; if (typeof(FinishMessages30645)=="undefined") FinishMessages30645 = ""; if (typeof(CountSteppers30645)!="number") CountSteppers30645 = -1; if (typeof(LeadingZeros30645)=="undefined") LeadingZeros30645 = true; CountSteppers30645 = Math.ceil(CountSteppers30645); if (CountSteppers30645 == 0) CountActives30645 = false; var SetTimeOutPeriods30645 = (Math.abs(CountSteppers30645)-1)*1000 + 990; puti(BackColors30645, ForeColors30645); var dthens30645 = new Date(TargetDates30645); var dnows30645 = new Date("06/26/2024 5:33:07 AM"); if(CountSteppers30645>0) ddiffs30645 = new Date(dnows30645-dthens30645); else ddiffs30645 = new Date(dthens30645-dnows30645); gsecss30645 = Math.floor(ddiffs30645.valueOf()/1000); CountBacks30645(gsecss30645);