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 (LeadingZeros32374 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32374(secs) { if (secs < 0) { document.getElementById("cntdwns32374").innerHTML = FinishMessages32374; return; } DisplayStrs32374 = DisplayFormats32374.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32374 = DisplayStrs32374.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32374 = DisplayStrs32374.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32374 = DisplayStrs32374.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32374").innerHTML = DisplayStrs32374; if (CountActives32374) //alert(SetTimeOutPeriods32374); setTimeout("CountBacks32374(" + (secs+CountSteppers32374) + ")", SetTimeOutPeriods32374); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32374)=="undefined") BackColors32374 = ""; if (typeof(ForeColors32374)=="undefined") ForeColors32374= "white"; if (typeof(TargetDates32374)=="undefined") TargetDates32374 = "05/26/2025 10:00:00 PM"; if (typeof(DisplayFormats32374)=="undefined") DisplayFormats32374 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32374)=="undefined") CountActives32374 = true; if (typeof(FinishMessages32374)=="undefined") FinishMessages32374 = ""; if (typeof(CountSteppers32374)!="number") CountSteppers32374 = -1; if (typeof(LeadingZeros32374)=="undefined") LeadingZeros32374 = true; CountSteppers32374 = Math.ceil(CountSteppers32374); if (CountSteppers32374 == 0) CountActives32374 = false; var SetTimeOutPeriods32374 = (Math.abs(CountSteppers32374)-1)*1000 + 990; puti(BackColors32374, ForeColors32374); var dthens32374 = new Date(TargetDates32374); var dnows32374 = new Date("05/25/2025 4:24:43 AM"); if(CountSteppers32374>0) ddiffs32374 = new Date(dnows32374-dthens32374); else ddiffs32374 = new Date(dthens32374-dnows32374); gsecss32374 = Math.floor(ddiffs32374.valueOf()/1000); CountBacks32374(gsecss32374);