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 (LeadingZeros31791 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31791(secs) { if (secs < 0) { document.getElementById("cntdwns31791").innerHTML = FinishMessages31791; return; } DisplayStrs31791 = DisplayFormats31791.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31791 = DisplayStrs31791.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31791 = DisplayStrs31791.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31791 = DisplayStrs31791.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31791").innerHTML = DisplayStrs31791; if (CountActives31791) //alert(SetTimeOutPeriods31791); setTimeout("CountBacks31791(" + (secs+CountSteppers31791) + ")", SetTimeOutPeriods31791); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31791)=="undefined") BackColors31791 = ""; if (typeof(ForeColors31791)=="undefined") ForeColors31791= "white"; if (typeof(TargetDates31791)=="undefined") TargetDates31791 = "02/03/2025 10:00:00 PM"; if (typeof(DisplayFormats31791)=="undefined") DisplayFormats31791 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31791)=="undefined") CountActives31791 = true; if (typeof(FinishMessages31791)=="undefined") FinishMessages31791 = ""; if (typeof(CountSteppers31791)!="number") CountSteppers31791 = -1; if (typeof(LeadingZeros31791)=="undefined") LeadingZeros31791 = true; CountSteppers31791 = Math.ceil(CountSteppers31791); if (CountSteppers31791 == 0) CountActives31791 = false; var SetTimeOutPeriods31791 = (Math.abs(CountSteppers31791)-1)*1000 + 990; puti(BackColors31791, ForeColors31791); var dthens31791 = new Date(TargetDates31791); var dnows31791 = new Date("01/31/2025 7:59:27 AM"); if(CountSteppers31791>0) ddiffs31791 = new Date(dnows31791-dthens31791); else ddiffs31791 = new Date(dthens31791-dnows31791); gsecss31791 = Math.floor(ddiffs31791.valueOf()/1000); CountBacks31791(gsecss31791);