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 (LeadingZeros30705 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30705(secs) { if (secs < 0) { document.getElementById("cntdwns30705").innerHTML = FinishMessages30705; return; } DisplayStrs30705 = DisplayFormats30705.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30705 = DisplayStrs30705.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30705 = DisplayStrs30705.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30705 = DisplayStrs30705.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30705").innerHTML = DisplayStrs30705; if (CountActives30705) //alert(SetTimeOutPeriods30705); setTimeout("CountBacks30705(" + (secs+CountSteppers30705) + ")", SetTimeOutPeriods30705); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30705)=="undefined") BackColors30705 = ""; if (typeof(ForeColors30705)=="undefined") ForeColors30705= "white"; if (typeof(TargetDates30705)=="undefined") TargetDates30705 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30705)=="undefined") DisplayFormats30705 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30705)=="undefined") CountActives30705 = true; if (typeof(FinishMessages30705)=="undefined") FinishMessages30705 = ""; if (typeof(CountSteppers30705)!="number") CountSteppers30705 = -1; if (typeof(LeadingZeros30705)=="undefined") LeadingZeros30705 = true; CountSteppers30705 = Math.ceil(CountSteppers30705); if (CountSteppers30705 == 0) CountActives30705 = false; var SetTimeOutPeriods30705 = (Math.abs(CountSteppers30705)-1)*1000 + 990; puti(BackColors30705, ForeColors30705); var dthens30705 = new Date(TargetDates30705); var dnows30705 = new Date("09/08/2024 2:08:34 AM"); if(CountSteppers30705>0) ddiffs30705 = new Date(dnows30705-dthens30705); else ddiffs30705 = new Date(dthens30705-dnows30705); gsecss30705 = Math.floor(ddiffs30705.valueOf()/1000); CountBacks30705(gsecss30705);