function selectTab(showid, tabid) {
    $('tabtags').className = '';
    $('tabupload').className = '';
    
    $('upload').style.display = 'none';
    $('tags').style.display = 'none';
    
    $(showid).style.display = '';
    $(tabid).className = 'active';

    if (showid=="tags") {doUpdateTags();}
}
