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 (LeadingZeros31568 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31568(secs) { if (secs < 0) { document.getElementById("cntdwns31568").innerHTML = FinishMessages31568; return; } DisplayStrs31568 = DisplayFormats31568.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31568 = DisplayStrs31568.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31568 = DisplayStrs31568.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31568 = DisplayStrs31568.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31568").innerHTML = DisplayStrs31568; if (CountActives31568) //alert(SetTimeOutPeriods31568); setTimeout("CountBacks31568(" + (secs+CountSteppers31568) + ")", SetTimeOutPeriods31568); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31568)=="undefined") BackColors31568 = ""; if (typeof(ForeColors31568)=="undefined") ForeColors31568= "white"; if (typeof(TargetDates31568)=="undefined") TargetDates31568 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31568)=="undefined") DisplayFormats31568 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31568)=="undefined") CountActives31568 = true; if (typeof(FinishMessages31568)=="undefined") FinishMessages31568 = ""; if (typeof(CountSteppers31568)!="number") CountSteppers31568 = -1; if (typeof(LeadingZeros31568)=="undefined") LeadingZeros31568 = true; CountSteppers31568 = Math.ceil(CountSteppers31568); if (CountSteppers31568 == 0) CountActives31568 = false; var SetTimeOutPeriods31568 = (Math.abs(CountSteppers31568)-1)*1000 + 990; puti(BackColors31568, ForeColors31568); var dthens31568 = new Date(TargetDates31568); var dnows31568 = new Date("02/22/2025 10:05:48 PM"); if(CountSteppers31568>0) ddiffs31568 = new Date(dnows31568-dthens31568); else ddiffs31568 = new Date(dthens31568-dnows31568); gsecss31568 = Math.floor(ddiffs31568.valueOf()/1000); CountBacks31568(gsecss31568);