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 (LeadingZeros30654 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30654(secs) { if (secs < 0) { document.getElementById("cntdwns30654").innerHTML = FinishMessages30654; return; } DisplayStrs30654 = DisplayFormats30654.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30654 = DisplayStrs30654.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30654 = DisplayStrs30654.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30654 = DisplayStrs30654.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30654").innerHTML = DisplayStrs30654; if (CountActives30654) //alert(SetTimeOutPeriods30654); setTimeout("CountBacks30654(" + (secs+CountSteppers30654) + ")", SetTimeOutPeriods30654); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30654)=="undefined") BackColors30654 = ""; if (typeof(ForeColors30654)=="undefined") ForeColors30654= "white"; if (typeof(TargetDates30654)=="undefined") TargetDates30654 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30654)=="undefined") DisplayFormats30654 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30654)=="undefined") CountActives30654 = true; if (typeof(FinishMessages30654)=="undefined") FinishMessages30654 = ""; if (typeof(CountSteppers30654)!="number") CountSteppers30654 = -1; if (typeof(LeadingZeros30654)=="undefined") LeadingZeros30654 = true; CountSteppers30654 = Math.ceil(CountSteppers30654); if (CountSteppers30654 == 0) CountActives30654 = false; var SetTimeOutPeriods30654 = (Math.abs(CountSteppers30654)-1)*1000 + 990; puti(BackColors30654, ForeColors30654); var dthens30654 = new Date(TargetDates30654); var dnows30654 = new Date("09/08/2024 2:45:39 AM"); if(CountSteppers30654>0) ddiffs30654 = new Date(dnows30654-dthens30654); else ddiffs30654 = new Date(dthens30654-dnows30654); gsecss30654 = Math.floor(ddiffs30654.valueOf()/1000); CountBacks30654(gsecss30654);