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 (LeadingZeros32345 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks32345(secs) { if (secs < 0) { document.getElementById("cntdwns32345").innerHTML = FinishMessages32345; return; } DisplayStrs32345 = DisplayFormats32345.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs32345 = DisplayStrs32345.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs32345 = DisplayStrs32345.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs32345 = DisplayStrs32345.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns32345").innerHTML = DisplayStrs32345; if (CountActives32345) //alert(SetTimeOutPeriods32345); setTimeout("CountBacks32345(" + (secs+CountSteppers32345) + ")", SetTimeOutPeriods32345); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors32345)=="undefined") BackColors32345 = ""; if (typeof(ForeColors32345)=="undefined") ForeColors32345= "white"; if (typeof(TargetDates32345)=="undefined") TargetDates32345 = "05/24/2025 10:00:00 PM"; if (typeof(DisplayFormats32345)=="undefined") DisplayFormats32345 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives32345)=="undefined") CountActives32345 = true; if (typeof(FinishMessages32345)=="undefined") FinishMessages32345 = ""; if (typeof(CountSteppers32345)!="number") CountSteppers32345 = -1; if (typeof(LeadingZeros32345)=="undefined") LeadingZeros32345 = true; CountSteppers32345 = Math.ceil(CountSteppers32345); if (CountSteppers32345 == 0) CountActives32345 = false; var SetTimeOutPeriods32345 = (Math.abs(CountSteppers32345)-1)*1000 + 990; puti(BackColors32345, ForeColors32345); var dthens32345 = new Date(TargetDates32345); var dnows32345 = new Date("05/21/2025 2:08:45 PM"); if(CountSteppers32345>0) ddiffs32345 = new Date(dnows32345-dthens32345); else ddiffs32345 = new Date(dthens32345-dnows32345); gsecss32345 = Math.floor(ddiffs32345.valueOf()/1000); CountBacks32345(gsecss32345);