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 (LeadingZeros31686 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks31686(secs) { if (secs < 0) { document.getElementById("cntdwns31686").innerHTML = FinishMessages31686; return; } DisplayStrs31686 = DisplayFormats31686.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs31686 = DisplayStrs31686.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs31686 = DisplayStrs31686.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs31686 = DisplayStrs31686.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns31686").innerHTML = DisplayStrs31686; if (CountActives31686) //alert(SetTimeOutPeriods31686); setTimeout("CountBacks31686(" + (secs+CountSteppers31686) + ")", SetTimeOutPeriods31686); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors31686)=="undefined") BackColors31686 = ""; if (typeof(ForeColors31686)=="undefined") ForeColors31686= "white"; if (typeof(TargetDates31686)=="undefined") TargetDates31686 = "02/25/2025 10:00:00 PM"; if (typeof(DisplayFormats31686)=="undefined") DisplayFormats31686 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives31686)=="undefined") CountActives31686 = true; if (typeof(FinishMessages31686)=="undefined") FinishMessages31686 = ""; if (typeof(CountSteppers31686)!="number") CountSteppers31686 = -1; if (typeof(LeadingZeros31686)=="undefined") LeadingZeros31686 = true; CountSteppers31686 = Math.ceil(CountSteppers31686); if (CountSteppers31686 == 0) CountActives31686 = false; var SetTimeOutPeriods31686 = (Math.abs(CountSteppers31686)-1)*1000 + 990; puti(BackColors31686, ForeColors31686); var dthens31686 = new Date(TargetDates31686); var dnows31686 = new Date("02/22/2025 10:07:03 PM"); if(CountSteppers31686>0) ddiffs31686 = new Date(dnows31686-dthens31686); else ddiffs31686 = new Date(dthens31686-dnows31686); gsecss31686 = Math.floor(ddiffs31686.valueOf()/1000); CountBacks31686(gsecss31686);