function add_activity(act_id)
{
    var opt = {
    // Use POST
    method: 'GET',
    // Send this lovely data
    postBody: "",
    // Handle successful response
    onSuccess: function(t) {
        document.getElementById('num_items').innerHTML = t.responseText;
    },
    // Handle 404
    on404: function(t) {
        alert('Error 404: location "' + t.statusText + '" was not found.');
    },
    // Handle other errors
    onFailure: function(t) {
        alert('Error ' + t.status + ' -- ' + t.statusText);

    }
}
new Ajax.Request('includes/Activity.Cart.Ajaxf24c.html?op=add&amp;id='+act_id, opt);
}
function remove_activity(act_id)
{
    var opt = {
    // Use POST
    method: 'GET',
    // Send this lovely data
    postBody: "",
    // Handle successful response
    onSuccess: function(t) {
       document.getElementById('num_items').innerHTML = t.responseText;
    if(t.responseText=='0')
    {
       document.getElementById('planner_wrapper_'+act_id).innerHTML = '<p>There are currently no activities in your planner.</p>';
       document.getElementById('the_form').innerHTML = '';
    }
    else
       document.getElementById('planner_wrapper_'+act_id).innerHTML = '';
    },
    // Handle 404
    on404: function(t) {
        alert('Error 404: location "' + t.statusText + '" was not found.');
    },
    // Handle other errors
    onFailure: function(t) {
        alert('Error ' + t.status + ' -- ' + t.statusText);

    }
}
new Ajax.Request('includes/Activity.Cart.Ajax85a6.html?op=remove&amp;id='+act_id, opt);
}

function show_form()
{
 document.getElementById('form').style.display="";
}
