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 (LeadingZeros32932 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32932(secs) { if (secs < 0) { document.getElementById("cntdwns32932").innerHTML = FinishMessages32932; return; } DisplayStrs32932 = DisplayFormats32932.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32932 = DisplayStrs32932.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32932 = DisplayStrs32932.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32932 = DisplayStrs32932.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32932").innerHTML = DisplayStrs32932; if (CountActives32932) //alert(SetTimeOutPeriods32932); setTimeout("CountBacks32932(" + (secs+CountSteppers32932) + ")", SetTimeOutPeriods32932); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32932)=="undefined") BackColors32932 = ""; if (typeof(ForeColors32932)=="undefined") ForeColors32932= "white"; if (typeof(TargetDates32932)=="undefined") TargetDates32932 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32932)=="undefined") DisplayFormats32932 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32932)=="undefined") CountActives32932 = true; if (typeof(FinishMessages32932)=="undefined") FinishMessages32932 = ""; if (typeof(CountSteppers32932)!="number") CountSteppers32932 = -1; if (typeof(LeadingZeros32932)=="undefined") LeadingZeros32932 = true; CountSteppers32932 = Math.ceil(CountSteppers32932); if (CountSteppers32932 == 0) CountActives32932 = false; var SetTimeOutPeriods32932 = (Math.abs(CountSteppers32932)-1)*1000 + 990; puti(BackColors32932, ForeColors32932); var dthens32932 = new Date(TargetDates32932); var dnows32932 = new Date("10/09/2025 5:45:57 AM"); if(CountSteppers32932>0) ddiffs32932 = new Date(dnows32932-dthens32932); else ddiffs32932 = new Date(dthens32932-dnows32932); gsecss32932 = Math.floor(ddiffs32932.valueOf()/1000); CountBacks32932(gsecss32932);