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 (LeadingZeros32125 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32125(secs) { if (secs < 0) { document.getElementById("cntdwns32125").innerHTML = FinishMessages32125; return; } DisplayStrs32125 = DisplayFormats32125.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32125 = DisplayStrs32125.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32125 = DisplayStrs32125.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32125 = DisplayStrs32125.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32125").innerHTML = DisplayStrs32125; if (CountActives32125) //alert(SetTimeOutPeriods32125); setTimeout("CountBacks32125(" + (secs+CountSteppers32125) + ")", SetTimeOutPeriods32125); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32125)=="undefined") BackColors32125 = ""; if (typeof(ForeColors32125)=="undefined") ForeColors32125= "white"; if (typeof(TargetDates32125)=="undefined") TargetDates32125 = "04/14/2025 10:00:00 PM"; if (typeof(DisplayFormats32125)=="undefined") DisplayFormats32125 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32125)=="undefined") CountActives32125 = true; if (typeof(FinishMessages32125)=="undefined") FinishMessages32125 = ""; if (typeof(CountSteppers32125)!="number") CountSteppers32125 = -1; if (typeof(LeadingZeros32125)=="undefined") LeadingZeros32125 = true; CountSteppers32125 = Math.ceil(CountSteppers32125); if (CountSteppers32125 == 0) CountActives32125 = false; var SetTimeOutPeriods32125 = (Math.abs(CountSteppers32125)-1)*1000 + 990; puti(BackColors32125, ForeColors32125); var dthens32125 = new Date(TargetDates32125); var dnows32125 = new Date("04/18/2025 9:00:22 PM"); if(CountSteppers32125>0) ddiffs32125 = new Date(dnows32125-dthens32125); else ddiffs32125 = new Date(dthens32125-dnows32125); gsecss32125 = Math.floor(ddiffs32125.valueOf()/1000); CountBacks32125(gsecss32125);