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 (LeadingZero1686081600top27128 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBack1686081600top27128(secs) { if (secs < 0) { document.getElementById("cntdwn1686081600top27128").innerHTML = FinishMessage1686081600top27128; return; } DisplayStr1686081600top27128 = DisplayFormat1686081600top27128.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStr1686081600top27128 = DisplayStr1686081600top27128.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStr1686081600top27128 = DisplayStr1686081600top27128.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStr1686081600top27128 = DisplayStr1686081600top27128.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwn1686081600top27128").innerHTML = DisplayStr1686081600top27128; if (CountActive1686081600top27128) //alert(SetTimeOutPeriod1686081600top27128); setTimeout("CountBack1686081600top27128(" + (secs+CountStepper1686081600top27128) + ")", SetTimeOutPeriod1686081600top27128); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColor1686081600top27128)=="undefined") BackColor1686081600top27128 = ""; if (typeof(ForeColor1686081600top27128)=="undefined") ForeColor1686081600top27128= "white"; if (typeof(TargetDate1686081600top27128)=="undefined") TargetDate1686081600top27128 = "06/06/2023 10:00:00 PM"; if (typeof(DisplayFormat1686081600top27128)=="undefined") DisplayFormat1686081600top27128 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActive1686081600top27128)=="undefined") CountActive1686081600top27128 = true; if (typeof(FinishMessage1686081600top27128)=="undefined") FinishMessage1686081600top27128 = ""; if (typeof(CountStepper1686081600top27128)!="number") CountStepper1686081600top27128 = -1; if (typeof(LeadingZero1686081600top27128)=="undefined") LeadingZero1686081600top27128 = true; CountStepper1686081600top27128 = Math.ceil(CountStepper1686081600top27128); if (CountStepper1686081600top27128 == 0) CountActive1686081600top27128 = false; var SetTimeOutPeriod1686081600top27128 = (Math.abs(CountStepper1686081600top27128)-1)*1000 + 990; puti(BackColor1686081600top27128, ForeColor1686081600top27128); var dthen1686081600top27128 = new Date(TargetDate1686081600top27128); var dnow1686081600top27128 = new Date("05/09/2025 8:19:35 AM"); if(CountStepper1686081600top27128>0) ddiff1686081600top27128 = new Date(dnow1686081600top27128-dthen1686081600top27128); else ddiff1686081600top27128 = new Date(dthen1686081600top27128-dnow1686081600top27128); gsecs1686081600top27128 = Math.floor(ddiff1686081600top27128.valueOf()/1000); CountBack1686081600top27128(gsecs1686081600top27128);