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 (LeadingZeros30647 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30647(secs) { if (secs < 0) { document.getElementById("cntdwns30647").innerHTML = FinishMessages30647; return; } DisplayStrs30647 = DisplayFormats30647.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30647 = DisplayStrs30647.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30647 = DisplayStrs30647.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30647 = DisplayStrs30647.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30647").innerHTML = DisplayStrs30647; if (CountActives30647) //alert(SetTimeOutPeriods30647); setTimeout("CountBacks30647(" + (secs+CountSteppers30647) + ")", SetTimeOutPeriods30647); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30647)=="undefined") BackColors30647 = ""; if (typeof(ForeColors30647)=="undefined") ForeColors30647= "white"; if (typeof(TargetDates30647)=="undefined") TargetDates30647 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30647)=="undefined") DisplayFormats30647 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30647)=="undefined") CountActives30647 = true; if (typeof(FinishMessages30647)=="undefined") FinishMessages30647 = ""; if (typeof(CountSteppers30647)!="number") CountSteppers30647 = -1; if (typeof(LeadingZeros30647)=="undefined") LeadingZeros30647 = true; CountSteppers30647 = Math.ceil(CountSteppers30647); if (CountSteppers30647 == 0) CountActives30647 = false; var SetTimeOutPeriods30647 = (Math.abs(CountSteppers30647)-1)*1000 + 990; puti(BackColors30647, ForeColors30647); var dthens30647 = new Date(TargetDates30647); var dnows30647 = new Date("09/08/2024 2:13:33 AM"); if(CountSteppers30647>0) ddiffs30647 = new Date(dnows30647-dthens30647); else ddiffs30647 = new Date(dthens30647-dnows30647); gsecss30647 = Math.floor(ddiffs30647.valueOf()/1000); CountBacks30647(gsecss30647);