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 (LeadingZeros31790 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31790(secs) { if (secs < 0) { document.getElementById("cntdwns31790").innerHTML = FinishMessages31790; return; } DisplayStrs31790 = DisplayFormats31790.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31790 = DisplayStrs31790.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31790 = DisplayStrs31790.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31790 = DisplayStrs31790.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31790").innerHTML = DisplayStrs31790; if (CountActives31790) //alert(SetTimeOutPeriods31790); setTimeout("CountBacks31790(" + (secs+CountSteppers31790) + ")", SetTimeOutPeriods31790); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31790)=="undefined") BackColors31790 = ""; if (typeof(ForeColors31790)=="undefined") ForeColors31790= "white"; if (typeof(TargetDates31790)=="undefined") TargetDates31790 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31790)=="undefined") DisplayFormats31790 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31790)=="undefined") CountActives31790 = true; if (typeof(FinishMessages31790)=="undefined") FinishMessages31790 = ""; if (typeof(CountSteppers31790)!="number") CountSteppers31790 = -1; if (typeof(LeadingZeros31790)=="undefined") LeadingZeros31790 = true; CountSteppers31790 = Math.ceil(CountSteppers31790); if (CountSteppers31790 == 0) CountActives31790 = false; var SetTimeOutPeriods31790 = (Math.abs(CountSteppers31790)-1)*1000 + 990; puti(BackColors31790, ForeColors31790); var dthens31790 = new Date(TargetDates31790); var dnows31790 = new Date("01/31/2025 2:24:41 AM"); if(CountSteppers31790>0) ddiffs31790 = new Date(dnows31790-dthens31790); else ddiffs31790 = new Date(dthens31790-dnows31790); gsecss31790 = Math.floor(ddiffs31790.valueOf()/1000); CountBacks31790(gsecss31790);