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 (LeadingZeros32927 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32927(secs) { if (secs < 0) { document.getElementById("cntdwns32927").innerHTML = FinishMessages32927; return; } DisplayStrs32927 = DisplayFormats32927.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32927 = DisplayStrs32927.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32927 = DisplayStrs32927.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32927 = DisplayStrs32927.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32927").innerHTML = DisplayStrs32927; if (CountActives32927) //alert(SetTimeOutPeriods32927); setTimeout("CountBacks32927(" + (secs+CountSteppers32927) + ")", SetTimeOutPeriods32927); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32927)=="undefined") BackColors32927 = ""; if (typeof(ForeColors32927)=="undefined") ForeColors32927= "white"; if (typeof(TargetDates32927)=="undefined") TargetDates32927 = "10/12/2025 10:00:00 PM"; if (typeof(DisplayFormats32927)=="undefined") DisplayFormats32927 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32927)=="undefined") CountActives32927 = true; if (typeof(FinishMessages32927)=="undefined") FinishMessages32927 = ""; if (typeof(CountSteppers32927)!="number") CountSteppers32927 = -1; if (typeof(LeadingZeros32927)=="undefined") LeadingZeros32927 = true; CountSteppers32927 = Math.ceil(CountSteppers32927); if (CountSteppers32927 == 0) CountActives32927 = false; var SetTimeOutPeriods32927 = (Math.abs(CountSteppers32927)-1)*1000 + 990; puti(BackColors32927, ForeColors32927); var dthens32927 = new Date(TargetDates32927); var dnows32927 = new Date("10/09/2025 8:53:40 PM"); if(CountSteppers32927>0) ddiffs32927 = new Date(dnows32927-dthens32927); else ddiffs32927 = new Date(dthens32927-dnows32927); gsecss32927 = Math.floor(ddiffs32927.valueOf()/1000); CountBacks32927(gsecss32927);