function ajaxError(r) {
	var error = false;
	var json = '';
	if (r.status == 200) {
		json = eval('('+r.responseText+')');
		if (json.returncode != 0) {
			error = true;
			json = '';
		}
	}
	else {
		error = true;
	}
	if (error) {
		alert('There was an error communicating with the server. Please try your request again.');
	}
	return json;
}
