function BibleTriviaAddToHandout(trivia_database, trivia_question_reference, session_id) {
$.ajax({
url: 'http://www.theverseoftheday.info/bible_trivia_handout_add.php',
type: 'post',
data: 'session_id=' + session_id + '&trivia_database=' + trivia_database + '&trivia_question_reference=' + trivia_question_reference,
success: function(response) {
$('#Bible_trivia_handout_status').html(response);
},
error: function() { $('#Bible_trivia_handout_status').html('There was an error. Try again.'); }
});
} 

function BibleTriviaRemoveFromHandout(trivia_database, trivia_question_reference, session_id) {
$.ajax({
url: 'http://www.theverseoftheday.info/bible_trivia_handout_remove.php',
type: 'post',
data: 'session_id=' + session_id + '&trivia_database=' + trivia_database + '&trivia_question_reference=' + trivia_question_reference,
success: function(response) {
$('#Bible_trivia_handout_status').html(response);
},
error: function() { $('#Bible_trivia_handout_status').html('There was an error. Try again.'); }
});
}

function BibleTriviaCreateHandout(session_id) {
$.ajax({
url: 'http://www.theverseoftheday.info/bible_trivia_handout_create.php',
type: 'post',
data: 'session_id=' + session_id,	
success: function(response) {
$('#Bible_trivia_handout_create').html(response);
},
error: function() { $('#Bible_trivia_handout_create').html('There was an error. Try again.'); }
});
}

