function show_event_description(intEvent)
{
    document.getElementById("divLongDescription" + intEvent).style.display = "";
    document.getElementById("divShortDescription" + intEvent).style.display = "none";
}

function show_event_short_description(intEvent)
{
    document.getElementById("divLongDescription" + intEvent).style.display = "none";
    document.getElementById("divShortDescription" + intEvent).style.display = "";
}

function submit_poll(){
    var form_params = $('frmPoll').serialize();
    new Ajax.Request('XHR_poll_handler', {
        //onCreate: function(){
        //    $(message_container_id).hide();
        //    $(spinner_id).show();
        //},
        method: 'post',
        asynchronous: true,
        parameters: form_params,
        onSuccess:  function(req){
            var newcontents = req.responseText;
            $('poll_container').innerHTML = newcontents;
        }
    });
}

function disclaimer(answer, formdivid){
    if(answer == '1'){
        $(formdivid).show();
    }
    else{
        $(formdivid).hide();
    }
}
function print_disclaimer(){
    var printwin = window.open('ul_disclaimer', null, 'height=200, width=300');
    printwin.print();
    printwin.close();
}