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 (LeadingZeros31957 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31957(secs) { if (secs < 0) { document.getElementById("cntdwns31957").innerHTML = FinishMessages31957; return; } DisplayStrs31957 = DisplayFormats31957.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31957 = DisplayStrs31957.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31957 = DisplayStrs31957.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31957 = DisplayStrs31957.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31957").innerHTML = DisplayStrs31957; if (CountActives31957) //alert(SetTimeOutPeriods31957); setTimeout("CountBacks31957(" + (secs+CountSteppers31957) + ")", SetTimeOutPeriods31957); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31957)=="undefined") BackColors31957 = ""; if (typeof(ForeColors31957)=="undefined") ForeColors31957= "white"; if (typeof(TargetDates31957)=="undefined") TargetDates31957 = "03/31/2025 11:00:00 PM"; if (typeof(DisplayFormats31957)=="undefined") DisplayFormats31957 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31957)=="undefined") CountActives31957 = true; if (typeof(FinishMessages31957)=="undefined") FinishMessages31957 = ""; if (typeof(CountSteppers31957)!="number") CountSteppers31957 = -1; if (typeof(LeadingZeros31957)=="undefined") LeadingZeros31957 = true; CountSteppers31957 = Math.ceil(CountSteppers31957); if (CountSteppers31957 == 0) CountActives31957 = false; var SetTimeOutPeriods31957 = (Math.abs(CountSteppers31957)-1)*1000 + 990; puti(BackColors31957, ForeColors31957); var dthens31957 = new Date(TargetDates31957); var dnows31957 = new Date("04/01/2025 3:23:54 AM"); if(CountSteppers31957>0) ddiffs31957 = new Date(dnows31957-dthens31957); else ddiffs31957 = new Date(dthens31957-dnows31957); gsecss31957 = Math.floor(ddiffs31957.valueOf()/1000); CountBacks31957(gsecss31957);