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 (LeadingZeros31759 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31759(secs) { if (secs < 0) { document.getElementById("cntdwns31759").innerHTML = FinishMessages31759; return; } DisplayStrs31759 = DisplayFormats31759.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31759 = DisplayStrs31759.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31759 = DisplayStrs31759.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31759 = DisplayStrs31759.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31759").innerHTML = DisplayStrs31759; if (CountActives31759) //alert(SetTimeOutPeriods31759); setTimeout("CountBacks31759(" + (secs+CountSteppers31759) + ")", SetTimeOutPeriods31759); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31759)=="undefined") BackColors31759 = ""; if (typeof(ForeColors31759)=="undefined") ForeColors31759= "white"; if (typeof(TargetDates31759)=="undefined") TargetDates31759 = "01/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31759)=="undefined") DisplayFormats31759 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31759)=="undefined") CountActives31759 = true; if (typeof(FinishMessages31759)=="undefined") FinishMessages31759 = ""; if (typeof(CountSteppers31759)!="number") CountSteppers31759 = -1; if (typeof(LeadingZeros31759)=="undefined") LeadingZeros31759 = true; CountSteppers31759 = Math.ceil(CountSteppers31759); if (CountSteppers31759 == 0) CountActives31759 = false; var SetTimeOutPeriods31759 = (Math.abs(CountSteppers31759)-1)*1000 + 990; puti(BackColors31759, ForeColors31759); var dthens31759 = new Date(TargetDates31759); var dnows31759 = new Date("02/05/2025 8:46:32 AM"); if(CountSteppers31759>0) ddiffs31759 = new Date(dnows31759-dthens31759); else ddiffs31759 = new Date(dthens31759-dnows31759); gsecss31759 = Math.floor(ddiffs31759.valueOf()/1000); CountBacks31759(gsecss31759);