$(function(){
	$(this).everyTime(1000,function(i) {
		$.ajax({
			type: "GET",
			url: "../server/getpage.php",
			cache: false,
			success: function(page){
				var sPath = window.location.pathname;
				var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);
				if(sPage != page){
					window.location = page;
				}
			}
		});
	});
});
