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 (LeadingZeros30549 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30549(secs) { if (secs < 0) { document.getElementById("cntdwns30549").innerHTML = FinishMessages30549; return; } DisplayStrs30549 = DisplayFormats30549.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30549 = DisplayStrs30549.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30549 = DisplayStrs30549.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30549 = DisplayStrs30549.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30549").innerHTML = DisplayStrs30549; if (CountActives30549) //alert(SetTimeOutPeriods30549); setTimeout("CountBacks30549(" + (secs+CountSteppers30549) + ")", SetTimeOutPeriods30549); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30549)=="undefined") BackColors30549 = ""; if (typeof(ForeColors30549)=="undefined") ForeColors30549= "white"; if (typeof(TargetDates30549)=="undefined") TargetDates30549 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30549)=="undefined") DisplayFormats30549 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30549)=="undefined") CountActives30549 = true; if (typeof(FinishMessages30549)=="undefined") FinishMessages30549 = ""; if (typeof(CountSteppers30549)!="number") CountSteppers30549 = -1; if (typeof(LeadingZeros30549)=="undefined") LeadingZeros30549 = true; CountSteppers30549 = Math.ceil(CountSteppers30549); if (CountSteppers30549 == 0) CountActives30549 = false; var SetTimeOutPeriods30549 = (Math.abs(CountSteppers30549)-1)*1000 + 990; puti(BackColors30549, ForeColors30549); var dthens30549 = new Date(TargetDates30549); var dnows30549 = new Date("09/08/2024 2:23:05 AM"); if(CountSteppers30549>0) ddiffs30549 = new Date(dnows30549-dthens30549); else ddiffs30549 = new Date(dthens30549-dnows30549); gsecss30549 = Math.floor(ddiffs30549.valueOf()/1000); CountBacks30549(gsecss30549);