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 (LeadingZeros30756 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30756(secs) { if (secs < 0) { document.getElementById("cntdwns30756").innerHTML = FinishMessages30756; return; } DisplayStrs30756 = DisplayFormats30756.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30756 = DisplayStrs30756.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30756 = DisplayStrs30756.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30756 = DisplayStrs30756.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30756").innerHTML = DisplayStrs30756; if (CountActives30756) //alert(SetTimeOutPeriods30756); setTimeout("CountBacks30756(" + (secs+CountSteppers30756) + ")", SetTimeOutPeriods30756); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30756)=="undefined") BackColors30756 = ""; if (typeof(ForeColors30756)=="undefined") ForeColors30756= "white"; if (typeof(TargetDates30756)=="undefined") TargetDates30756 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30756)=="undefined") DisplayFormats30756 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30756)=="undefined") CountActives30756 = true; if (typeof(FinishMessages30756)=="undefined") FinishMessages30756 = ""; if (typeof(CountSteppers30756)!="number") CountSteppers30756 = -1; if (typeof(LeadingZeros30756)=="undefined") LeadingZeros30756 = true; CountSteppers30756 = Math.ceil(CountSteppers30756); if (CountSteppers30756 == 0) CountActives30756 = false; var SetTimeOutPeriods30756 = (Math.abs(CountSteppers30756)-1)*1000 + 990; puti(BackColors30756, ForeColors30756); var dthens30756 = new Date(TargetDates30756); var dnows30756 = new Date("09/08/2024 5:07:55 AM"); if(CountSteppers30756>0) ddiffs30756 = new Date(dnows30756-dthens30756); else ddiffs30756 = new Date(dthens30756-dnows30756); gsecss30756 = Math.floor(ddiffs30756.valueOf()/1000); CountBacks30756(gsecss30756);