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 (LeadingZeros32325 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32325(secs) { if (secs < 0) { document.getElementById("cntdwns32325").innerHTML = FinishMessages32325; return; } DisplayStrs32325 = DisplayFormats32325.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32325 = DisplayStrs32325.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32325 = DisplayStrs32325.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32325 = DisplayStrs32325.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32325").innerHTML = DisplayStrs32325; if (CountActives32325) //alert(SetTimeOutPeriods32325); setTimeout("CountBacks32325(" + (secs+CountSteppers32325) + ")", SetTimeOutPeriods32325); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32325)=="undefined") BackColors32325 = ""; if (typeof(ForeColors32325)=="undefined") ForeColors32325= "white"; if (typeof(TargetDates32325)=="undefined") TargetDates32325 = "05/11/2025 10:00:00 PM"; if (typeof(DisplayFormats32325)=="undefined") DisplayFormats32325 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32325)=="undefined") CountActives32325 = true; if (typeof(FinishMessages32325)=="undefined") FinishMessages32325 = ""; if (typeof(CountSteppers32325)!="number") CountSteppers32325 = -1; if (typeof(LeadingZeros32325)=="undefined") LeadingZeros32325 = true; CountSteppers32325 = Math.ceil(CountSteppers32325); if (CountSteppers32325 == 0) CountActives32325 = false; var SetTimeOutPeriods32325 = (Math.abs(CountSteppers32325)-1)*1000 + 990; puti(BackColors32325, ForeColors32325); var dthens32325 = new Date(TargetDates32325); var dnows32325 = new Date("05/09/2025 12:54:03 PM"); if(CountSteppers32325>0) ddiffs32325 = new Date(dnows32325-dthens32325); else ddiffs32325 = new Date(dthens32325-dnows32325); gsecss32325 = Math.floor(ddiffs32325.valueOf()/1000); CountBacks32325(gsecss32325);