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 (LeadingZeros31551 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31551(secs) { if (secs < 0) { document.getElementById("cntdwns31551").innerHTML = FinishMessages31551; return; } DisplayStrs31551 = DisplayFormats31551.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31551 = DisplayStrs31551.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31551 = DisplayStrs31551.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31551 = DisplayStrs31551.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31551").innerHTML = DisplayStrs31551; if (CountActives31551) //alert(SetTimeOutPeriods31551); setTimeout("CountBacks31551(" + (secs+CountSteppers31551) + ")", SetTimeOutPeriods31551); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31551)=="undefined") BackColors31551 = ""; if (typeof(ForeColors31551)=="undefined") ForeColors31551= "white"; if (typeof(TargetDates31551)=="undefined") TargetDates31551 = "01/27/2025 9:00:00 PM"; if (typeof(DisplayFormats31551)=="undefined") DisplayFormats31551 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31551)=="undefined") CountActives31551 = true; if (typeof(FinishMessages31551)=="undefined") FinishMessages31551 = ""; if (typeof(CountSteppers31551)!="number") CountSteppers31551 = -1; if (typeof(LeadingZeros31551)=="undefined") LeadingZeros31551 = true; CountSteppers31551 = Math.ceil(CountSteppers31551); if (CountSteppers31551 == 0) CountActives31551 = false; var SetTimeOutPeriods31551 = (Math.abs(CountSteppers31551)-1)*1000 + 990; puti(BackColors31551, ForeColors31551); var dthens31551 = new Date(TargetDates31551); var dnows31551 = new Date("02/05/2025 10:57:09 AM"); if(CountSteppers31551>0) ddiffs31551 = new Date(dnows31551-dthens31551); else ddiffs31551 = new Date(dthens31551-dnows31551); gsecss31551 = Math.floor(ddiffs31551.valueOf()/1000); CountBacks31551(gsecss31551);