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 (LeadingZeros31919 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31919(secs) { if (secs < 0) { document.getElementById("cntdwns31919").innerHTML = FinishMessages31919; return; } DisplayStrs31919 = DisplayFormats31919.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31919 = DisplayStrs31919.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31919 = DisplayStrs31919.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31919 = DisplayStrs31919.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31919").innerHTML = DisplayStrs31919; if (CountActives31919) //alert(SetTimeOutPeriods31919); setTimeout("CountBacks31919(" + (secs+CountSteppers31919) + ")", SetTimeOutPeriods31919); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31919)=="undefined") BackColors31919 = ""; if (typeof(ForeColors31919)=="undefined") ForeColors31919= "white"; if (typeof(TargetDates31919)=="undefined") TargetDates31919 = "03/29/2025 10:00:00 PM"; if (typeof(DisplayFormats31919)=="undefined") DisplayFormats31919 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31919)=="undefined") CountActives31919 = true; if (typeof(FinishMessages31919)=="undefined") FinishMessages31919 = ""; if (typeof(CountSteppers31919)!="number") CountSteppers31919 = -1; if (typeof(LeadingZeros31919)=="undefined") LeadingZeros31919 = true; CountSteppers31919 = Math.ceil(CountSteppers31919); if (CountSteppers31919 == 0) CountActives31919 = false; var SetTimeOutPeriods31919 = (Math.abs(CountSteppers31919)-1)*1000 + 990; puti(BackColors31919, ForeColors31919); var dthens31919 = new Date(TargetDates31919); var dnows31919 = new Date("03/28/2025 7:35:54 PM"); if(CountSteppers31919>0) ddiffs31919 = new Date(dnows31919-dthens31919); else ddiffs31919 = new Date(dthens31919-dnows31919); gsecss31919 = Math.floor(ddiffs31919.valueOf()/1000); CountBacks31919(gsecss31919);