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 (LeadingZeros31549 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31549(secs) { if (secs < 0) { document.getElementById("cntdwns31549").innerHTML = FinishMessages31549; return; } DisplayStrs31549 = DisplayFormats31549.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31549 = DisplayStrs31549.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31549 = DisplayStrs31549.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31549 = DisplayStrs31549.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31549").innerHTML = DisplayStrs31549; if (CountActives31549) //alert(SetTimeOutPeriods31549); setTimeout("CountBacks31549(" + (secs+CountSteppers31549) + ")", SetTimeOutPeriods31549); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31549)=="undefined") BackColors31549 = ""; if (typeof(ForeColors31549)=="undefined") ForeColors31549= "white"; if (typeof(TargetDates31549)=="undefined") TargetDates31549 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31549)=="undefined") DisplayFormats31549 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31549)=="undefined") CountActives31549 = true; if (typeof(FinishMessages31549)=="undefined") FinishMessages31549 = ""; if (typeof(CountSteppers31549)!="number") CountSteppers31549 = -1; if (typeof(LeadingZeros31549)=="undefined") LeadingZeros31549 = true; CountSteppers31549 = Math.ceil(CountSteppers31549); if (CountSteppers31549 == 0) CountActives31549 = false; var SetTimeOutPeriods31549 = (Math.abs(CountSteppers31549)-1)*1000 + 990; puti(BackColors31549, ForeColors31549); var dthens31549 = new Date(TargetDates31549); var dnows31549 = new Date("02/22/2025 9:42:00 PM"); if(CountSteppers31549>0) ddiffs31549 = new Date(dnows31549-dthens31549); else ddiffs31549 = new Date(dthens31549-dnows31549); gsecss31549 = Math.floor(ddiffs31549.valueOf()/1000); CountBacks31549(gsecss31549);