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 (LeadingZeros31390 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31390(secs) { if (secs < 0) { document.getElementById("cntdwns31390").innerHTML = FinishMessages31390; return; } DisplayStrs31390 = DisplayFormats31390.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31390 = DisplayStrs31390.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31390 = DisplayStrs31390.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31390 = DisplayStrs31390.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31390").innerHTML = DisplayStrs31390; if (CountActives31390) //alert(SetTimeOutPeriods31390); setTimeout("CountBacks31390(" + (secs+CountSteppers31390) + ")", SetTimeOutPeriods31390); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31390)=="undefined") BackColors31390 = ""; if (typeof(ForeColors31390)=="undefined") ForeColors31390= "white"; if (typeof(TargetDates31390)=="undefined") TargetDates31390 = "02/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31390)=="undefined") DisplayFormats31390 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31390)=="undefined") CountActives31390 = true; if (typeof(FinishMessages31390)=="undefined") FinishMessages31390 = ""; if (typeof(CountSteppers31390)!="number") CountSteppers31390 = -1; if (typeof(LeadingZeros31390)=="undefined") LeadingZeros31390 = true; CountSteppers31390 = Math.ceil(CountSteppers31390); if (CountSteppers31390 == 0) CountActives31390 = false; var SetTimeOutPeriods31390 = (Math.abs(CountSteppers31390)-1)*1000 + 990; puti(BackColors31390, ForeColors31390); var dthens31390 = new Date(TargetDates31390); var dnows31390 = new Date("02/05/2025 1:03:08 PM"); if(CountSteppers31390>0) ddiffs31390 = new Date(dnows31390-dthens31390); else ddiffs31390 = new Date(dthens31390-dnows31390); gsecss31390 = Math.floor(ddiffs31390.valueOf()/1000); CountBacks31390(gsecss31390);