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 (LeadingZero1680642000top28031 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1680642000top28031(secs) { if (secs < 0) { document.getElementById("cntdwn1680642000top28031").innerHTML = FinishMessage1680642000top28031; return; } DisplayStr1680642000top28031 = DisplayFormat1680642000top28031.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1680642000top28031 = DisplayStr1680642000top28031.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1680642000top28031 = DisplayStr1680642000top28031.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1680642000top28031 = DisplayStr1680642000top28031.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1680642000top28031").innerHTML = DisplayStr1680642000top28031; if (CountActive1680642000top28031) //alert(SetTimeOutPeriod1680642000top28031); setTimeout("CountBack1680642000top28031(" + (secs+CountStepper1680642000top28031) + ")", SetTimeOutPeriod1680642000top28031); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1680642000top28031)=="undefined") BackColor1680642000top28031 = ""; if (typeof(ForeColor1680642000top28031)=="undefined") ForeColor1680642000top28031= "white"; if (typeof(TargetDate1680642000top28031)=="undefined") TargetDate1680642000top28031 = "04/04/2023 11:00:00 PM"; if (typeof(DisplayFormat1680642000top28031)=="undefined") DisplayFormat1680642000top28031 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1680642000top28031)=="undefined") CountActive1680642000top28031 = true; if (typeof(FinishMessage1680642000top28031)=="undefined") FinishMessage1680642000top28031 = ""; if (typeof(CountStepper1680642000top28031)!="number") CountStepper1680642000top28031 = -1; if (typeof(LeadingZero1680642000top28031)=="undefined") LeadingZero1680642000top28031 = true; CountStepper1680642000top28031 = Math.ceil(CountStepper1680642000top28031); if (CountStepper1680642000top28031 == 0) CountActive1680642000top28031 = false; var SetTimeOutPeriod1680642000top28031 = (Math.abs(CountStepper1680642000top28031)-1)*1000 + 990; puti(BackColor1680642000top28031, ForeColor1680642000top28031); var dthen1680642000top28031 = new Date(TargetDate1680642000top28031); var dnow1680642000top28031 = new Date("05/13/2025 8:37:31 AM"); if(CountStepper1680642000top28031>0) ddiff1680642000top28031 = new Date(dnow1680642000top28031-dthen1680642000top28031); else ddiff1680642000top28031 = new Date(dthen1680642000top28031-dnow1680642000top28031); gsecs1680642000top28031 = Math.floor(ddiff1680642000top28031.valueOf()/1000); CountBack1680642000top28031(gsecs1680642000top28031);