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 (LeadingZero1686772800top26896 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1686772800top26896(secs) { if (secs < 0) { document.getElementById("cntdwn1686772800top26896").innerHTML = FinishMessage1686772800top26896; return; } DisplayStr1686772800top26896 = DisplayFormat1686772800top26896.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1686772800top26896 = DisplayStr1686772800top26896.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1686772800top26896 = DisplayStr1686772800top26896.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1686772800top26896 = DisplayStr1686772800top26896.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1686772800top26896").innerHTML = DisplayStr1686772800top26896; if (CountActive1686772800top26896) //alert(SetTimeOutPeriod1686772800top26896); setTimeout("CountBack1686772800top26896(" + (secs+CountStepper1686772800top26896) + ")", SetTimeOutPeriod1686772800top26896); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1686772800top26896)=="undefined") BackColor1686772800top26896 = ""; if (typeof(ForeColor1686772800top26896)=="undefined") ForeColor1686772800top26896= "white"; if (typeof(TargetDate1686772800top26896)=="undefined") TargetDate1686772800top26896 = "06/14/2023 10:00:00 PM"; if (typeof(DisplayFormat1686772800top26896)=="undefined") DisplayFormat1686772800top26896 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1686772800top26896)=="undefined") CountActive1686772800top26896 = true; if (typeof(FinishMessage1686772800top26896)=="undefined") FinishMessage1686772800top26896 = ""; if (typeof(CountStepper1686772800top26896)!="number") CountStepper1686772800top26896 = -1; if (typeof(LeadingZero1686772800top26896)=="undefined") LeadingZero1686772800top26896 = true; CountStepper1686772800top26896 = Math.ceil(CountStepper1686772800top26896); if (CountStepper1686772800top26896 == 0) CountActive1686772800top26896 = false; var SetTimeOutPeriod1686772800top26896 = (Math.abs(CountStepper1686772800top26896)-1)*1000 + 990; puti(BackColor1686772800top26896, ForeColor1686772800top26896); var dthen1686772800top26896 = new Date(TargetDate1686772800top26896); var dnow1686772800top26896 = new Date("05/09/2025 10:22:14 AM"); if(CountStepper1686772800top26896>0) ddiff1686772800top26896 = new Date(dnow1686772800top26896-dthen1686772800top26896); else ddiff1686772800top26896 = new Date(dthen1686772800top26896-dnow1686772800top26896); gsecs1686772800top26896 = Math.floor(ddiff1686772800top26896.valueOf()/1000); CountBack1686772800top26896(gsecs1686772800top26896);