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 (LeadingZeros31447 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31447(secs) { if (secs < 0) { document.getElementById("cntdwns31447").innerHTML = FinishMessages31447; return; } DisplayStrs31447 = DisplayFormats31447.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31447 = DisplayStrs31447.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31447 = DisplayStrs31447.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31447 = DisplayStrs31447.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31447").innerHTML = DisplayStrs31447; if (CountActives31447) //alert(SetTimeOutPeriods31447); setTimeout("CountBacks31447(" + (secs+CountSteppers31447) + ")", SetTimeOutPeriods31447); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31447)=="undefined") BackColors31447 = ""; if (typeof(ForeColors31447)=="undefined") ForeColors31447= "white"; if (typeof(TargetDates31447)=="undefined") TargetDates31447 = "02/24/2025 10:00:00 PM"; if (typeof(DisplayFormats31447)=="undefined") DisplayFormats31447 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31447)=="undefined") CountActives31447 = true; if (typeof(FinishMessages31447)=="undefined") FinishMessages31447 = ""; if (typeof(CountSteppers31447)!="number") CountSteppers31447 = -1; if (typeof(LeadingZeros31447)=="undefined") LeadingZeros31447 = true; CountSteppers31447 = Math.ceil(CountSteppers31447); if (CountSteppers31447 == 0) CountActives31447 = false; var SetTimeOutPeriods31447 = (Math.abs(CountSteppers31447)-1)*1000 + 990; puti(BackColors31447, ForeColors31447); var dthens31447 = new Date(TargetDates31447); var dnows31447 = new Date("02/22/2025 9:39:33 PM"); if(CountSteppers31447>0) ddiffs31447 = new Date(dnows31447-dthens31447); else ddiffs31447 = new Date(dthens31447-dnows31447); gsecss31447 = Math.floor(ddiffs31447.valueOf()/1000); CountBacks31447(gsecss31447);