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 (LeadingZeros31572 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31572(secs) { if (secs < 0) { document.getElementById("cntdwns31572").innerHTML = FinishMessages31572; return; } DisplayStrs31572 = DisplayFormats31572.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31572 = DisplayStrs31572.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31572 = DisplayStrs31572.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31572 = DisplayStrs31572.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31572").innerHTML = DisplayStrs31572; if (CountActives31572) //alert(SetTimeOutPeriods31572); setTimeout("CountBacks31572(" + (secs+CountSteppers31572) + ")", SetTimeOutPeriods31572); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31572)=="undefined") BackColors31572 = ""; if (typeof(ForeColors31572)=="undefined") ForeColors31572= "white"; if (typeof(TargetDates31572)=="undefined") TargetDates31572 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31572)=="undefined") DisplayFormats31572 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31572)=="undefined") CountActives31572 = true; if (typeof(FinishMessages31572)=="undefined") FinishMessages31572 = ""; if (typeof(CountSteppers31572)!="number") CountSteppers31572 = -1; if (typeof(LeadingZeros31572)=="undefined") LeadingZeros31572 = true; CountSteppers31572 = Math.ceil(CountSteppers31572); if (CountSteppers31572 == 0) CountActives31572 = false; var SetTimeOutPeriods31572 = (Math.abs(CountSteppers31572)-1)*1000 + 990; puti(BackColors31572, ForeColors31572); var dthens31572 = new Date(TargetDates31572); var dnows31572 = new Date("02/22/2025 9:28:01 PM"); if(CountSteppers31572>0) ddiffs31572 = new Date(dnows31572-dthens31572); else ddiffs31572 = new Date(dthens31572-dnows31572); gsecss31572 = Math.floor(ddiffs31572.valueOf()/1000); CountBacks31572(gsecss31572);