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 (LeadingZeros31737 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31737(secs) { if (secs < 0) { document.getElementById("cntdwns31737").innerHTML = FinishMessages31737; return; } DisplayStrs31737 = DisplayFormats31737.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31737 = DisplayStrs31737.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31737 = DisplayStrs31737.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31737 = DisplayStrs31737.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31737").innerHTML = DisplayStrs31737; if (CountActives31737) //alert(SetTimeOutPeriods31737); setTimeout("CountBacks31737(" + (secs+CountSteppers31737) + ")", SetTimeOutPeriods31737); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31737)=="undefined") BackColors31737 = ""; if (typeof(ForeColors31737)=="undefined") ForeColors31737= "white"; if (typeof(TargetDates31737)=="undefined") TargetDates31737 = "01/27/2025 10:00:00 PM"; if (typeof(DisplayFormats31737)=="undefined") DisplayFormats31737 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31737)=="undefined") CountActives31737 = true; if (typeof(FinishMessages31737)=="undefined") FinishMessages31737 = ""; if (typeof(CountSteppers31737)!="number") CountSteppers31737 = -1; if (typeof(LeadingZeros31737)=="undefined") LeadingZeros31737 = true; CountSteppers31737 = Math.ceil(CountSteppers31737); if (CountSteppers31737 == 0) CountActives31737 = false; var SetTimeOutPeriods31737 = (Math.abs(CountSteppers31737)-1)*1000 + 990; puti(BackColors31737, ForeColors31737); var dthens31737 = new Date(TargetDates31737); var dnows31737 = new Date("02/05/2025 7:54:37 AM"); if(CountSteppers31737>0) ddiffs31737 = new Date(dnows31737-dthens31737); else ddiffs31737 = new Date(dthens31737-dnows31737); gsecss31737 = Math.floor(ddiffs31737.valueOf()/1000); CountBacks31737(gsecss31737);