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 (LeadingZeros31698 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31698(secs) { if (secs < 0) { document.getElementById("cntdwns31698").innerHTML = FinishMessages31698; return; } DisplayStrs31698 = DisplayFormats31698.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31698 = DisplayStrs31698.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31698 = DisplayStrs31698.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31698 = DisplayStrs31698.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31698").innerHTML = DisplayStrs31698; if (CountActives31698) //alert(SetTimeOutPeriods31698); setTimeout("CountBacks31698(" + (secs+CountSteppers31698) + ")", SetTimeOutPeriods31698); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31698)=="undefined") BackColors31698 = ""; if (typeof(ForeColors31698)=="undefined") ForeColors31698= "white"; if (typeof(TargetDates31698)=="undefined") TargetDates31698 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31698)=="undefined") DisplayFormats31698 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31698)=="undefined") CountActives31698 = true; if (typeof(FinishMessages31698)=="undefined") FinishMessages31698 = ""; if (typeof(CountSteppers31698)!="number") CountSteppers31698 = -1; if (typeof(LeadingZeros31698)=="undefined") LeadingZeros31698 = true; CountSteppers31698 = Math.ceil(CountSteppers31698); if (CountSteppers31698 == 0) CountActives31698 = false; var SetTimeOutPeriods31698 = (Math.abs(CountSteppers31698)-1)*1000 + 990; puti(BackColors31698, ForeColors31698); var dthens31698 = new Date(TargetDates31698); var dnows31698 = new Date("02/23/2025 5:01:51 AM"); if(CountSteppers31698>0) ddiffs31698 = new Date(dnows31698-dthens31698); else ddiffs31698 = new Date(dthens31698-dnows31698); gsecss31698 = Math.floor(ddiffs31698.valueOf()/1000); CountBacks31698(gsecss31698);