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 (LeadingZero1695758400top27961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1695758400top27961(secs) { if (secs < 0) { document.getElementById("cntdwn1695758400top27961").innerHTML = FinishMessage1695758400top27961; return; } DisplayStr1695758400top27961 = DisplayFormat1695758400top27961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1695758400top27961 = DisplayStr1695758400top27961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1695758400top27961 = DisplayStr1695758400top27961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1695758400top27961 = DisplayStr1695758400top27961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1695758400top27961").innerHTML = DisplayStr1695758400top27961; if (CountActive1695758400top27961) //alert(SetTimeOutPeriod1695758400top27961); setTimeout("CountBack1695758400top27961(" + (secs+CountStepper1695758400top27961) + ")", SetTimeOutPeriod1695758400top27961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1695758400top27961)=="undefined") BackColor1695758400top27961 = ""; if (typeof(ForeColor1695758400top27961)=="undefined") ForeColor1695758400top27961= "white"; if (typeof(TargetDate1695758400top27961)=="undefined") TargetDate1695758400top27961 = "09/26/2023 10:00:00 PM"; if (typeof(DisplayFormat1695758400top27961)=="undefined") DisplayFormat1695758400top27961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1695758400top27961)=="undefined") CountActive1695758400top27961 = true; if (typeof(FinishMessage1695758400top27961)=="undefined") FinishMessage1695758400top27961 = ""; if (typeof(CountStepper1695758400top27961)!="number") CountStepper1695758400top27961 = -1; if (typeof(LeadingZero1695758400top27961)=="undefined") LeadingZero1695758400top27961 = true; CountStepper1695758400top27961 = Math.ceil(CountStepper1695758400top27961); if (CountStepper1695758400top27961 == 0) CountActive1695758400top27961 = false; var SetTimeOutPeriod1695758400top27961 = (Math.abs(CountStepper1695758400top27961)-1)*1000 + 990; puti(BackColor1695758400top27961, ForeColor1695758400top27961); var dthen1695758400top27961 = new Date(TargetDate1695758400top27961); var dnow1695758400top27961 = new Date("05/09/2025 12:12:25 PM"); if(CountStepper1695758400top27961>0) ddiff1695758400top27961 = new Date(dnow1695758400top27961-dthen1695758400top27961); else ddiff1695758400top27961 = new Date(dthen1695758400top27961-dnow1695758400top27961); gsecs1695758400top27961 = Math.floor(ddiff1695758400top27961.valueOf()/1000); CountBack1695758400top27961(gsecs1695758400top27961);