				},
					error: function(data) {
						errcount++;
						console.log("ERROR");
						console.log(arguments);
						if (errcount < 5)
							setTimeout(function(){receive()}, 10);
						else
							alert('Errors... cannot connect...');
					}
		});
}


  $(document).ready(function(){
		$('.beforelogin').show();
		$('.afterlogin').hide();
		bindEvents();
	});
</script>
</body>
</html>