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 (LeadingZeros31998 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31998(secs) { if (secs < 0) { document.getElementById("cntdwns31998").innerHTML = FinishMessages31998; return; } DisplayStrs31998 = DisplayFormats31998.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31998 = DisplayStrs31998.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31998 = DisplayStrs31998.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31998 = DisplayStrs31998.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31998").innerHTML = DisplayStrs31998; if (CountActives31998) //alert(SetTimeOutPeriods31998); setTimeout("CountBacks31998(" + (secs+CountSteppers31998) + ")", SetTimeOutPeriods31998); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31998)=="undefined") BackColors31998 = ""; if (typeof(ForeColors31998)=="undefined") ForeColors31998= "white"; if (typeof(TargetDates31998)=="undefined") TargetDates31998 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31998)=="undefined") DisplayFormats31998 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31998)=="undefined") CountActives31998 = true; if (typeof(FinishMessages31998)=="undefined") FinishMessages31998 = ""; if (typeof(CountSteppers31998)!="number") CountSteppers31998 = -1; if (typeof(LeadingZeros31998)=="undefined") LeadingZeros31998 = true; CountSteppers31998 = Math.ceil(CountSteppers31998); if (CountSteppers31998 == 0) CountActives31998 = false; var SetTimeOutPeriods31998 = (Math.abs(CountSteppers31998)-1)*1000 + 990; puti(BackColors31998, ForeColors31998); var dthens31998 = new Date(TargetDates31998); var dnows31998 = new Date("03/13/2025 8:51:37 PM"); if(CountSteppers31998>0) ddiffs31998 = new Date(dnows31998-dthens31998); else ddiffs31998 = new Date(dthens31998-dnows31998); gsecss31998 = Math.floor(ddiffs31998.valueOf()/1000); CountBacks31998(gsecss31998);