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 (LeadingZeros30651 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30651(secs) { if (secs < 0) { document.getElementById("cntdwns30651").innerHTML = FinishMessages30651; return; } DisplayStrs30651 = DisplayFormats30651.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30651 = DisplayStrs30651.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30651 = DisplayStrs30651.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30651 = DisplayStrs30651.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30651").innerHTML = DisplayStrs30651; if (CountActives30651) //alert(SetTimeOutPeriods30651); setTimeout("CountBacks30651(" + (secs+CountSteppers30651) + ")", SetTimeOutPeriods30651); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30651)=="undefined") BackColors30651 = ""; if (typeof(ForeColors30651)=="undefined") ForeColors30651= "white"; if (typeof(TargetDates30651)=="undefined") TargetDates30651 = "07/29/2024 10:00:00 PM"; if (typeof(DisplayFormats30651)=="undefined") DisplayFormats30651 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30651)=="undefined") CountActives30651 = true; if (typeof(FinishMessages30651)=="undefined") FinishMessages30651 = ""; if (typeof(CountSteppers30651)!="number") CountSteppers30651 = -1; if (typeof(LeadingZeros30651)=="undefined") LeadingZeros30651 = true; CountSteppers30651 = Math.ceil(CountSteppers30651); if (CountSteppers30651 == 0) CountActives30651 = false; var SetTimeOutPeriods30651 = (Math.abs(CountSteppers30651)-1)*1000 + 990; puti(BackColors30651, ForeColors30651); var dthens30651 = new Date(TargetDates30651); var dnows30651 = new Date("09/08/2024 2:20:54 AM"); if(CountSteppers30651>0) ddiffs30651 = new Date(dnows30651-dthens30651); else ddiffs30651 = new Date(dthens30651-dnows30651); gsecss30651 = Math.floor(ddiffs30651.valueOf()/1000); CountBacks30651(gsecss30651);