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 (LeadingZeros30543 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks30543(secs) { if (secs < 0) { document.getElementById("cntdwns30543").innerHTML = FinishMessages30543; return; } DisplayStrs30543 = DisplayFormats30543.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs30543 = DisplayStrs30543.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs30543 = DisplayStrs30543.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs30543 = DisplayStrs30543.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns30543").innerHTML = DisplayStrs30543; if (CountActives30543) //alert(SetTimeOutPeriods30543); setTimeout("CountBacks30543(" + (secs+CountSteppers30543) + ")", SetTimeOutPeriods30543); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors30543)=="undefined") BackColors30543 = ""; if (typeof(ForeColors30543)=="undefined") ForeColors30543= "white"; if (typeof(TargetDates30543)=="undefined") TargetDates30543 = "07/30/2024 10:00:00 PM"; if (typeof(DisplayFormats30543)=="undefined") DisplayFormats30543 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives30543)=="undefined") CountActives30543 = true; if (typeof(FinishMessages30543)=="undefined") FinishMessages30543 = ""; if (typeof(CountSteppers30543)!="number") CountSteppers30543 = -1; if (typeof(LeadingZeros30543)=="undefined") LeadingZeros30543 = true; CountSteppers30543 = Math.ceil(CountSteppers30543); if (CountSteppers30543 == 0) CountActives30543 = false; var SetTimeOutPeriods30543 = (Math.abs(CountSteppers30543)-1)*1000 + 990; puti(BackColors30543, ForeColors30543); var dthens30543 = new Date(TargetDates30543); var dnows30543 = new Date("09/08/2024 2:04:50 AM"); if(CountSteppers30543>0) ddiffs30543 = new Date(dnows30543-dthens30543); else ddiffs30543 = new Date(dthens30543-dnows30543); gsecss30543 = Math.floor(ddiffs30543.valueOf()/1000); CountBacks30543(gsecss30543);