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 (LeadingZeros32930 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32930(secs) { if (secs < 0) { document.getElementById("cntdwns32930").innerHTML = FinishMessages32930; return; } DisplayStrs32930 = DisplayFormats32930.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32930 = DisplayStrs32930.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32930 = DisplayStrs32930.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32930 = DisplayStrs32930.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32930").innerHTML = DisplayStrs32930; if (CountActives32930) //alert(SetTimeOutPeriods32930); setTimeout("CountBacks32930(" + (secs+CountSteppers32930) + ")", SetTimeOutPeriods32930); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32930)=="undefined") BackColors32930 = ""; if (typeof(ForeColors32930)=="undefined") ForeColors32930= "white"; if (typeof(TargetDates32930)=="undefined") TargetDates32930 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32930)=="undefined") DisplayFormats32930 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32930)=="undefined") CountActives32930 = true; if (typeof(FinishMessages32930)=="undefined") FinishMessages32930 = ""; if (typeof(CountSteppers32930)!="number") CountSteppers32930 = -1; if (typeof(LeadingZeros32930)=="undefined") LeadingZeros32930 = true; CountSteppers32930 = Math.ceil(CountSteppers32930); if (CountSteppers32930 == 0) CountActives32930 = false; var SetTimeOutPeriods32930 = (Math.abs(CountSteppers32930)-1)*1000 + 990; puti(BackColors32930, ForeColors32930); var dthens32930 = new Date(TargetDates32930); var dnows32930 = new Date("10/09/2025 5:45:57 AM"); if(CountSteppers32930>0) ddiffs32930 = new Date(dnows32930-dthens32930); else ddiffs32930 = new Date(dthens32930-dnows32930); gsecss32930 = Math.floor(ddiffs32930.valueOf()/1000); CountBacks32930(gsecss32930);