<script type="text/javascript">//<![CDATA[

	function ocserv_disconnect(idx) {
		XHR.get('<%=luci.dispatcher.build_url("admin", "services", "ocserv", "disconnect")%>/' + idx, null,
			function(x)
			{
				var tb = document.getElementById('ocserv_status_table');
				if (tb && (idx < tb.rows.length))
					tb.rows[0].parentNode.removeChild(tb.rows[idx]);
			}
		);
	}

	XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "services", "ocserv", "status")%>', null,
		function(x, st)
		{
			var tb = document.getElem