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 (LeadingZeros30803 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30803(secs) { if (secs < 0) { document.getElementById("cntdwns30803").innerHTML = FinishMessages30803; return; } DisplayStrs30803 = DisplayFormats30803.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30803 = DisplayStrs30803.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30803 = DisplayStrs30803.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30803 = DisplayStrs30803.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30803").innerHTML = DisplayStrs30803; if (CountActives30803) //alert(SetTimeOutPeriods30803); setTimeout("CountBacks30803(" + (secs+CountSteppers30803) + ")", SetTimeOutPeriods30803); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30803)=="undefined") BackColors30803 = ""; if (typeof(ForeColors30803)=="undefined") ForeColors30803= "white"; if (typeof(TargetDates30803)=="undefined") TargetDates30803 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30803)=="undefined") DisplayFormats30803 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30803)=="undefined") CountActives30803 = true; if (typeof(FinishMessages30803)=="undefined") FinishMessages30803 = ""; if (typeof(CountSteppers30803)!="number") CountSteppers30803 = -1; if (typeof(LeadingZeros30803)=="undefined") LeadingZeros30803 = true; CountSteppers30803 = Math.ceil(CountSteppers30803); if (CountSteppers30803 == 0) CountActives30803 = false; var SetTimeOutPeriods30803 = (Math.abs(CountSteppers30803)-1)*1000 + 990; puti(BackColors30803, ForeColors30803); var dthens30803 = new Date(TargetDates30803); var dnows30803 = new Date("10/18/2024 8:39:03 AM"); if(CountSteppers30803>0) ddiffs30803 = new Date(dnows30803-dthens30803); else ddiffs30803 = new Date(dthens30803-dnows30803); gsecss30803 = Math.floor(ddiffs30803.valueOf()/1000); CountBacks30803(gsecss30803);