function getPrevMonth(){
    if (current_month == 1) {
        current_month = 12;
        current_year = current_year - 1;
    }
    else {
        current_month = current_month - 1;
    }
    params = 'month=' + current_month + '&year=' + current_year;
    new Ajax.Updater('calendar_wrapper', window.location.pathname, {
        method: 'post',
        parameters: params
    });
}

function getNextMonth(){
    if (current_month == 12) {
        current_month = 1;
        current_year = current_year + 1;
    }
    else {
        current_month = current_month + 1;
    }
    params = 'month=' + current_month + '&year=' + current_year;
    new Ajax.Updater('calendar_wrapper', window.location.pathname, {
        method: 'post',
        parameters: params
    });
}


function HideContent(d){
    if (d.length < 1) {
        return;
    }
    document.getElementById(d).style.display = "none";
}

function ShowContent(d){
    if (d.length < 1) {
        return;
    }
    var dd = document.getElementById(d);
    dd.style.display = "block";
}
