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 (LeadingZeros30499 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30499(secs) { if (secs < 0) { document.getElementById("cntdwns30499").innerHTML = FinishMessages30499; return; } DisplayStrs30499 = DisplayFormats30499.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30499 = DisplayStrs30499.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30499 = DisplayStrs30499.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30499 = DisplayStrs30499.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30499").innerHTML = DisplayStrs30499; if (CountActives30499) //alert(SetTimeOutPeriods30499); setTimeout("CountBacks30499(" + (secs+CountSteppers30499) + ")", SetTimeOutPeriods30499); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30499)=="undefined") BackColors30499 = ""; if (typeof(ForeColors30499)=="undefined") ForeColors30499= "white"; if (typeof(TargetDates30499)=="undefined") TargetDates30499 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30499)=="undefined") DisplayFormats30499 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30499)=="undefined") CountActives30499 = true; if (typeof(FinishMessages30499)=="undefined") FinishMessages30499 = ""; if (typeof(CountSteppers30499)!="number") CountSteppers30499 = -1; if (typeof(LeadingZeros30499)=="undefined") LeadingZeros30499 = true; CountSteppers30499 = Math.ceil(CountSteppers30499); if (CountSteppers30499 == 0) CountActives30499 = false; var SetTimeOutPeriods30499 = (Math.abs(CountSteppers30499)-1)*1000 + 990; puti(BackColors30499, ForeColors30499); var dthens30499 = new Date(TargetDates30499); var dnows30499 = new Date("09/08/2024 2:21:03 AM"); if(CountSteppers30499>0) ddiffs30499 = new Date(dnows30499-dthens30499); else ddiffs30499 = new Date(dthens30499-dnows30499); gsecss30499 = Math.floor(ddiffs30499.valueOf()/1000); CountBacks30499(gsecss30499);