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 (LeadingZeros31560 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31560(secs) { if (secs < 0) { document.getElementById("cntdwns31560").innerHTML = FinishMessages31560; return; } DisplayStrs31560 = DisplayFormats31560.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31560 = DisplayStrs31560.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31560 = DisplayStrs31560.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31560 = DisplayStrs31560.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31560").innerHTML = DisplayStrs31560; if (CountActives31560) //alert(SetTimeOutPeriods31560); setTimeout("CountBacks31560(" + (secs+CountSteppers31560) + ")", SetTimeOutPeriods31560); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31560)=="undefined") BackColors31560 = ""; if (typeof(ForeColors31560)=="undefined") ForeColors31560= "white"; if (typeof(TargetDates31560)=="undefined") TargetDates31560 = "01/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31560)=="undefined") DisplayFormats31560 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31560)=="undefined") CountActives31560 = true; if (typeof(FinishMessages31560)=="undefined") FinishMessages31560 = ""; if (typeof(CountSteppers31560)!="number") CountSteppers31560 = -1; if (typeof(LeadingZeros31560)=="undefined") LeadingZeros31560 = true; CountSteppers31560 = Math.ceil(CountSteppers31560); if (CountSteppers31560 == 0) CountActives31560 = false; var SetTimeOutPeriods31560 = (Math.abs(CountSteppers31560)-1)*1000 + 990; puti(BackColors31560, ForeColors31560); var dthens31560 = new Date(TargetDates31560); var dnows31560 = new Date("02/05/2025 4:58:44 PM"); if(CountSteppers31560>0) ddiffs31560 = new Date(dnows31560-dthens31560); else ddiffs31560 = new Date(dthens31560-dnows31560); gsecss31560 = Math.floor(ddiffs31560.valueOf()/1000); CountBacks31560(gsecss31560);