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 (LeadingZeros31788 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31788(secs) { if (secs < 0) { document.getElementById("cntdwns31788").innerHTML = FinishMessages31788; return; } DisplayStrs31788 = DisplayFormats31788.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31788 = DisplayStrs31788.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31788 = DisplayStrs31788.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31788 = DisplayStrs31788.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31788").innerHTML = DisplayStrs31788; if (CountActives31788) //alert(SetTimeOutPeriods31788); setTimeout("CountBacks31788(" + (secs+CountSteppers31788) + ")", SetTimeOutPeriods31788); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31788)=="undefined") BackColors31788 = ""; if (typeof(ForeColors31788)=="undefined") ForeColors31788= "white"; if (typeof(TargetDates31788)=="undefined") TargetDates31788 = "02/01/2025 10:00:00 PM"; if (typeof(DisplayFormats31788)=="undefined") DisplayFormats31788 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31788)=="undefined") CountActives31788 = true; if (typeof(FinishMessages31788)=="undefined") FinishMessages31788 = ""; if (typeof(CountSteppers31788)!="number") CountSteppers31788 = -1; if (typeof(LeadingZeros31788)=="undefined") LeadingZeros31788 = true; CountSteppers31788 = Math.ceil(CountSteppers31788); if (CountSteppers31788 == 0) CountActives31788 = false; var SetTimeOutPeriods31788 = (Math.abs(CountSteppers31788)-1)*1000 + 990; puti(BackColors31788, ForeColors31788); var dthens31788 = new Date(TargetDates31788); var dnows31788 = new Date("01/31/2025 2:28:32 AM"); if(CountSteppers31788>0) ddiffs31788 = new Date(dnows31788-dthens31788); else ddiffs31788 = new Date(dthens31788-dnows31788); gsecss31788 = Math.floor(ddiffs31788.valueOf()/1000); CountBacks31788(gsecss31788);