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 (LeadingZeros32116 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32116(secs) { if (secs < 0) { document.getElementById("cntdwns32116").innerHTML = FinishMessages32116; return; } DisplayStrs32116 = DisplayFormats32116.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32116 = DisplayStrs32116.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32116 = DisplayStrs32116.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32116 = DisplayStrs32116.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32116").innerHTML = DisplayStrs32116; if (CountActives32116) //alert(SetTimeOutPeriods32116); setTimeout("CountBacks32116(" + (secs+CountSteppers32116) + ")", SetTimeOutPeriods32116); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32116)=="undefined") BackColors32116 = ""; if (typeof(ForeColors32116)=="undefined") ForeColors32116= "white"; if (typeof(TargetDates32116)=="undefined") TargetDates32116 = "03/31/2025 10:00:00 PM"; if (typeof(DisplayFormats32116)=="undefined") DisplayFormats32116 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32116)=="undefined") CountActives32116 = true; if (typeof(FinishMessages32116)=="undefined") FinishMessages32116 = ""; if (typeof(CountSteppers32116)!="number") CountSteppers32116 = -1; if (typeof(LeadingZeros32116)=="undefined") LeadingZeros32116 = true; CountSteppers32116 = Math.ceil(CountSteppers32116); if (CountSteppers32116 == 0) CountActives32116 = false; var SetTimeOutPeriods32116 = (Math.abs(CountSteppers32116)-1)*1000 + 990; puti(BackColors32116, ForeColors32116); var dthens32116 = new Date(TargetDates32116); var dnows32116 = new Date("03/31/2025 4:18:33 PM"); if(CountSteppers32116>0) ddiffs32116 = new Date(dnows32116-dthens32116); else ddiffs32116 = new Date(dthens32116-dnows32116); gsecss32116 = Math.floor(ddiffs32116.valueOf()/1000); CountBacks32116(gsecss32116);