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 (LeadingZeros32127 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32127(secs) { if (secs < 0) { document.getElementById("cntdwns32127").innerHTML = FinishMessages32127; return; } DisplayStrs32127 = DisplayFormats32127.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32127 = DisplayStrs32127.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32127 = DisplayStrs32127.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32127 = DisplayStrs32127.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32127").innerHTML = DisplayStrs32127; if (CountActives32127) //alert(SetTimeOutPeriods32127); setTimeout("CountBacks32127(" + (secs+CountSteppers32127) + ")", SetTimeOutPeriods32127); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32127)=="undefined") BackColors32127 = ""; if (typeof(ForeColors32127)=="undefined") ForeColors32127= "white"; if (typeof(TargetDates32127)=="undefined") TargetDates32127 = "04/23/2025 10:00:00 PM"; if (typeof(DisplayFormats32127)=="undefined") DisplayFormats32127 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32127)=="undefined") CountActives32127 = true; if (typeof(FinishMessages32127)=="undefined") FinishMessages32127 = ""; if (typeof(CountSteppers32127)!="number") CountSteppers32127 = -1; if (typeof(LeadingZeros32127)=="undefined") LeadingZeros32127 = true; CountSteppers32127 = Math.ceil(CountSteppers32127); if (CountSteppers32127 == 0) CountActives32127 = false; var SetTimeOutPeriods32127 = (Math.abs(CountSteppers32127)-1)*1000 + 990; puti(BackColors32127, ForeColors32127); var dthens32127 = new Date(TargetDates32127); var dnows32127 = new Date("04/20/2025 8:26:24 PM"); if(CountSteppers32127>0) ddiffs32127 = new Date(dnows32127-dthens32127); else ddiffs32127 = new Date(dthens32127-dnows32127); gsecss32127 = Math.floor(ddiffs32127.valueOf()/1000); CountBacks32127(gsecss32127);