function showit() {
    var vat=document.getElementById('vat1');
    var vata=document.getElementById('vat2');
    var vatb=document.getElementById('vat3');
    vat.innerHTML='VAT ID';
    vata.innerHTML='<input class=\'auswahl\' name=\'VAT\' style=\'width:280px;\'>';
    vatb.innerHTML='Companies, institutes and hospitals outside Germany within the EU must provide<br> their VAT ID in order to be invoiced.';
}

function hideit() {
    var vat=document.getElementById('vat1');
    var vata=document.getElementById('vat2');
    var vatb=document.getElementById('vat3');
    vat.innerHTML='';
    vata.innerHTML='';
    vatb.innerHTML='';

}

function showLetterForm($arg) {
    if($arg==1 && !document.getElementById('FirstRow')) {
        var letterTable=document.getElementById('letter');
        
        var firstRow=document.createElement('tr');
        var firstCell=document.createElement('td');
        firstCell.innerHTML='Nationality:';
        var secondCell=document.createElement('td');
        secondCell.innerHTML='<input class=\'auswahl\' type=\'text\' name=\'national\' style=\'width:220px;\'>';
        secondCell.colSpan=3;
        firstRow.id="FirstRow";
        firstRow.appendChild(firstCell);
        firstRow.appendChild(secondCell);
        letterTable.appendChild(firstRow);

        var secondRow=document.createElement('tr');
        firstCell=document.createElement('td');
        firstCell.innerHTML='Passport No:';
        secondCell=document.createElement('td');
        secondCell.innerHTML='<input class=\'auswahl\' type=\'text\' name=\'passport\' style=\'width:220px;\'>';
        secondCell.colSpan=3;
        secondRow.id="SecondRow";
        secondRow.appendChild(firstCell);
        secondRow.appendChild(secondCell);
        letterTable.appendChild(secondRow);

        var thirdRow=document.createElement('tr');
        firstCell=document.createElement('td');
        firstCell.innerHTML='Date of issue:';
        secondCell=document.createElement('td');
        secondCell.innerHTML='<input class=\'auswahl\' type=\'text\' name=\'issue\' style=\'width:220px;\'>';
        secondCell.colSpan=3;
        thirdRow.id="ThirdRow";
        thirdRow.appendChild(firstCell);
        thirdRow.appendChild(secondCell);
        letterTable.appendChild(thirdRow);

        var fourthRow=document.createElement('tr');
        firstCell=document.createElement('td');
        firstCell.innerHTML='Date of expiry:';
        secondCell=document.createElement('td');
        secondCell.innerHTML='<input class=\'auswahl\' type=\'text\' name=\'expiry\' style=\'width:220px;\'>';
        secondCell.colSpan=3;
        fourthRow.id="FourthRow";
        fourthRow.appendChild(firstCell);
        fourthRow.appendChild(secondCell);
        letterTable.appendChild(fourthRow);
    }
    if($arg==0) {
        row=document.getElementById('FirstRow')
        row.parentNode.removeChild(row);
        row=document.getElementById('SecondRow')
        row.parentNode.removeChild(row);
        row=document.getElementById('ThirdRow')
        row.parentNode.removeChild(row);
        row=document.getElementById('FourthRow')
        row.parentNode.removeChild(row);
    }
}


