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 (LeadingZeros31961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31961(secs) { if (secs < 0) { document.getElementById("cntdwns31961").innerHTML = FinishMessages31961; return; } DisplayStrs31961 = DisplayFormats31961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31961 = DisplayStrs31961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31961 = DisplayStrs31961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31961 = DisplayStrs31961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31961").innerHTML = DisplayStrs31961; if (CountActives31961) //alert(SetTimeOutPeriods31961); setTimeout("CountBacks31961(" + (secs+CountSteppers31961) + ")", SetTimeOutPeriods31961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31961)=="undefined") BackColors31961 = ""; if (typeof(ForeColors31961)=="undefined") ForeColors31961= "white"; if (typeof(TargetDates31961)=="undefined") TargetDates31961 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31961)=="undefined") DisplayFormats31961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31961)=="undefined") CountActives31961 = true; if (typeof(FinishMessages31961)=="undefined") FinishMessages31961 = ""; if (typeof(CountSteppers31961)!="number") CountSteppers31961 = -1; if (typeof(LeadingZeros31961)=="undefined") LeadingZeros31961 = true; CountSteppers31961 = Math.ceil(CountSteppers31961); if (CountSteppers31961 == 0) CountActives31961 = false; var SetTimeOutPeriods31961 = (Math.abs(CountSteppers31961)-1)*1000 + 990; puti(BackColors31961, ForeColors31961); var dthens31961 = new Date(TargetDates31961); var dnows31961 = new Date("03/13/2025 1:18:10 AM"); if(CountSteppers31961>0) ddiffs31961 = new Date(dnows31961-dthens31961); else ddiffs31961 = new Date(dthens31961-dnows31961); gsecss31961 = Math.floor(ddiffs31961.valueOf()/1000); CountBacks31961(gsecss31961);