var fields=1;

// yes, I write these functions myself.. you can attempt to remove the restrictions..
// however the script on the server have the same restrictions, so it would be kind of pointless.
function AddQFields(TID) {
  fields++;
  if(fields>20)
    alert("Sorry, no more than 20 quotes allowed to be submitted at once.. reload to add more!");
  else {
    tbody=document.createElement('tbody');
    tr=document.createElement('tr');
    td1=document.createElement('td');
    td2=document.createElement('td');

    td1.innerHTML="<input type=\"text\" maxlength=\"400\" style=\"width:500px;\" name=\"quotel"+fields+"\" value=\"\">";
    td2.innerHTML="<input type=\"text\" maxlength=\"50\" style=\"width:150px;\" name=\"quoter"+fields+"\" value=\"unknown\">";
    // a lot less processing than all that createElement bollocks.

    tr.appendChild(td1);
    tr.appendChild(td2);

    tbody.appendChild(tr);
    if(document.getElementById(TID)) document.getElementById(TID).appendChild(tbody);
  }
}

