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 (LeadingZeros31294 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31294(secs) { if (secs < 0) { document.getElementById("cntdwns31294").innerHTML = FinishMessages31294; return; } DisplayStrs31294 = DisplayFormats31294.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31294 = DisplayStrs31294.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31294 = DisplayStrs31294.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31294 = DisplayStrs31294.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31294").innerHTML = DisplayStrs31294; if (CountActives31294) //alert(SetTimeOutPeriods31294); setTimeout("CountBacks31294(" + (secs+CountSteppers31294) + ")", SetTimeOutPeriods31294); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31294)=="undefined") BackColors31294 = ""; if (typeof(ForeColors31294)=="undefined") ForeColors31294= "white"; if (typeof(TargetDates31294)=="undefined") TargetDates31294 = "10/27/2024 9:00:00 PM"; if (typeof(DisplayFormats31294)=="undefined") DisplayFormats31294 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31294)=="undefined") CountActives31294 = true; if (typeof(FinishMessages31294)=="undefined") FinishMessages31294 = ""; if (typeof(CountSteppers31294)!="number") CountSteppers31294 = -1; if (typeof(LeadingZeros31294)=="undefined") LeadingZeros31294 = true; CountSteppers31294 = Math.ceil(CountSteppers31294); if (CountSteppers31294 == 0) CountActives31294 = false; var SetTimeOutPeriods31294 = (Math.abs(CountSteppers31294)-1)*1000 + 990; puti(BackColors31294, ForeColors31294); var dthens31294 = new Date(TargetDates31294); var dnows31294 = new Date("10/26/2024 7:52:00 AM"); if(CountSteppers31294>0) ddiffs31294 = new Date(dnows31294-dthens31294); else ddiffs31294 = new Date(dthens31294-dnows31294); gsecss31294 = Math.floor(ddiffs31294.valueOf()/1000); CountBacks31294(gsecss31294);