/**
* bit of javascript that lowercases search terms before
* they are submitted.  We do this because searches are
* gets and we want every search to be lower case because
* we cache get requests based on the url.  With all search
* urls being lower case, that means we cache the first search
* and then can serve results from the cache even if someone
* enters in uppercase, lowercase, or mixed case terms for
* essentially the same search
*/

$(document).ready(function() {
        $('div.search_by_term input:submit').click(function() {
        $('#search_terms').val($('#search_terms').val().toLowerCase());
    });    
})

