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 (LeadingZero1696104000top27961 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1696104000top27961(secs) { if (secs < 0) { document.getElementById("cntdwn1696104000top27961").innerHTML = FinishMessage1696104000top27961; return; } DisplayStr1696104000top27961 = DisplayFormat1696104000top27961.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1696104000top27961 = DisplayStr1696104000top27961.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1696104000top27961 = DisplayStr1696104000top27961.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1696104000top27961 = DisplayStr1696104000top27961.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1696104000top27961").innerHTML = DisplayStr1696104000top27961; if (CountActive1696104000top27961) //alert(SetTimeOutPeriod1696104000top27961); setTimeout("CountBack1696104000top27961(" + (secs+CountStepper1696104000top27961) + ")", SetTimeOutPeriod1696104000top27961); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1696104000top27961)=="undefined") BackColor1696104000top27961 = ""; if (typeof(ForeColor1696104000top27961)=="undefined") ForeColor1696104000top27961= "white"; if (typeof(TargetDate1696104000top27961)=="undefined") TargetDate1696104000top27961 = "09/30/2023 10:00:00 PM"; if (typeof(DisplayFormat1696104000top27961)=="undefined") DisplayFormat1696104000top27961 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1696104000top27961)=="undefined") CountActive1696104000top27961 = true; if (typeof(FinishMessage1696104000top27961)=="undefined") FinishMessage1696104000top27961 = ""; if (typeof(CountStepper1696104000top27961)!="number") CountStepper1696104000top27961 = -1; if (typeof(LeadingZero1696104000top27961)=="undefined") LeadingZero1696104000top27961 = true; CountStepper1696104000top27961 = Math.ceil(CountStepper1696104000top27961); if (CountStepper1696104000top27961 == 0) CountActive1696104000top27961 = false; var SetTimeOutPeriod1696104000top27961 = (Math.abs(CountStepper1696104000top27961)-1)*1000 + 990; puti(BackColor1696104000top27961, ForeColor1696104000top27961); var dthen1696104000top27961 = new Date(TargetDate1696104000top27961); var dnow1696104000top27961 = new Date("05/09/2025 1:15:32 PM"); if(CountStepper1696104000top27961>0) ddiff1696104000top27961 = new Date(dnow1696104000top27961-dthen1696104000top27961); else ddiff1696104000top27961 = new Date(dthen1696104000top27961-dnow1696104000top27961); gsecs1696104000top27961 = Math.floor(ddiff1696104000top27961.valueOf()/1000); CountBack1696104000top27961(gsecs1696104000top27961);