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 (LeadingZeros30438 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30438(secs) { if (secs < 0) { document.getElementById("cntdwns30438").innerHTML = FinishMessages30438; return; } DisplayStrs30438 = DisplayFormats30438.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30438 = DisplayStrs30438.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30438 = DisplayStrs30438.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30438 = DisplayStrs30438.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30438").innerHTML = DisplayStrs30438; if (CountActives30438) //alert(SetTimeOutPeriods30438); setTimeout("CountBacks30438(" + (secs+CountSteppers30438) + ")", SetTimeOutPeriods30438); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30438)=="undefined") BackColors30438 = ""; if (typeof(ForeColors30438)=="undefined") ForeColors30438= "white"; if (typeof(TargetDates30438)=="undefined") TargetDates30438 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30438)=="undefined") DisplayFormats30438 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30438)=="undefined") CountActives30438 = true; if (typeof(FinishMessages30438)=="undefined") FinishMessages30438 = ""; if (typeof(CountSteppers30438)!="number") CountSteppers30438 = -1; if (typeof(LeadingZeros30438)=="undefined") LeadingZeros30438 = true; CountSteppers30438 = Math.ceil(CountSteppers30438); if (CountSteppers30438 == 0) CountActives30438 = false; var SetTimeOutPeriods30438 = (Math.abs(CountSteppers30438)-1)*1000 + 990; puti(BackColors30438, ForeColors30438); var dthens30438 = new Date(TargetDates30438); var dnows30438 = new Date("09/08/2024 2:18:09 AM"); if(CountSteppers30438>0) ddiffs30438 = new Date(dnows30438-dthens30438); else ddiffs30438 = new Date(dthens30438-dnows30438); gsecss30438 = Math.floor(ddiffs30438.valueOf()/1000); CountBacks30438(gsecss30438);