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 (LeadingZeros32876 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32876(secs) { if (secs < 0) { document.getElementById("cntdwns32876").innerHTML = FinishMessages32876; return; } DisplayStrs32876 = DisplayFormats32876.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32876 = DisplayStrs32876.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32876 = DisplayStrs32876.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32876 = DisplayStrs32876.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32876").innerHTML = DisplayStrs32876; if (CountActives32876) //alert(SetTimeOutPeriods32876); setTimeout("CountBacks32876(" + (secs+CountSteppers32876) + ")", SetTimeOutPeriods32876); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32876)=="undefined") BackColors32876 = ""; if (typeof(ForeColors32876)=="undefined") ForeColors32876= "white"; if (typeof(TargetDates32876)=="undefined") TargetDates32876 = "10/05/2025 10:00:00 PM"; if (typeof(DisplayFormats32876)=="undefined") DisplayFormats32876 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32876)=="undefined") CountActives32876 = true; if (typeof(FinishMessages32876)=="undefined") FinishMessages32876 = ""; if (typeof(CountSteppers32876)!="number") CountSteppers32876 = -1; if (typeof(LeadingZeros32876)=="undefined") LeadingZeros32876 = true; CountSteppers32876 = Math.ceil(CountSteppers32876); if (CountSteppers32876 == 0) CountActives32876 = false; var SetTimeOutPeriods32876 = (Math.abs(CountSteppers32876)-1)*1000 + 990; puti(BackColors32876, ForeColors32876); var dthens32876 = new Date(TargetDates32876); var dnows32876 = new Date("10/03/2025 10:55:33 PM"); if(CountSteppers32876>0) ddiffs32876 = new Date(dnows32876-dthens32876); else ddiffs32876 = new Date(dthens32876-dnows32876); gsecss32876 = Math.floor(ddiffs32876.valueOf()/1000); CountBacks32876(gsecss32876);