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 (LeadingZeros32998 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32998(secs) { if (secs < 0) { document.getElementById("cntdwns32998").innerHTML = FinishMessages32998; return; } DisplayStrs32998 = DisplayFormats32998.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32998 = DisplayStrs32998.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32998 = DisplayStrs32998.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32998 = DisplayStrs32998.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32998").innerHTML = DisplayStrs32998; if (CountActives32998) //alert(SetTimeOutPeriods32998); setTimeout("CountBacks32998(" + (secs+CountSteppers32998) + ")", SetTimeOutPeriods32998); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32998)=="undefined") BackColors32998 = ""; if (typeof(ForeColors32998)=="undefined") ForeColors32998= "white"; if (typeof(TargetDates32998)=="undefined") TargetDates32998 = "10/18/2025 10:00:00 PM"; if (typeof(DisplayFormats32998)=="undefined") DisplayFormats32998 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32998)=="undefined") CountActives32998 = true; if (typeof(FinishMessages32998)=="undefined") FinishMessages32998 = ""; if (typeof(CountSteppers32998)!="number") CountSteppers32998 = -1; if (typeof(LeadingZeros32998)=="undefined") LeadingZeros32998 = true; CountSteppers32998 = Math.ceil(CountSteppers32998); if (CountSteppers32998 == 0) CountActives32998 = false; var SetTimeOutPeriods32998 = (Math.abs(CountSteppers32998)-1)*1000 + 990; puti(BackColors32998, ForeColors32998); var dthens32998 = new Date(TargetDates32998); var dnows32998 = new Date("10/16/2025 7:34:56 PM"); if(CountSteppers32998>0) ddiffs32998 = new Date(dnows32998-dthens32998); else ddiffs32998 = new Date(dthens32998-dnows32998); gsecss32998 = Math.floor(ddiffs32998.valueOf()/1000); CountBacks32998(gsecss32998);