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 (LeadingZeros31905 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31905(secs) { if (secs < 0) { document.getElementById("cntdwns31905").innerHTML = FinishMessages31905; return; } DisplayStrs31905 = DisplayFormats31905.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31905 = DisplayStrs31905.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31905 = DisplayStrs31905.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31905 = DisplayStrs31905.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31905").innerHTML = DisplayStrs31905; if (CountActives31905) //alert(SetTimeOutPeriods31905); setTimeout("CountBacks31905(" + (secs+CountSteppers31905) + ")", SetTimeOutPeriods31905); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31905)=="undefined") BackColors31905 = ""; if (typeof(ForeColors31905)=="undefined") ForeColors31905= "white"; if (typeof(TargetDates31905)=="undefined") TargetDates31905 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31905)=="undefined") DisplayFormats31905 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31905)=="undefined") CountActives31905 = true; if (typeof(FinishMessages31905)=="undefined") FinishMessages31905 = ""; if (typeof(CountSteppers31905)!="number") CountSteppers31905 = -1; if (typeof(LeadingZeros31905)=="undefined") LeadingZeros31905 = true; CountSteppers31905 = Math.ceil(CountSteppers31905); if (CountSteppers31905 == 0) CountActives31905 = false; var SetTimeOutPeriods31905 = (Math.abs(CountSteppers31905)-1)*1000 + 990; puti(BackColors31905, ForeColors31905); var dthens31905 = new Date(TargetDates31905); var dnows31905 = new Date("03/29/2025 4:20:23 PM"); if(CountSteppers31905>0) ddiffs31905 = new Date(dnows31905-dthens31905); else ddiffs31905 = new Date(dthens31905-dnows31905); gsecss31905 = Math.floor(ddiffs31905.valueOf()/1000); CountBacks31905(gsecss31905);