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 (LeadingZero1696622400top27961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1696622400top27961(secs) { if (secs < 0) { document.getElementById("cntdwn1696622400top27961").innerHTML = FinishMessage1696622400top27961; return; } DisplayStr1696622400top27961 = DisplayFormat1696622400top27961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1696622400top27961 = DisplayStr1696622400top27961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1696622400top27961 = DisplayStr1696622400top27961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1696622400top27961 = DisplayStr1696622400top27961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1696622400top27961").innerHTML = DisplayStr1696622400top27961; if (CountActive1696622400top27961) //alert(SetTimeOutPeriod1696622400top27961); setTimeout("CountBack1696622400top27961(" + (secs+CountStepper1696622400top27961) + ")", SetTimeOutPeriod1696622400top27961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1696622400top27961)=="undefined") BackColor1696622400top27961 = ""; if (typeof(ForeColor1696622400top27961)=="undefined") ForeColor1696622400top27961= "white"; if (typeof(TargetDate1696622400top27961)=="undefined") TargetDate1696622400top27961 = "10/06/2023 10:00:00 PM"; if (typeof(DisplayFormat1696622400top27961)=="undefined") DisplayFormat1696622400top27961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1696622400top27961)=="undefined") CountActive1696622400top27961 = true; if (typeof(FinishMessage1696622400top27961)=="undefined") FinishMessage1696622400top27961 = ""; if (typeof(CountStepper1696622400top27961)!="number") CountStepper1696622400top27961 = -1; if (typeof(LeadingZero1696622400top27961)=="undefined") LeadingZero1696622400top27961 = true; CountStepper1696622400top27961 = Math.ceil(CountStepper1696622400top27961); if (CountStepper1696622400top27961 == 0) CountActive1696622400top27961 = false; var SetTimeOutPeriod1696622400top27961 = (Math.abs(CountStepper1696622400top27961)-1)*1000 + 990; puti(BackColor1696622400top27961, ForeColor1696622400top27961); var dthen1696622400top27961 = new Date(TargetDate1696622400top27961); var dnow1696622400top27961 = new Date("05/11/2025 12:39:18 PM"); if(CountStepper1696622400top27961>0) ddiff1696622400top27961 = new Date(dnow1696622400top27961-dthen1696622400top27961); else ddiff1696622400top27961 = new Date(dthen1696622400top27961-dnow1696622400top27961); gsecs1696622400top27961 = Math.floor(ddiff1696622400top27961.valueOf()/1000); CountBack1696622400top27961(gsecs1696622400top27961);