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 (LeadingZeros30754 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30754(secs) { if (secs < 0) { document.getElementById("cntdwns30754").innerHTML = FinishMessages30754; return; } DisplayStrs30754 = DisplayFormats30754.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30754 = DisplayStrs30754.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30754 = DisplayStrs30754.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30754 = DisplayStrs30754.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30754").innerHTML = DisplayStrs30754; if (CountActives30754) //alert(SetTimeOutPeriods30754); setTimeout("CountBacks30754(" + (secs+CountSteppers30754) + ")", SetTimeOutPeriods30754); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30754)=="undefined") BackColors30754 = ""; if (typeof(ForeColors30754)=="undefined") ForeColors30754= "white"; if (typeof(TargetDates30754)=="undefined") TargetDates30754 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30754)=="undefined") DisplayFormats30754 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30754)=="undefined") CountActives30754 = true; if (typeof(FinishMessages30754)=="undefined") FinishMessages30754 = ""; if (typeof(CountSteppers30754)!="number") CountSteppers30754 = -1; if (typeof(LeadingZeros30754)=="undefined") LeadingZeros30754 = true; CountSteppers30754 = Math.ceil(CountSteppers30754); if (CountSteppers30754 == 0) CountActives30754 = false; var SetTimeOutPeriods30754 = (Math.abs(CountSteppers30754)-1)*1000 + 990; puti(BackColors30754, ForeColors30754); var dthens30754 = new Date(TargetDates30754); var dnows30754 = new Date("10/18/2024 6:06:25 AM"); if(CountSteppers30754>0) ddiffs30754 = new Date(dnows30754-dthens30754); else ddiffs30754 = new Date(dthens30754-dnows30754); gsecss30754 = Math.floor(ddiffs30754.valueOf()/1000); CountBacks30754(gsecss30754);