// functions to handle ajax responses //
function rbAdd(){
    if(request.readyState == 4){
        if(request.status == 200){
            alert(request.responseText);
        } else {
            alert("A problem occurred with communicating between the XMLHttpRequest object and the server program.");
        }
    }//end outer if
}

function rbRemove(){
    if(request.readyState == 4){
        if(request.status == 200){
            alert(request.responseText);
			location.reload();
        } else {
            alert("A problem occurred with communicating between the XMLHttpRequest object and the server program.");
        }
    }//end outer if
}

function displayArticles(){
    if(request.readyState == 4){
        if(request.status == 200){
            var articleDisplay = document.getElementById('pressarea');
			articleDisplay.innerHTML = request.responseText;
        } else {
            alert("A problem occurred with communicating between the XMLHttpRequest object and the server program.");
        }
    }//end outer if
}	

function displayBlogs(){
    if(request.readyState == 4){
        if(request.status == 200){
            var articleDisplay = document.getElementById('pressarea');
			articleDisplay.innerHTML = request.responseText;
        } else {
            alert("A problem occurred with communicating between the XMLHttpRequest object and the server program.");
        }
    }//end outer if
}	

