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 (LeadingZeros31997 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31997(secs) { if (secs < 0) { document.getElementById("cntdwns31997").innerHTML = FinishMessages31997; return; } DisplayStrs31997 = DisplayFormats31997.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31997 = DisplayStrs31997.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31997 = DisplayStrs31997.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31997 = DisplayStrs31997.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31997").innerHTML = DisplayStrs31997; if (CountActives31997) //alert(SetTimeOutPeriods31997); setTimeout("CountBacks31997(" + (secs+CountSteppers31997) + ")", SetTimeOutPeriods31997); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31997)=="undefined") BackColors31997 = ""; if (typeof(ForeColors31997)=="undefined") ForeColors31997= "white"; if (typeof(TargetDates31997)=="undefined") TargetDates31997 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31997)=="undefined") DisplayFormats31997 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31997)=="undefined") CountActives31997 = true; if (typeof(FinishMessages31997)=="undefined") FinishMessages31997 = ""; if (typeof(CountSteppers31997)!="number") CountSteppers31997 = -1; if (typeof(LeadingZeros31997)=="undefined") LeadingZeros31997 = true; CountSteppers31997 = Math.ceil(CountSteppers31997); if (CountSteppers31997 == 0) CountActives31997 = false; var SetTimeOutPeriods31997 = (Math.abs(CountSteppers31997)-1)*1000 + 990; puti(BackColors31997, ForeColors31997); var dthens31997 = new Date(TargetDates31997); var dnows31997 = new Date("03/14/2025 12:39:07 AM"); if(CountSteppers31997>0) ddiffs31997 = new Date(dnows31997-dthens31997); else ddiffs31997 = new Date(dthens31997-dnows31997); gsecss31997 = Math.floor(ddiffs31997.valueOf()/1000); CountBacks31997(gsecss31997);