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 (LeadingZero1680296400top27963 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1680296400top27963(secs) { if (secs < 0) { document.getElementById("cntdwn1680296400top27963").innerHTML = FinishMessage1680296400top27963; return; } DisplayStr1680296400top27963 = DisplayFormat1680296400top27963.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1680296400top27963 = DisplayStr1680296400top27963.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1680296400top27963 = DisplayStr1680296400top27963.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1680296400top27963 = DisplayStr1680296400top27963.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1680296400top27963").innerHTML = DisplayStr1680296400top27963; if (CountActive1680296400top27963) //alert(SetTimeOutPeriod1680296400top27963); setTimeout("CountBack1680296400top27963(" + (secs+CountStepper1680296400top27963) + ")", SetTimeOutPeriod1680296400top27963); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1680296400top27963)=="undefined") BackColor1680296400top27963 = ""; if (typeof(ForeColor1680296400top27963)=="undefined") ForeColor1680296400top27963= "white"; if (typeof(TargetDate1680296400top27963)=="undefined") TargetDate1680296400top27963 = "03/31/2023 11:00:00 PM"; if (typeof(DisplayFormat1680296400top27963)=="undefined") DisplayFormat1680296400top27963 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1680296400top27963)=="undefined") CountActive1680296400top27963 = true; if (typeof(FinishMessage1680296400top27963)=="undefined") FinishMessage1680296400top27963 = ""; if (typeof(CountStepper1680296400top27963)!="number") CountStepper1680296400top27963 = -1; if (typeof(LeadingZero1680296400top27963)=="undefined") LeadingZero1680296400top27963 = true; CountStepper1680296400top27963 = Math.ceil(CountStepper1680296400top27963); if (CountStepper1680296400top27963 == 0) CountActive1680296400top27963 = false; var SetTimeOutPeriod1680296400top27963 = (Math.abs(CountStepper1680296400top27963)-1)*1000 + 990; puti(BackColor1680296400top27963, ForeColor1680296400top27963); var dthen1680296400top27963 = new Date(TargetDate1680296400top27963); var dnow1680296400top27963 = new Date("05/13/2025 5:53:27 AM"); if(CountStepper1680296400top27963>0) ddiff1680296400top27963 = new Date(dnow1680296400top27963-dthen1680296400top27963); else ddiff1680296400top27963 = new Date(dthen1680296400top27963-dnow1680296400top27963); gsecs1680296400top27963 = Math.floor(ddiff1680296400top27963.valueOf()/1000); CountBack1680296400top27963(gsecs1680296400top27963);