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 (LeadingZeros30732 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30732(secs) { if (secs < 0) { document.getElementById("cntdwns30732").innerHTML = FinishMessages30732; return; } DisplayStrs30732 = DisplayFormats30732.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30732 = DisplayStrs30732.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30732 = DisplayStrs30732.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30732 = DisplayStrs30732.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30732").innerHTML = DisplayStrs30732; if (CountActives30732) //alert(SetTimeOutPeriods30732); setTimeout("CountBacks30732(" + (secs+CountSteppers30732) + ")", SetTimeOutPeriods30732); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30732)=="undefined") BackColors30732 = ""; if (typeof(ForeColors30732)=="undefined") ForeColors30732= "white"; if (typeof(TargetDates30732)=="undefined") TargetDates30732 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30732)=="undefined") DisplayFormats30732 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30732)=="undefined") CountActives30732 = true; if (typeof(FinishMessages30732)=="undefined") FinishMessages30732 = ""; if (typeof(CountSteppers30732)!="number") CountSteppers30732 = -1; if (typeof(LeadingZeros30732)=="undefined") LeadingZeros30732 = true; CountSteppers30732 = Math.ceil(CountSteppers30732); if (CountSteppers30732 == 0) CountActives30732 = false; var SetTimeOutPeriods30732 = (Math.abs(CountSteppers30732)-1)*1000 + 990; puti(BackColors30732, ForeColors30732); var dthens30732 = new Date(TargetDates30732); var dnows30732 = new Date("09/08/2024 3:32:33 AM"); if(CountSteppers30732>0) ddiffs30732 = new Date(dnows30732-dthens30732); else ddiffs30732 = new Date(dthens30732-dnows30732); gsecss30732 = Math.floor(ddiffs30732.valueOf()/1000); CountBacks30732(gsecss30732);