// JavaScript Document
function presentData(whichCompany)
{

     loadData(whichCompany);
     
     for (ii = 0; ii < maxLines; ++ii)
     {
         invoice.add_line_item()
     }
     
     whichArrayNumber = 0;
     for (whichLine = 0; whichLine < 2 * maxLines; ++whichLine)
     {

         control = 'stockType' + whichLine;
         showIt = document.getElementById(control)
         showIt.selectedIndex = stockClassArray[whichArrayNumber] ;

         control = 'stockSeries' + whichLine;
         showIt = document.getElementById(control)
         showIt.selectedIndex = seriesArray[whichArrayNumber] ;

         control = 'round' + whichLine;
         showIt = document.getElementById(control)
         showIt.selectedIndex = investorArray[whichArrayNumber] ;

         control = 'nameOfShareholder' + whichLine;
         showIt = document.getElementById(control)
         showIt.value = shareholderArray[whichArrayNumber];

         control = 'shareOptions' + whichLine;
         showIt = document.getElementById(control)
         showIt.value = optionsArray[whichArrayNumber];

         control = 'shares' + whichLine;
         showIt = document.getElementById(control)
         showIt.value = sharesArray[whichArrayNumber];

         control = 'pricePerShare' + whichLine;
         showIt = document.getElementById(control)
         showIt.value = priceArray[whichArrayNumber];

         whichArrayNumber += 1;
         if( whichLine != 0 ) whichLine +=1;
     }
     
}
