/* SHOWTIMES RELATED FUNCTIONS */
/**
 * getShowtimes()
 *
 * @access public
 * @return void
 * @access public
 * @author Steven Mapes
 **/
function getShowtimes(pM) {
    var inputs = document.getElementsByTagName('input');

    // Build array of content to post
    if (inputs.length > 0) {
        var qs = '';
        for(i=0;i<inputs.length;i++) {
            var prefix = inputs[i].id.substring(0,pM.length);
            if (prefix == pM) {
                if (inputs[i].checked) {
                    qs += inputs[i].id+"=true&";
                }
            }
        }
        qs = qs.substring(0,(qs.length-1));

        if (qs.length > 0) {
            try {
                ajaxRequest('comms/showtimes.php?'+qs,'updateShowtimes');
            } catch (e) {
                handleException(e);
            }
        }
    }
}

/**
 * updateShowtimes()
 *
 * @param string responseText The response from the server
 * @access public
 * @return void
 * @access public
 * @author Steven Mapes
 **/
function updateShowtimes(responseText) {
    if (document.getElementById('videoPlayer')) {
        document.getElementById('videoPlayer').innerHTML = responseText;
    }
}