var sortByIssue = $('sortByIssue');if (sortByIssue) {    sortByIssue.observe('change', function(){        self.location.href = '/reviews/' + sortByIssue.value;    });}var sortByType = $('sortByType');if (sortByType) {    sortByType.observe('change', function(){        self.location.href = '/reviews/sort/' + sortByType.value;    });}var searchFormMap = new Hash({    'inputArtist': 'Artist',    'inputAlbum': 'Album',    'inputYear': 'Year',    'inputWriter': 'Author'});//$$('input["class="inputsearch"]').each(function(input){//    input.observe('keydown', function(e){//        (e.keyCode == 13) && submitSearch();//    });//});function submitSearch(){    var url = '';    searchFormMap.each(function(item){        var el = $(item.key);        if (!el.value.blank()) {            url += item.value + '::' + el.value + '/';        }    });    if (!url.blank()) {        self.location.href = '/reviews/' + url;    }}
