$(function() {
	$.timer(600000, function(timer) {
		$.ajax( {
			url : "invoke.heartbeat",
			error : function(req, status, error) {
				timer.stop();
				alert("Lost contact with server.");
			}
		});
	})
});
