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 (LeadingZeros31586 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31586(secs) { if (secs < 0) { document.getElementById("cntdwns31586").innerHTML = FinishMessages31586; return; } DisplayStrs31586 = DisplayFormats31586.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31586 = DisplayStrs31586.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31586 = DisplayStrs31586.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31586 = DisplayStrs31586.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31586").innerHTML = DisplayStrs31586; if (CountActives31586) //alert(SetTimeOutPeriods31586); setTimeout("CountBacks31586(" + (secs+CountSteppers31586) + ")", SetTimeOutPeriods31586); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31586)=="undefined") BackColors31586 = ""; if (typeof(ForeColors31586)=="undefined") ForeColors31586= "white"; if (typeof(TargetDates31586)=="undefined") TargetDates31586 = "01/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31586)=="undefined") DisplayFormats31586 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31586)=="undefined") CountActives31586 = true; if (typeof(FinishMessages31586)=="undefined") FinishMessages31586 = ""; if (typeof(CountSteppers31586)!="number") CountSteppers31586 = -1; if (typeof(LeadingZeros31586)=="undefined") LeadingZeros31586 = true; CountSteppers31586 = Math.ceil(CountSteppers31586); if (CountSteppers31586 == 0) CountActives31586 = false; var SetTimeOutPeriods31586 = (Math.abs(CountSteppers31586)-1)*1000 + 990; puti(BackColors31586, ForeColors31586); var dthens31586 = new Date(TargetDates31586); var dnows31586 = new Date("02/05/2025 9:50:07 AM"); if(CountSteppers31586>0) ddiffs31586 = new Date(dnows31586-dthens31586); else ddiffs31586 = new Date(dthens31586-dnows31586); gsecss31586 = Math.floor(ddiffs31586.valueOf()/1000); CountBacks31586(gsecss31586);