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 (LeadingZeros31886 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31886(secs) { if (secs < 0) { document.getElementById("cntdwns31886").innerHTML = FinishMessages31886; return; } DisplayStrs31886 = DisplayFormats31886.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31886 = DisplayStrs31886.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31886 = DisplayStrs31886.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31886 = DisplayStrs31886.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31886").innerHTML = DisplayStrs31886; if (CountActives31886) //alert(SetTimeOutPeriods31886); setTimeout("CountBacks31886(" + (secs+CountSteppers31886) + ")", SetTimeOutPeriods31886); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31886)=="undefined") BackColors31886 = ""; if (typeof(ForeColors31886)=="undefined") ForeColors31886= "white"; if (typeof(TargetDates31886)=="undefined") TargetDates31886 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31886)=="undefined") DisplayFormats31886 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31886)=="undefined") CountActives31886 = true; if (typeof(FinishMessages31886)=="undefined") FinishMessages31886 = ""; if (typeof(CountSteppers31886)!="number") CountSteppers31886 = -1; if (typeof(LeadingZeros31886)=="undefined") LeadingZeros31886 = true; CountSteppers31886 = Math.ceil(CountSteppers31886); if (CountSteppers31886 == 0) CountActives31886 = false; var SetTimeOutPeriods31886 = (Math.abs(CountSteppers31886)-1)*1000 + 990; puti(BackColors31886, ForeColors31886); var dthens31886 = new Date(TargetDates31886); var dnows31886 = new Date("03/12/2025 9:14:49 PM"); if(CountSteppers31886>0) ddiffs31886 = new Date(dnows31886-dthens31886); else ddiffs31886 = new Date(dthens31886-dnows31886); gsecss31886 = Math.floor(ddiffs31886.valueOf()/1000); CountBacks31886(gsecss31886);