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 (LeadingZeros31973 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31973(secs) { if (secs < 0) { document.getElementById("cntdwns31973").innerHTML = FinishMessages31973; return; } DisplayStrs31973 = DisplayFormats31973.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31973 = DisplayStrs31973.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31973 = DisplayStrs31973.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31973 = DisplayStrs31973.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31973").innerHTML = DisplayStrs31973; if (CountActives31973) //alert(SetTimeOutPeriods31973); setTimeout("CountBacks31973(" + (secs+CountSteppers31973) + ")", SetTimeOutPeriods31973); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31973)=="undefined") BackColors31973 = ""; if (typeof(ForeColors31973)=="undefined") ForeColors31973= "white"; if (typeof(TargetDates31973)=="undefined") TargetDates31973 = "03/31/2025 11:00:00 PM"; if (typeof(DisplayFormats31973)=="undefined") DisplayFormats31973 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31973)=="undefined") CountActives31973 = true; if (typeof(FinishMessages31973)=="undefined") FinishMessages31973 = ""; if (typeof(CountSteppers31973)!="number") CountSteppers31973 = -1; if (typeof(LeadingZeros31973)=="undefined") LeadingZeros31973 = true; CountSteppers31973 = Math.ceil(CountSteppers31973); if (CountSteppers31973 == 0) CountActives31973 = false; var SetTimeOutPeriods31973 = (Math.abs(CountSteppers31973)-1)*1000 + 990; puti(BackColors31973, ForeColors31973); var dthens31973 = new Date(TargetDates31973); var dnows31973 = new Date("03/31/2025 4:18:34 PM"); if(CountSteppers31973>0) ddiffs31973 = new Date(dnows31973-dthens31973); else ddiffs31973 = new Date(dthens31973-dnows31973); gsecss31973 = Math.floor(ddiffs31973.valueOf()/1000); CountBacks31973(gsecss31973);