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 (LeadingZeros31767 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31767(secs) { if (secs < 0) { document.getElementById("cntdwns31767").innerHTML = FinishMessages31767; return; } DisplayStrs31767 = DisplayFormats31767.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31767 = DisplayStrs31767.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31767 = DisplayStrs31767.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31767 = DisplayStrs31767.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31767").innerHTML = DisplayStrs31767; if (CountActives31767) //alert(SetTimeOutPeriods31767); setTimeout("CountBacks31767(" + (secs+CountSteppers31767) + ")", SetTimeOutPeriods31767); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31767)=="undefined") BackColors31767 = ""; if (typeof(ForeColors31767)=="undefined") ForeColors31767= "white"; if (typeof(TargetDates31767)=="undefined") TargetDates31767 = "02/08/2025 10:00:00 PM"; if (typeof(DisplayFormats31767)=="undefined") DisplayFormats31767 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31767)=="undefined") CountActives31767 = true; if (typeof(FinishMessages31767)=="undefined") FinishMessages31767 = ""; if (typeof(CountSteppers31767)!="number") CountSteppers31767 = -1; if (typeof(LeadingZeros31767)=="undefined") LeadingZeros31767 = true; CountSteppers31767 = Math.ceil(CountSteppers31767); if (CountSteppers31767 == 0) CountActives31767 = false; var SetTimeOutPeriods31767 = (Math.abs(CountSteppers31767)-1)*1000 + 990; puti(BackColors31767, ForeColors31767); var dthens31767 = new Date(TargetDates31767); var dnows31767 = new Date("02/06/2025 2:50:14 AM"); if(CountSteppers31767>0) ddiffs31767 = new Date(dnows31767-dthens31767); else ddiffs31767 = new Date(dthens31767-dnows31767); gsecss31767 = Math.floor(ddiffs31767.valueOf()/1000); CountBacks31767(gsecss31767);