function updateBands(r) {
     $ES('option', 'artists').each(function(el, i) {
          el.remove();
     });

     $ES('option', 'songs').each(function(el, i) {
          el.remove();
     });

var Bands = eval(r);

Bands.each(function(el, i) {
     new Element('option').setProperties({value:el.id}).setHTML(el.name).injectInside('artists');
});

}

function updateSongs(r) {
     $ES('option', 'songs').each(function(el, i) {
          el.remove();
     });

     var Songs = eval(r);

     Songs.each(function(el, i) {
       new Element('option').setProperties({value:el.id}).setHTML(el.title).injectInside('songs');
     });

}

