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 (LeadingZeros31668 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31668(secs) { if (secs < 0) { document.getElementById("cntdwns31668").innerHTML = FinishMessages31668; return; } DisplayStrs31668 = DisplayFormats31668.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31668 = DisplayStrs31668.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31668 = DisplayStrs31668.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31668 = DisplayStrs31668.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31668").innerHTML = DisplayStrs31668; if (CountActives31668) //alert(SetTimeOutPeriods31668); setTimeout("CountBacks31668(" + (secs+CountSteppers31668) + ")", SetTimeOutPeriods31668); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31668)=="undefined") BackColors31668 = ""; if (typeof(ForeColors31668)=="undefined") ForeColors31668= "white"; if (typeof(TargetDates31668)=="undefined") TargetDates31668 = "02/09/2025 10:00:00 PM"; if (typeof(DisplayFormats31668)=="undefined") DisplayFormats31668 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31668)=="undefined") CountActives31668 = true; if (typeof(FinishMessages31668)=="undefined") FinishMessages31668 = ""; if (typeof(CountSteppers31668)!="number") CountSteppers31668 = -1; if (typeof(LeadingZeros31668)=="undefined") LeadingZeros31668 = true; CountSteppers31668 = Math.ceil(CountSteppers31668); if (CountSteppers31668 == 0) CountActives31668 = false; var SetTimeOutPeriods31668 = (Math.abs(CountSteppers31668)-1)*1000 + 990; puti(BackColors31668, ForeColors31668); var dthens31668 = new Date(TargetDates31668); var dnows31668 = new Date("03/14/2025 6:54:34 AM"); if(CountSteppers31668>0) ddiffs31668 = new Date(dnows31668-dthens31668); else ddiffs31668 = new Date(dthens31668-dnows31668); gsecss31668 = Math.floor(ddiffs31668.valueOf()/1000); CountBacks31668(gsecss31668);