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 (LeadingZero1679691600top28123 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1679691600top28123(secs) { if (secs < 0) { document.getElementById("cntdwn1679691600top28123").innerHTML = FinishMessage1679691600top28123; return; } DisplayStr1679691600top28123 = DisplayFormat1679691600top28123.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1679691600top28123 = DisplayStr1679691600top28123.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1679691600top28123 = DisplayStr1679691600top28123.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1679691600top28123 = DisplayStr1679691600top28123.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1679691600top28123").innerHTML = DisplayStr1679691600top28123; if (CountActive1679691600top28123) //alert(SetTimeOutPeriod1679691600top28123); setTimeout("CountBack1679691600top28123(" + (secs+CountStepper1679691600top28123) + ")", SetTimeOutPeriod1679691600top28123); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1679691600top28123)=="undefined") BackColor1679691600top28123 = ""; if (typeof(ForeColor1679691600top28123)=="undefined") ForeColor1679691600top28123= "white"; if (typeof(TargetDate1679691600top28123)=="undefined") TargetDate1679691600top28123 = "03/24/2023 10:00:00 PM"; if (typeof(DisplayFormat1679691600top28123)=="undefined") DisplayFormat1679691600top28123 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1679691600top28123)=="undefined") CountActive1679691600top28123 = true; if (typeof(FinishMessage1679691600top28123)=="undefined") FinishMessage1679691600top28123 = ""; if (typeof(CountStepper1679691600top28123)!="number") CountStepper1679691600top28123 = -1; if (typeof(LeadingZero1679691600top28123)=="undefined") LeadingZero1679691600top28123 = true; CountStepper1679691600top28123 = Math.ceil(CountStepper1679691600top28123); if (CountStepper1679691600top28123 == 0) CountActive1679691600top28123 = false; var SetTimeOutPeriod1679691600top28123 = (Math.abs(CountStepper1679691600top28123)-1)*1000 + 990; puti(BackColor1679691600top28123, ForeColor1679691600top28123); var dthen1679691600top28123 = new Date(TargetDate1679691600top28123); var dnow1679691600top28123 = new Date("05/13/2025 5:02:34 AM"); if(CountStepper1679691600top28123>0) ddiff1679691600top28123 = new Date(dnow1679691600top28123-dthen1679691600top28123); else ddiff1679691600top28123 = new Date(dthen1679691600top28123-dnow1679691600top28123); gsecs1679691600top28123 = Math.floor(ddiff1679691600top28123.valueOf()/1000); CountBack1679691600top28123(gsecs1679691600top28123);