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 (LeadingZeros32915 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32915(secs) { if (secs < 0) { document.getElementById("cntdwns32915").innerHTML = FinishMessages32915; return; } DisplayStrs32915 = DisplayFormats32915.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32915 = DisplayStrs32915.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32915 = DisplayStrs32915.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32915 = DisplayStrs32915.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32915").innerHTML = DisplayStrs32915; if (CountActives32915) //alert(SetTimeOutPeriods32915); setTimeout("CountBacks32915(" + (secs+CountSteppers32915) + ")", SetTimeOutPeriods32915); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32915)=="undefined") BackColors32915 = ""; if (typeof(ForeColors32915)=="undefined") ForeColors32915= "white"; if (typeof(TargetDates32915)=="undefined") TargetDates32915 = "10/25/2025 10:00:00 PM"; if (typeof(DisplayFormats32915)=="undefined") DisplayFormats32915 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32915)=="undefined") CountActives32915 = true; if (typeof(FinishMessages32915)=="undefined") FinishMessages32915 = ""; if (typeof(CountSteppers32915)!="number") CountSteppers32915 = -1; if (typeof(LeadingZeros32915)=="undefined") LeadingZeros32915 = true; CountSteppers32915 = Math.ceil(CountSteppers32915); if (CountSteppers32915 == 0) CountActives32915 = false; var SetTimeOutPeriods32915 = (Math.abs(CountSteppers32915)-1)*1000 + 990; puti(BackColors32915, ForeColors32915); var dthens32915 = new Date(TargetDates32915); var dnows32915 = new Date("10/24/2025 3:41:06 PM"); if(CountSteppers32915>0) ddiffs32915 = new Date(dnows32915-dthens32915); else ddiffs32915 = new Date(dthens32915-dnows32915); gsecss32915 = Math.floor(ddiffs32915.valueOf()/1000); CountBacks32915(gsecss32915);