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 (LeadingZeros31743 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31743(secs) { if (secs < 0) { document.getElementById("cntdwns31743").innerHTML = FinishMessages31743; return; } DisplayStrs31743 = DisplayFormats31743.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31743 = DisplayStrs31743.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31743 = DisplayStrs31743.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31743 = DisplayStrs31743.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31743").innerHTML = DisplayStrs31743; if (CountActives31743) //alert(SetTimeOutPeriods31743); setTimeout("CountBacks31743(" + (secs+CountSteppers31743) + ")", SetTimeOutPeriods31743); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31743)=="undefined") BackColors31743 = ""; if (typeof(ForeColors31743)=="undefined") ForeColors31743= "white"; if (typeof(TargetDates31743)=="undefined") TargetDates31743 = "02/07/2025 10:00:00 PM"; if (typeof(DisplayFormats31743)=="undefined") DisplayFormats31743 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31743)=="undefined") CountActives31743 = true; if (typeof(FinishMessages31743)=="undefined") FinishMessages31743 = ""; if (typeof(CountSteppers31743)!="number") CountSteppers31743 = -1; if (typeof(LeadingZeros31743)=="undefined") LeadingZeros31743 = true; CountSteppers31743 = Math.ceil(CountSteppers31743); if (CountSteppers31743 == 0) CountActives31743 = false; var SetTimeOutPeriods31743 = (Math.abs(CountSteppers31743)-1)*1000 + 990; puti(BackColors31743, ForeColors31743); var dthens31743 = new Date(TargetDates31743); var dnows31743 = new Date("02/06/2025 12:51:17 AM"); if(CountSteppers31743>0) ddiffs31743 = new Date(dnows31743-dthens31743); else ddiffs31743 = new Date(dthens31743-dnows31743); gsecss31743 = Math.floor(ddiffs31743.valueOf()/1000); CountBacks31743(gsecss31743);