<script type="text/javascript">
	//<![CDATA[
	var users_status = document.getElementsByClassName('users_status');
	for(var i = 0; i < users_status.length; i++) {
		var id = users_status[i].parentElement.parentElement.parentElement.id;
		id = id.substr(id.lastIndexOf("-") + 1);
		XHR.poll(1, '<%=url([[admin]], [[services]], [[v2ray_server]], [[users_status]])%>', {
				index: i,
				id: id
			},
			function(x, result) {
				users_status[result.index].setAttribute("style","font-weight:bold;");
				users_status[result.index].setAttribute("color",result.status ? "green":"red");
				users_status[result.index].innerHTML = (result.status ? '✓' : 'X');
			}
		);
	}
	//]]>
</script>