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 (LeadingZeros32963 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32963(secs) { if (secs < 0) { document.getElementById("cntdwns32963").innerHTML = FinishMessages32963; return; } DisplayStrs32963 = DisplayFormats32963.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32963 = DisplayStrs32963.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32963 = DisplayStrs32963.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32963 = DisplayStrs32963.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32963").innerHTML = DisplayStrs32963; if (CountActives32963) //alert(SetTimeOutPeriods32963); setTimeout("CountBacks32963(" + (secs+CountSteppers32963) + ")", SetTimeOutPeriods32963); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32963)=="undefined") BackColors32963 = ""; if (typeof(ForeColors32963)=="undefined") ForeColors32963= "white"; if (typeof(TargetDates32963)=="undefined") TargetDates32963 = "10/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32963)=="undefined") DisplayFormats32963 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32963)=="undefined") CountActives32963 = true; if (typeof(FinishMessages32963)=="undefined") FinishMessages32963 = ""; if (typeof(CountSteppers32963)!="number") CountSteppers32963 = -1; if (typeof(LeadingZeros32963)=="undefined") LeadingZeros32963 = true; CountSteppers32963 = Math.ceil(CountSteppers32963); if (CountSteppers32963 == 0) CountActives32963 = false; var SetTimeOutPeriods32963 = (Math.abs(CountSteppers32963)-1)*1000 + 990; puti(BackColors32963, ForeColors32963); var dthens32963 = new Date(TargetDates32963); var dnows32963 = new Date("10/09/2025 5:53:43 AM"); if(CountSteppers32963>0) ddiffs32963 = new Date(dnows32963-dthens32963); else ddiffs32963 = new Date(dthens32963-dnows32963); gsecss32963 = Math.floor(ddiffs32963.valueOf()/1000); CountBacks32963(gsecss32963);