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 (LeadingZeros26709 && s.length < 2) s = "0" + s; if (seconds == 1) { var classString = "count-seconds"; } else { var classString = ""; } return "" + s + ""; } function CountBacks26709(secs) { if (secs < 0) { document.getElementById("cntdwns26709").innerHTML = FinishMessages26709; return; } DisplayStrs26709 = DisplayFormats26709.replace(/%%D%%/g, calcage(secs,86400,100000,0)); DisplayStrs26709 = DisplayStrs26709.replace(/%%H%%/g, calcage(secs,3600,24,1)); DisplayStrs26709 = DisplayStrs26709.replace(/%%M%%/g, calcage(secs,60,60,0)); DisplayStrs26709 = DisplayStrs26709.replace(/%%S%%/g, calcage(secs,1,60,0,1)); document.getElementById("cntdwns26709").innerHTML = DisplayStrs26709; if (CountActives26709) //alert(SetTimeOutPeriods26709); setTimeout("CountBacks26709(" + (secs+CountSteppers26709) + ")", SetTimeOutPeriods26709); } function puti(backcolor, forecolor) { document.write("
"); } if (typeof(BackColors26709)=="undefined") BackColors26709 = ""; if (typeof(ForeColors26709)=="undefined") ForeColors26709= "white"; if (typeof(TargetDates26709)=="undefined") TargetDates26709 = "03/30/2023 11:00:00 PM"; if (typeof(DisplayFormats26709)=="undefined") DisplayFormats26709 = " %%H%%:%%M%%:%%S%%"; if (typeof(CountActives26709)=="undefined") CountActives26709 = true; if (typeof(FinishMessages26709)=="undefined") FinishMessages26709 = ""; if (typeof(CountSteppers26709)!="number") CountSteppers26709 = -1; if (typeof(LeadingZeros26709)=="undefined") LeadingZeros26709 = true; CountSteppers26709 = Math.ceil(CountSteppers26709); if (CountSteppers26709 == 0) CountActives26709 = false; var SetTimeOutPeriods26709 = (Math.abs(CountSteppers26709)-1)*1000 + 990; puti(BackColors26709, ForeColors26709); var dthens26709 = new Date(TargetDates26709); var dnows26709 = new Date("05/13/2025 8:02:06 AM"); if(CountSteppers26709>0) ddiffs26709 = new Date(dnows26709-dthens26709); else ddiffs26709 = new Date(dthens26709-dnows26709); gsecss26709 = Math.floor(ddiffs26709.valueOf()/1000); CountBacks26709(gsecss26709);