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 (LeadingZeros31603 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31603(secs) { if (secs < 0) { document.getElementById("cntdwns31603").innerHTML = FinishMessages31603; return; } DisplayStrs31603 = DisplayFormats31603.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31603 = DisplayStrs31603.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31603 = DisplayStrs31603.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31603 = DisplayStrs31603.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31603").innerHTML = DisplayStrs31603; if (CountActives31603) //alert(SetTimeOutPeriods31603); setTimeout("CountBacks31603(" + (secs+CountSteppers31603) + ")", SetTimeOutPeriods31603); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31603)=="undefined") BackColors31603 = ""; if (typeof(ForeColors31603)=="undefined") ForeColors31603= "white"; if (typeof(TargetDates31603)=="undefined") TargetDates31603 = "03/28/2025 10:00:00 PM"; if (typeof(DisplayFormats31603)=="undefined") DisplayFormats31603 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31603)=="undefined") CountActives31603 = true; if (typeof(FinishMessages31603)=="undefined") FinishMessages31603 = ""; if (typeof(CountSteppers31603)!="number") CountSteppers31603 = -1; if (typeof(LeadingZeros31603)=="undefined") LeadingZeros31603 = true; CountSteppers31603 = Math.ceil(CountSteppers31603); if (CountSteppers31603 == 0) CountActives31603 = false; var SetTimeOutPeriods31603 = (Math.abs(CountSteppers31603)-1)*1000 + 990; puti(BackColors31603, ForeColors31603); var dthens31603 = new Date(TargetDates31603); var dnows31603 = new Date("03/29/2025 3:13:30 PM"); if(CountSteppers31603>0) ddiffs31603 = new Date(dnows31603-dthens31603); else ddiffs31603 = new Date(dthens31603-dnows31603); gsecss31603 = Math.floor(ddiffs31603.valueOf()/1000); CountBacks31603(gsecss31603);