add = function() {
  s=document.getElementById('files');
  n=document.getElementById('num');
  txtarea=document.createElement('textarea');
  txtarea.setAttribute('name','answer'+n.getAttribute('value'));
  s.appendChild(txtarea);
  chkbox=document.createElement('input');
  chkbox.setAttribute('type','checkbox');
  chkbox.value = '1';
  chkbox.setAttribute('name','answerTrue'+n.getAttribute('value'));
  s.appendChild(chkbox);
  s.appendChild(document.createElement('br'));
  n.setAttribute('value',parseInt(n.getAttribute('value'))+1);
}
