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 (LeadingZeros30704 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30704(secs) { if (secs < 0) { document.getElementById("cntdwns30704").innerHTML = FinishMessages30704; return; } DisplayStrs30704 = DisplayFormats30704.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30704 = DisplayStrs30704.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30704 = DisplayStrs30704.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30704 = DisplayStrs30704.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30704").innerHTML = DisplayStrs30704; if (CountActives30704) //alert(SetTimeOutPeriods30704); setTimeout("CountBacks30704(" + (secs+CountSteppers30704) + ")", SetTimeOutPeriods30704); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30704)=="undefined") BackColors30704 = ""; if (typeof(ForeColors30704)=="undefined") ForeColors30704= "white"; if (typeof(TargetDates30704)=="undefined") TargetDates30704 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30704)=="undefined") DisplayFormats30704 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30704)=="undefined") CountActives30704 = true; if (typeof(FinishMessages30704)=="undefined") FinishMessages30704 = ""; if (typeof(CountSteppers30704)!="number") CountSteppers30704 = -1; if (typeof(LeadingZeros30704)=="undefined") LeadingZeros30704 = true; CountSteppers30704 = Math.ceil(CountSteppers30704); if (CountSteppers30704 == 0) CountActives30704 = false; var SetTimeOutPeriods30704 = (Math.abs(CountSteppers30704)-1)*1000 + 990; puti(BackColors30704, ForeColors30704); var dthens30704 = new Date(TargetDates30704); var dnows30704 = new Date("09/08/2024 2:39:50 AM"); if(CountSteppers30704>0) ddiffs30704 = new Date(dnows30704-dthens30704); else ddiffs30704 = new Date(dthens30704-dnows30704); gsecss30704 = Math.floor(ddiffs30704.valueOf()/1000); CountBacks30704(gsecss30704);