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 (LeadingZeros31697 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31697(secs) { if (secs < 0) { document.getElementById("cntdwns31697").innerHTML = FinishMessages31697; return; } DisplayStrs31697 = DisplayFormats31697.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31697 = DisplayStrs31697.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31697 = DisplayStrs31697.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31697 = DisplayStrs31697.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31697").innerHTML = DisplayStrs31697; if (CountActives31697) //alert(SetTimeOutPeriods31697); setTimeout("CountBacks31697(" + (secs+CountSteppers31697) + ")", SetTimeOutPeriods31697); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31697)=="undefined") BackColors31697 = ""; if (typeof(ForeColors31697)=="undefined") ForeColors31697= "white"; if (typeof(TargetDates31697)=="undefined") TargetDates31697 = "01/27/2025 10:00:00 PM"; if (typeof(DisplayFormats31697)=="undefined") DisplayFormats31697 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31697)=="undefined") CountActives31697 = true; if (typeof(FinishMessages31697)=="undefined") FinishMessages31697 = ""; if (typeof(CountSteppers31697)!="number") CountSteppers31697 = -1; if (typeof(LeadingZeros31697)=="undefined") LeadingZeros31697 = true; CountSteppers31697 = Math.ceil(CountSteppers31697); if (CountSteppers31697 == 0) CountActives31697 = false; var SetTimeOutPeriods31697 = (Math.abs(CountSteppers31697)-1)*1000 + 990; puti(BackColors31697, ForeColors31697); var dthens31697 = new Date(TargetDates31697); var dnows31697 = new Date("02/05/2025 3:12:01 PM"); if(CountSteppers31697>0) ddiffs31697 = new Date(dnows31697-dthens31697); else ddiffs31697 = new Date(dthens31697-dnows31697); gsecss31697 = Math.floor(ddiffs31697.valueOf()/1000); CountBacks31697(gsecss31697);