
function add_symbol(symbol) {

    doc_content = document.vocab.answer.value + symbol;
    document.vocab.answer.value = doc_content;
    document.vocab.answer.focus();
    
}


function show_hide(id){

    document.getElementById(id).className=(document.getElementById(id).className=='hidden')?'':'hidden';
  
}


function tabSelect(n) {
   for(var i=1;i<4;i++) {
      $('tabcontent'+i).style.display = 'none';
      $('tab'+i).className = '';
   }
   $('tab'+n).className = 'selected';
   $('tabcontent'+n).style.display = 'block';
}
