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 (LeadingZeros31195 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31195(secs) { if (secs < 0) { document.getElementById("cntdwns31195").innerHTML = FinishMessages31195; return; } DisplayStrs31195 = DisplayFormats31195.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31195 = DisplayStrs31195.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31195 = DisplayStrs31195.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31195 = DisplayStrs31195.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31195").innerHTML = DisplayStrs31195; if (CountActives31195) //alert(SetTimeOutPeriods31195); setTimeout("CountBacks31195(" + (secs+CountSteppers31195) + ")", SetTimeOutPeriods31195); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31195)=="undefined") BackColors31195 = ""; if (typeof(ForeColors31195)=="undefined") ForeColors31195= "white"; if (typeof(TargetDates31195)=="undefined") TargetDates31195 = "02/01/2025 9:00:00 PM"; if (typeof(DisplayFormats31195)=="undefined") DisplayFormats31195 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31195)=="undefined") CountActives31195 = true; if (typeof(FinishMessages31195)=="undefined") FinishMessages31195 = ""; if (typeof(CountSteppers31195)!="number") CountSteppers31195 = -1; if (typeof(LeadingZeros31195)=="undefined") LeadingZeros31195 = true; CountSteppers31195 = Math.ceil(CountSteppers31195); if (CountSteppers31195 == 0) CountActives31195 = false; var SetTimeOutPeriods31195 = (Math.abs(CountSteppers31195)-1)*1000 + 990; puti(BackColors31195, ForeColors31195); var dthens31195 = new Date(TargetDates31195); var dnows31195 = new Date("01/31/2025 12:18:31 AM"); if(CountSteppers31195>0) ddiffs31195 = new Date(dnows31195-dthens31195); else ddiffs31195 = new Date(dthens31195-dnows31195); gsecss31195 = Math.floor(ddiffs31195.valueOf()/1000); CountBacks31195(gsecss31195);