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 (LeadingZero1685480400top27961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1685480400top27961(secs) { if (secs < 0) { document.getElementById("cntdwn1685480400top27961").innerHTML = FinishMessage1685480400top27961; return; } DisplayStr1685480400top27961 = DisplayFormat1685480400top27961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1685480400top27961 = DisplayStr1685480400top27961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1685480400top27961 = DisplayStr1685480400top27961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1685480400top27961 = DisplayStr1685480400top27961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1685480400top27961").innerHTML = DisplayStr1685480400top27961; if (CountActive1685480400top27961) //alert(SetTimeOutPeriod1685480400top27961); setTimeout("CountBack1685480400top27961(" + (secs+CountStepper1685480400top27961) + ")", SetTimeOutPeriod1685480400top27961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1685480400top27961)=="undefined") BackColor1685480400top27961 = ""; if (typeof(ForeColor1685480400top27961)=="undefined") ForeColor1685480400top27961= "white"; if (typeof(TargetDate1685480400top27961)=="undefined") TargetDate1685480400top27961 = "05/30/2023 11:00:00 PM"; if (typeof(DisplayFormat1685480400top27961)=="undefined") DisplayFormat1685480400top27961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1685480400top27961)=="undefined") CountActive1685480400top27961 = true; if (typeof(FinishMessage1685480400top27961)=="undefined") FinishMessage1685480400top27961 = ""; if (typeof(CountStepper1685480400top27961)!="number") CountStepper1685480400top27961 = -1; if (typeof(LeadingZero1685480400top27961)=="undefined") LeadingZero1685480400top27961 = true; CountStepper1685480400top27961 = Math.ceil(CountStepper1685480400top27961); if (CountStepper1685480400top27961 == 0) CountActive1685480400top27961 = false; var SetTimeOutPeriod1685480400top27961 = (Math.abs(CountStepper1685480400top27961)-1)*1000 + 990; puti(BackColor1685480400top27961, ForeColor1685480400top27961); var dthen1685480400top27961 = new Date(TargetDate1685480400top27961); var dnow1685480400top27961 = new Date("05/09/2025 10:15:17 AM"); if(CountStepper1685480400top27961>0) ddiff1685480400top27961 = new Date(dnow1685480400top27961-dthen1685480400top27961); else ddiff1685480400top27961 = new Date(dthen1685480400top27961-dnow1685480400top27961); gsecs1685480400top27961 = Math.floor(ddiff1685480400top27961.valueOf()/1000); CountBack1685480400top27961(gsecs1685480400top27961);