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 (LeadingZeros30655 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30655(secs) { if (secs < 0) { document.getElementById("cntdwns30655").innerHTML = FinishMessages30655; return; } DisplayStrs30655 = DisplayFormats30655.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30655 = DisplayStrs30655.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30655 = DisplayStrs30655.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30655 = DisplayStrs30655.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30655").innerHTML = DisplayStrs30655; if (CountActives30655) //alert(SetTimeOutPeriods30655); setTimeout("CountBacks30655(" + (secs+CountSteppers30655) + ")", SetTimeOutPeriods30655); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30655)=="undefined") BackColors30655 = ""; if (typeof(ForeColors30655)=="undefined") ForeColors30655= "white"; if (typeof(TargetDates30655)=="undefined") TargetDates30655 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30655)=="undefined") DisplayFormats30655 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30655)=="undefined") CountActives30655 = true; if (typeof(FinishMessages30655)=="undefined") FinishMessages30655 = ""; if (typeof(CountSteppers30655)!="number") CountSteppers30655 = -1; if (typeof(LeadingZeros30655)=="undefined") LeadingZeros30655 = true; CountSteppers30655 = Math.ceil(CountSteppers30655); if (CountSteppers30655 == 0) CountActives30655 = false; var SetTimeOutPeriods30655 = (Math.abs(CountSteppers30655)-1)*1000 + 990; puti(BackColors30655, ForeColors30655); var dthens30655 = new Date(TargetDates30655); var dnows30655 = new Date("09/08/2024 2:35:48 AM"); if(CountSteppers30655>0) ddiffs30655 = new Date(dnows30655-dthens30655); else ddiffs30655 = new Date(dthens30655-dnows30655); gsecss30655 = Math.floor(ddiffs30655.valueOf()/1000); CountBacks30655(gsecss30655);