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 (LeadingZero1680210000top28123 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1680210000top28123(secs) { if (secs < 0) { document.getElementById("cntdwn1680210000top28123").innerHTML = FinishMessage1680210000top28123; return; } DisplayStr1680210000top28123 = DisplayFormat1680210000top28123.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1680210000top28123 = DisplayStr1680210000top28123.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1680210000top28123 = DisplayStr1680210000top28123.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1680210000top28123 = DisplayStr1680210000top28123.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1680210000top28123").innerHTML = DisplayStr1680210000top28123; if (CountActive1680210000top28123) //alert(SetTimeOutPeriod1680210000top28123); setTimeout("CountBack1680210000top28123(" + (secs+CountStepper1680210000top28123) + ")", SetTimeOutPeriod1680210000top28123); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1680210000top28123)=="undefined") BackColor1680210000top28123 = ""; if (typeof(ForeColor1680210000top28123)=="undefined") ForeColor1680210000top28123= "white"; if (typeof(TargetDate1680210000top28123)=="undefined") TargetDate1680210000top28123 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormat1680210000top28123)=="undefined") DisplayFormat1680210000top28123 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1680210000top28123)=="undefined") CountActive1680210000top28123 = true; if (typeof(FinishMessage1680210000top28123)=="undefined") FinishMessage1680210000top28123 = ""; if (typeof(CountStepper1680210000top28123)!="number") CountStepper1680210000top28123 = -1; if (typeof(LeadingZero1680210000top28123)=="undefined") LeadingZero1680210000top28123 = true; CountStepper1680210000top28123 = Math.ceil(CountStepper1680210000top28123); if (CountStepper1680210000top28123 == 0) CountActive1680210000top28123 = false; var SetTimeOutPeriod1680210000top28123 = (Math.abs(CountStepper1680210000top28123)-1)*1000 + 990; puti(BackColor1680210000top28123, ForeColor1680210000top28123); var dthen1680210000top28123 = new Date(TargetDate1680210000top28123); var dnow1680210000top28123 = new Date("05/13/2025 10:01:59 AM"); if(CountStepper1680210000top28123>0) ddiff1680210000top28123 = new Date(dnow1680210000top28123-dthen1680210000top28123); else ddiff1680210000top28123 = new Date(dthen1680210000top28123-dnow1680210000top28123); gsecs1680210000top28123 = Math.floor(ddiff1680210000top28123.valueOf()/1000); CountBack1680210000top28123(gsecs1680210000top28123);