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 (LeadingZeros31964 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31964(secs) { if (secs < 0) { document.getElementById("cntdwns31964").innerHTML = FinishMessages31964; return; } DisplayStrs31964 = DisplayFormats31964.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31964 = DisplayStrs31964.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31964 = DisplayStrs31964.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31964 = DisplayStrs31964.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31964").innerHTML = DisplayStrs31964; if (CountActives31964) //alert(SetTimeOutPeriods31964); setTimeout("CountBacks31964(" + (secs+CountSteppers31964) + ")", SetTimeOutPeriods31964); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31964)=="undefined") BackColors31964 = ""; if (typeof(ForeColors31964)=="undefined") ForeColors31964= "white"; if (typeof(TargetDates31964)=="undefined") TargetDates31964 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31964)=="undefined") DisplayFormats31964 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31964)=="undefined") CountActives31964 = true; if (typeof(FinishMessages31964)=="undefined") FinishMessages31964 = ""; if (typeof(CountSteppers31964)!="number") CountSteppers31964 = -1; if (typeof(LeadingZeros31964)=="undefined") LeadingZeros31964 = true; CountSteppers31964 = Math.ceil(CountSteppers31964); if (CountSteppers31964 == 0) CountActives31964 = false; var SetTimeOutPeriods31964 = (Math.abs(CountSteppers31964)-1)*1000 + 990; puti(BackColors31964, ForeColors31964); var dthens31964 = new Date(TargetDates31964); var dnows31964 = new Date("03/13/2025 1:16:31 AM"); if(CountSteppers31964>0) ddiffs31964 = new Date(dnows31964-dthens31964); else ddiffs31964 = new Date(dthens31964-dnows31964); gsecss31964 = Math.floor(ddiffs31964.valueOf()/1000); CountBacks31964(gsecss31964);