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 (LeadingZeros31228 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31228(secs) { if (secs < 0) { document.getElementById("cntdwns31228").innerHTML = FinishMessages31228; return; } DisplayStrs31228 = DisplayFormats31228.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31228 = DisplayStrs31228.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31228 = DisplayStrs31228.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31228 = DisplayStrs31228.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31228").innerHTML = DisplayStrs31228; if (CountActives31228) //alert(SetTimeOutPeriods31228); setTimeout("CountBacks31228(" + (secs+CountSteppers31228) + ")", SetTimeOutPeriods31228); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31228)=="undefined") BackColors31228 = ""; if (typeof(ForeColors31228)=="undefined") ForeColors31228= "white"; if (typeof(TargetDates31228)=="undefined") TargetDates31228 = "10/26/2024 10:00:00 PM"; if (typeof(DisplayFormats31228)=="undefined") DisplayFormats31228 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31228)=="undefined") CountActives31228 = true; if (typeof(FinishMessages31228)=="undefined") FinishMessages31228 = ""; if (typeof(CountSteppers31228)!="number") CountSteppers31228 = -1; if (typeof(LeadingZeros31228)=="undefined") LeadingZeros31228 = true; CountSteppers31228 = Math.ceil(CountSteppers31228); if (CountSteppers31228 == 0) CountActives31228 = false; var SetTimeOutPeriods31228 = (Math.abs(CountSteppers31228)-1)*1000 + 990; puti(BackColors31228, ForeColors31228); var dthens31228 = new Date(TargetDates31228); var dnows31228 = new Date("10/26/2024 7:51:59 AM"); if(CountSteppers31228>0) ddiffs31228 = new Date(dnows31228-dthens31228); else ddiffs31228 = new Date(dthens31228-dnows31228); gsecss31228 = Math.floor(ddiffs31228.valueOf()/1000); CountBacks31228(gsecss31228);