// prepare the form when the DOM is ready 
jQuery(document).ready(function() { 
    // bind form using ajaxForm 
    jQuery('#email_list').ajaxForm({ 
        // target identifies the element(s) to update with the server response 
        target: '#email_list_div', 
 
        // success identifies the function to invoke when the server response 
        // has been received; here we apply a fade-in effect to the new content 
        success: function() { 
            jQuery('#email_list_div').fadeIn('slow'); 
        } 
    });
});

function revealModal(divID) {
    window.onscroll = function () { document.getElementById(divID).style.top = document.body.scrollTop; };
    document.getElementById(divID).style.display = "block";
    document.getElementById(divID).style.top = document.body.scrollTop;
}

function hideModal(divID) {
    document.getElementById(divID).style.display = "none";
}