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 (LeadingZero1686171600top27961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1686171600top27961(secs) { if (secs < 0) { document.getElementById("cntdwn1686171600top27961").innerHTML = FinishMessage1686171600top27961; return; } DisplayStr1686171600top27961 = DisplayFormat1686171600top27961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1686171600top27961 = DisplayStr1686171600top27961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1686171600top27961 = DisplayStr1686171600top27961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1686171600top27961 = DisplayStr1686171600top27961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1686171600top27961").innerHTML = DisplayStr1686171600top27961; if (CountActive1686171600top27961) //alert(SetTimeOutPeriod1686171600top27961); setTimeout("CountBack1686171600top27961(" + (secs+CountStepper1686171600top27961) + ")", SetTimeOutPeriod1686171600top27961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1686171600top27961)=="undefined") BackColor1686171600top27961 = ""; if (typeof(ForeColor1686171600top27961)=="undefined") ForeColor1686171600top27961= "white"; if (typeof(TargetDate1686171600top27961)=="undefined") TargetDate1686171600top27961 = "06/07/2023 11:00:00 PM"; if (typeof(DisplayFormat1686171600top27961)=="undefined") DisplayFormat1686171600top27961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1686171600top27961)=="undefined") CountActive1686171600top27961 = true; if (typeof(FinishMessage1686171600top27961)=="undefined") FinishMessage1686171600top27961 = ""; if (typeof(CountStepper1686171600top27961)!="number") CountStepper1686171600top27961 = -1; if (typeof(LeadingZero1686171600top27961)=="undefined") LeadingZero1686171600top27961 = true; CountStepper1686171600top27961 = Math.ceil(CountStepper1686171600top27961); if (CountStepper1686171600top27961 == 0) CountActive1686171600top27961 = false; var SetTimeOutPeriod1686171600top27961 = (Math.abs(CountStepper1686171600top27961)-1)*1000 + 990; puti(BackColor1686171600top27961, ForeColor1686171600top27961); var dthen1686171600top27961 = new Date(TargetDate1686171600top27961); var dnow1686171600top27961 = new Date("05/09/2025 1:14:40 PM"); if(CountStepper1686171600top27961>0) ddiff1686171600top27961 = new Date(dnow1686171600top27961-dthen1686171600top27961); else ddiff1686171600top27961 = new Date(dthen1686171600top27961-dnow1686171600top27961); gsecs1686171600top27961 = Math.floor(ddiff1686171600top27961.valueOf()/1000); CountBack1686171600top27961(gsecs1686171600top27961);