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 (LeadingZeros32851 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32851(secs) { if (secs < 0) { document.getElementById("cntdwns32851").innerHTML = FinishMessages32851; return; } DisplayStrs32851 = DisplayFormats32851.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32851 = DisplayStrs32851.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32851 = DisplayStrs32851.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32851 = DisplayStrs32851.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32851").innerHTML = DisplayStrs32851; if (CountActives32851) //alert(SetTimeOutPeriods32851); setTimeout("CountBacks32851(" + (secs+CountSteppers32851) + ")", SetTimeOutPeriods32851); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32851)=="undefined") BackColors32851 = ""; if (typeof(ForeColors32851)=="undefined") ForeColors32851= "white"; if (typeof(TargetDates32851)=="undefined") TargetDates32851 = "01/05/2026 9:00:00 PM"; if (typeof(DisplayFormats32851)=="undefined") DisplayFormats32851 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32851)=="undefined") CountActives32851 = true; if (typeof(FinishMessages32851)=="undefined") FinishMessages32851 = ""; if (typeof(CountSteppers32851)!="number") CountSteppers32851 = -1; if (typeof(LeadingZeros32851)=="undefined") LeadingZeros32851 = true; CountSteppers32851 = Math.ceil(CountSteppers32851); if (CountSteppers32851 == 0) CountActives32851 = false; var SetTimeOutPeriods32851 = (Math.abs(CountSteppers32851)-1)*1000 + 990; puti(BackColors32851, ForeColors32851); var dthens32851 = new Date(TargetDates32851); var dnows32851 = new Date("01/03/2026 2:06:04 PM"); if(CountSteppers32851>0) ddiffs32851 = new Date(dnows32851-dthens32851); else ddiffs32851 = new Date(dthens32851-dnows32851); gsecss32851 = Math.floor(ddiffs32851.valueOf()/1000); CountBacks32851(gsecss32851);