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 (LeadingZeros31978 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31978(secs) { if (secs < 0) { document.getElementById("cntdwns31978").innerHTML = FinishMessages31978; return; } DisplayStrs31978 = DisplayFormats31978.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31978 = DisplayStrs31978.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31978 = DisplayStrs31978.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31978 = DisplayStrs31978.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31978").innerHTML = DisplayStrs31978; if (CountActives31978) //alert(SetTimeOutPeriods31978); setTimeout("CountBacks31978(" + (secs+CountSteppers31978) + ")", SetTimeOutPeriods31978); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31978)=="undefined") BackColors31978 = ""; if (typeof(ForeColors31978)=="undefined") ForeColors31978= "white"; if (typeof(TargetDates31978)=="undefined") TargetDates31978 = "03/15/2025 10:00:00 PM"; if (typeof(DisplayFormats31978)=="undefined") DisplayFormats31978 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31978)=="undefined") CountActives31978 = true; if (typeof(FinishMessages31978)=="undefined") FinishMessages31978 = ""; if (typeof(CountSteppers31978)!="number") CountSteppers31978 = -1; if (typeof(LeadingZeros31978)=="undefined") LeadingZeros31978 = true; CountSteppers31978 = Math.ceil(CountSteppers31978); if (CountSteppers31978 == 0) CountActives31978 = false; var SetTimeOutPeriods31978 = (Math.abs(CountSteppers31978)-1)*1000 + 990; puti(BackColors31978, ForeColors31978); var dthens31978 = new Date(TargetDates31978); var dnows31978 = new Date("03/12/2025 12:21:36 PM"); if(CountSteppers31978>0) ddiffs31978 = new Date(dnows31978-dthens31978); else ddiffs31978 = new Date(dthens31978-dnows31978); gsecss31978 = Math.floor(ddiffs31978.valueOf()/1000); CountBacks31978(gsecss31978);