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 (LeadingZeros31689 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31689(secs) { if (secs < 0) { document.getElementById("cntdwns31689").innerHTML = FinishMessages31689; return; } DisplayStrs31689 = DisplayFormats31689.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31689 = DisplayStrs31689.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31689 = DisplayStrs31689.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31689 = DisplayStrs31689.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31689").innerHTML = DisplayStrs31689; if (CountActives31689) //alert(SetTimeOutPeriods31689); setTimeout("CountBacks31689(" + (secs+CountSteppers31689) + ")", SetTimeOutPeriods31689); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31689)=="undefined") BackColors31689 = ""; if (typeof(ForeColors31689)=="undefined") ForeColors31689= "white"; if (typeof(TargetDates31689)=="undefined") TargetDates31689 = "02/14/2025 10:00:00 PM"; if (typeof(DisplayFormats31689)=="undefined") DisplayFormats31689 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31689)=="undefined") CountActives31689 = true; if (typeof(FinishMessages31689)=="undefined") FinishMessages31689 = ""; if (typeof(CountSteppers31689)!="number") CountSteppers31689 = -1; if (typeof(LeadingZeros31689)=="undefined") LeadingZeros31689 = true; CountSteppers31689 = Math.ceil(CountSteppers31689); if (CountSteppers31689 == 0) CountActives31689 = false; var SetTimeOutPeriods31689 = (Math.abs(CountSteppers31689)-1)*1000 + 990; puti(BackColors31689, ForeColors31689); var dthens31689 = new Date(TargetDates31689); var dnows31689 = new Date("02/12/2025 12:46:05 AM"); if(CountSteppers31689>0) ddiffs31689 = new Date(dnows31689-dthens31689); else ddiffs31689 = new Date(dthens31689-dnows31689); gsecss31689 = Math.floor(ddiffs31689.valueOf()/1000); CountBacks31689(gsecss31689);