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 (LeadingZeros32949 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32949(secs) { if (secs < 0) { document.getElementById("cntdwns32949").innerHTML = FinishMessages32949; return; } DisplayStrs32949 = DisplayFormats32949.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32949 = DisplayStrs32949.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32949 = DisplayStrs32949.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32949 = DisplayStrs32949.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32949").innerHTML = DisplayStrs32949; if (CountActives32949) //alert(SetTimeOutPeriods32949); setTimeout("CountBacks32949(" + (secs+CountSteppers32949) + ")", SetTimeOutPeriods32949); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32949)=="undefined") BackColors32949 = ""; if (typeof(ForeColors32949)=="undefined") ForeColors32949= "white"; if (typeof(TargetDates32949)=="undefined") TargetDates32949 = "11/08/2025 9:00:00 PM"; if (typeof(DisplayFormats32949)=="undefined") DisplayFormats32949 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32949)=="undefined") CountActives32949 = true; if (typeof(FinishMessages32949)=="undefined") FinishMessages32949 = ""; if (typeof(CountSteppers32949)!="number") CountSteppers32949 = -1; if (typeof(LeadingZeros32949)=="undefined") LeadingZeros32949 = true; CountSteppers32949 = Math.ceil(CountSteppers32949); if (CountSteppers32949 == 0) CountActives32949 = false; var SetTimeOutPeriods32949 = (Math.abs(CountSteppers32949)-1)*1000 + 990; puti(BackColors32949, ForeColors32949); var dthens32949 = new Date(TargetDates32949); var dnows32949 = new Date("11/06/2025 9:37:30 AM"); if(CountSteppers32949>0) ddiffs32949 = new Date(dnows32949-dthens32949); else ddiffs32949 = new Date(dthens32949-dnows32949); gsecss32949 = Math.floor(ddiffs32949.valueOf()/1000); CountBacks32949(gsecss32949);