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 (LeadingZeros30498 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30498(secs) { if (secs < 0) { document.getElementById("cntdwns30498").innerHTML = FinishMessages30498; return; } DisplayStrs30498 = DisplayFormats30498.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30498 = DisplayStrs30498.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30498 = DisplayStrs30498.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30498 = DisplayStrs30498.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30498").innerHTML = DisplayStrs30498; if (CountActives30498) //alert(SetTimeOutPeriods30498); setTimeout("CountBacks30498(" + (secs+CountSteppers30498) + ")", SetTimeOutPeriods30498); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30498)=="undefined") BackColors30498 = ""; if (typeof(ForeColors30498)=="undefined") ForeColors30498= "white"; if (typeof(TargetDates30498)=="undefined") TargetDates30498 = "09/23/2024 10:00:00 PM"; if (typeof(DisplayFormats30498)=="undefined") DisplayFormats30498 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30498)=="undefined") CountActives30498 = true; if (typeof(FinishMessages30498)=="undefined") FinishMessages30498 = ""; if (typeof(CountSteppers30498)!="number") CountSteppers30498 = -1; if (typeof(LeadingZeros30498)=="undefined") LeadingZeros30498 = true; CountSteppers30498 = Math.ceil(CountSteppers30498); if (CountSteppers30498 == 0) CountActives30498 = false; var SetTimeOutPeriods30498 = (Math.abs(CountSteppers30498)-1)*1000 + 990; puti(BackColors30498, ForeColors30498); var dthens30498 = new Date(TargetDates30498); var dnows30498 = new Date("09/27/2024 1:33:43 AM"); if(CountSteppers30498>0) ddiffs30498 = new Date(dnows30498-dthens30498); else ddiffs30498 = new Date(dthens30498-dnows30498); gsecss30498 = Math.floor(ddiffs30498.valueOf()/1000); CountBacks30498(gsecss30498);