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 (LeadingZeros31527 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31527(secs) { if (secs < 0) { document.getElementById("cntdwns31527").innerHTML = FinishMessages31527; return; } DisplayStrs31527 = DisplayFormats31527.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31527 = DisplayStrs31527.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31527 = DisplayStrs31527.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31527 = DisplayStrs31527.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31527").innerHTML = DisplayStrs31527; if (CountActives31527) //alert(SetTimeOutPeriods31527); setTimeout("CountBacks31527(" + (secs+CountSteppers31527) + ")", SetTimeOutPeriods31527); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31527)=="undefined") BackColors31527 = ""; if (typeof(ForeColors31527)=="undefined") ForeColors31527= "white"; if (typeof(TargetDates31527)=="undefined") TargetDates31527 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31527)=="undefined") DisplayFormats31527 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31527)=="undefined") CountActives31527 = true; if (typeof(FinishMessages31527)=="undefined") FinishMessages31527 = ""; if (typeof(CountSteppers31527)!="number") CountSteppers31527 = -1; if (typeof(LeadingZeros31527)=="undefined") LeadingZeros31527 = true; CountSteppers31527 = Math.ceil(CountSteppers31527); if (CountSteppers31527 == 0) CountActives31527 = false; var SetTimeOutPeriods31527 = (Math.abs(CountSteppers31527)-1)*1000 + 990; puti(BackColors31527, ForeColors31527); var dthens31527 = new Date(TargetDates31527); var dnows31527 = new Date("02/22/2025 10:21:10 PM"); if(CountSteppers31527>0) ddiffs31527 = new Date(dnows31527-dthens31527); else ddiffs31527 = new Date(dthens31527-dnows31527); gsecss31527 = Math.floor(ddiffs31527.valueOf()/1000); CountBacks31527(gsecss31527);