function statementofmeans() {

d = document.statementofmeans;


// declare variables

var personal_name;
var personal_address;
var personal_occupation;

var property_property;
var property_value;
var property_mortgage1;
var property_mortgage2;
var property_borrowings;
var property_endowment;
var property_arrears;

var outgoings_rentmortgage;
var outgoings_rentmortgagearrears;
var outgoings_mortgage2;
var outgoings_endowment;
var outgoings_pension;
var outgoings_mortgageprotection;
var outgoings_lifeinsurance;
var outgoings_buildingsinsurance;
var outgoings_contentsinsurance;
var outgoings_counciltax;
var outgoings_electricity;
var outgoings_gas;
var outgoings_otherfuel;
var outgoings_telephone;
var outgoings_housekeeping;
var outgoings_medical;
var outgoings_tvrental;
var outgoings_tvlicence;
var outgoings_travel;
var outgoings_creditcards;
var outgoings_hp;
var outgoings_schools;
var outgoings_minders;
var outgoings_maintenance;
var outgoings_other;
var outgoings_total; outgoings_total = 4;

var income_wages;
var income_partner;
var income_unemployment;
var income_incomesupport;
var income_familycredit;
var income_retirementpension;
var income_otherpension;
var income_child;
var income_incapacity;
var income_maintenance;
var income_disability;
var income_contributions;
var income_other;
var income_total;

var vehicle_make;
var vehicle_mileage;
var vehicle_value;
var vehicle_hp;

var family_status;
var family_dependents;
var family_medical;

var financial_details;

var assets_realestate;
var assets_cash;
var assets_lifeassurance;
var assets_furniture;
var assets_stocks;
var assets_other;

var creditor_name1;
var creditor_name2;
var creditor_name3;
var creditor_name4;
var creditor_name5;
var creditor_name6;
var creditor_name7;
var creditor_name8;
var creditor_name9;
var creditor_name10;

var creditor_ref1;
var creditor_ref2;
var creditor_ref3;
var creditor_ref4;
var creditor_ref5;
var creditor_ref6;
var creditor_ref7;
var creditor_ref8;
var creditor_ref9;
var creditor_ref10;

var creditor_outstanding1;
var creditor_outstanding2;
var creditor_outstanding3;
var creditor_outstanding4;
var creditor_outstanding5;
var creditor_outstanding6;
var creditor_outstanding7;
var creditor_outstanding8;
var creditor_outstanding9;
var creditor_outstanding10;


// asign values to variables

personal_name = d.a1.value;
personal_address = d.a2.value;
personal_occupation = d.a3.value;

property_property = d.b1.value;
property_value = d.b2.value;
property_mortgage1 = d.b3.value;
property_mortgage2 = d.b4.value;
property_borrowings = d.b5.value;
property_endowment = d.b6.value;
property_arrears = d.b7.value;

outgoings_rentmortgage = d.c1.value;
outgoings_rentmortgagearrears = d.c2.value;
outgoings_mortgage2 = d.c3.value;
outgoings_endowment = d.c4.value;
outgoings_pension = d.c5.value;
outgoings_mortgageprotection = d.c6.value;
outgoings_lifeinsurance = d.c7.value;
outgoings_buildingsinsurance = d.c8.value;
outgoings_contentsinsurance = d.c9.value;
outgoings_counciltax = d.c10.value;
outgoings_electricity = d.c11.value;
outgoings_gas = d.c12.value;
outgoings_otherfuel = d.c13.value;
outgoings_telephone = d.c14.value;
outgoings_housekeeping = d.c15.value;
outgoings_medical = d.c16.value;
outgoings_tvrental = d.c17.value;
outgoings_tvlicence = d.c18.value;
outgoings_travel = d.c19.value;
outgoings_creditcards = d.c20.value;
outgoings_hp = d.c21.value;
outgoings_schools = d.c22.value;
outgoings_minders = d.c23.value;
outgoings_maintenance = d.c24.value;
outgoings_other = d.c25.value;

n_outgoings_rentmortgage = outgoings_rentmortgage - 0;
n_outgoings_rentmortgagearrears = outgoings_rentmortgagearrears -0;
n_outgoings_mortgage2 = outgoings_mortgage2 -0;
n_outgoings_endowment = outgoings_endowment -0;
n_outgoings_pension = outgoings_pension -0;
n_outgoings_mortgageprotection = outgoings_mortgageprotection -0;
n_outgoings_lifeinsurance = outgoings_lifeinsurance -0;
n_outgoings_buildingsinsurance = outgoings_buildingsinsurance -0;
n_outgoings_contentsinsurance = outgoings_contentsinsurance -0;
n_outgoings_counciltax = outgoings_counciltax -0;
n_outgoings_electricity = outgoings_electricity -0;
n_outgoings_gas = outgoings_gas -0;
n_outgoings_otherfuel = outgoings_otherfuel -0;
n_outgoings_telephone = outgoings_telephone -0;
n_outgoings_housekeeping = outgoings_housekeeping -0;
n_outgoings_medical = outgoings_medical -0;
n_outgoings_tvrental = outgoings_tvrental -0;
n_outgoings_tvlicence = outgoings_tvlicence -0;
n_outgoings_travel = outgoings_travel -0;
n_outgoings_creditcards = outgoings_creditcards -0;
n_outgoings_hp = outgoings_hp -0;
n_outgoings_schools = outgoings_schools -0;
n_outgoings_minders = outgoings_minders -0;
n_outgoings_maintenance = outgoings_maintenance -0;
n_outgoings_other = outgoings_other -0;

outgoings_total = n_outgoings_rentmortgage + n_outgoings_rentmortgagearrears + n_outgoings_mortgage2 + n_outgoings_endowment + 
n_outgoings_pension + n_outgoings_mortgageprotection + n_outgoings_lifeinsurance + n_outgoings_buildingsinsurance + n_outgoings_contentsinsurance + n_outgoings_counciltax + 
n_outgoings_electricity + n_outgoings_gas + n_outgoings_otherfuel + n_outgoings_telephone + n_outgoings_housekeeping + n_outgoings_medical + n_outgoings_tvrental + n_outgoings_tvlicence + n_outgoings_travel + 
n_outgoings_creditcards + n_outgoings_hp + n_outgoings_schools + n_outgoings_minders + n_outgoings_maintenance + n_outgoings_other;

income_wages = d.d1.value;
income_partner = d.d2.value;
income_unemployment = d.d3.value;
income_incomesupport = d.d4.value;
income_familycredit = d.d5.value;
income_retirementpension = d.d6.value;
income_otherpension = d.d7.value;
income_child = d.d8.value;
income_incapacity = d.d9.value;
income_maintenance = d.d10.value;
income_disability = d.d11.value;
income_contributions = d.d12.value;
income_other = d.d13.value;

income_wages = d.d1.value - 0;
income_partner = d.d2.value - 0;
income_unemployment = d.d3.value - 0 ;
income_incomesupport = d.d4.value - 0;
income_familycredit = d.d5.value - 0;
income_retirementpension = d.d6.value - 0;
income_otherpension = d.d7.value - 0;
income_child = d.d8.value - 0;
income_incapacity = d.d9.value - 0;
income_maintenance = d.d10.value - 0;
income_disability = d.d11.value - 0;
income_contributions = d.d12.value - 0;
income_other = d.d13.value - 0;

income_total = income_wages + income_partner + income_unemployment + income_incomesupport + income_familycredit + income_retirementpension + income_otherpension + income_child + income_incapacity + income_maintenance +
 income_disability + income_contributions + income_other;

vehicle_make = d.e1.value;
vehicle_mileage = d.e2.value;
vehicle_value = d.e3.value;
vehicle_hp = d.e4.value;

family_status = d.f1.value;
family_dependents = d.f2.value;
family_medical = d.f3.value;

financial_details = d.g1.value;

assets_realestate = d.h1.value;
assets_cash = d.h2.value;
assets_lifeassurance = d.h3.value;
assets_furniture = d.h4.value;
assets_stocks = d.h5.value;
assets_other = d.h6.value;

creditor_name1 = d.i1.value;
creditor_name2 = d.i2.value;
creditor_name3 = d.i3.value;
creditor_name4 = d.i4.value;
creditor_name5 = d.i5.value;
creditor_name6 = d.i6.value;
creditor_name7 = d.i7.value;
creditor_name8 = d.i8.value;
creditor_name9 = d.i9.value;
creditor_name10 = d.i10.value;

creditor_ref1 = d.j1.value;
creditor_ref2 = d.j2.value;
creditor_ref3 = d.j3.value;
creditor_ref4 = d.j4.value;
creditor_ref5 = d.j5.value;
creditor_ref6 = d.j6.value;
creditor_ref7 = d.j7.value;
creditor_ref8 = d.j8.value;
creditor_ref9 = d.j9.value;
creditor_ref10 = d.j10.value;

creditor_outstanding1 = d.k1.value;
creditor_outstanding2 = d.k2.value;
creditor_outstanding3 = d.k3.value;
creditor_outstanding4 = d.k4.value;
creditor_outstanding5 = d.k5.value;
creditor_outstanding6 = d.k6.value;
creditor_outstanding7 = d.k7.value;
creditor_outstanding8 = d.k8.value;
creditor_outstanding9 = d.k9.value;
creditor_outstanding10 = d.k10.value;


document.open();

document.write('<table width="600" border="0">');
document.write('<td> ');
      document.write('<p align="center"><b>STATEMENT OF MEANS</b></p>');
      document.write('<p align="center"><b>STRICTLY PRIVATE AND CONFIDENTIAL</b></p>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<p class="tabletop"> <b>PERSONAL DETAILS</b></p>');
          document.write('</td>');
          document.write('<td width="400">&nbsp;</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Name: </div>');
          document.write('</td>');
          document.write('<td width="400">' + personal_name + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Address :</div>');
          document.write('</td>');
          document.write('<td width="400">' + personal_address + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Occupation: </div>');
          document.write('</td>');
          document.write('<td width="400">' + personal_occupation + ' </td>');
        document.write('</tr>');
      document.write('</table>');
  
      document.write('<br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td class="tabletop"><b>PROPERTY DETAILS</b></td>');
          document.write('<td width="400">&nbsp;</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Property </div>');
          document.write('</td>');
          document.write('<td width="400">' + property_property + '</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Current Open Market Value</div>');
          document.write('</td>');
          document.write('<td width="400">£ ' + property_value + '</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">1st Mortgage Outstanding</div>');
          document.write('</td>');
          document.write('<td width="400">£ ' + property_mortgage1 + '</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">2nd Mortgage Outstanding</div>');
          document.write('</td>');
          document.write('<td width="400">£ ' + property_mortgage2 + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
         document.write('<td width="200"> ');
            document.write('<div align="left">Other Secured Borrowings</div>');
          document.write('</td>');
          document.write('<td width="400">£ ' + property_borrowings + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Endowment Policies (assigned)</div>');
          document.write('</td>');
          document.write('<td width="400">£ ' + property_endowment + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">Mortgage Arrears</div>');
          document.write('</td>');
          document.write('<td width="400">£ ' + property_arrears + ' </td>');
        document.write('</tr>');
      document.write('</table>');
  
      document.write('<br>');
            
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200" class="tabletop"><b>MONTHLY OUTGOINGS</b></td>');
          document.write('<td width="400">&nbsp;</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Rent / Mortgage</td>');
          document.write('<td width="400">£ ' + outgoings_rentmortgage + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Rent / Mortgage Arrears</td>');
          document.write('<td width="400">£ ' + outgoings_rentmortgagearrears + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Second Mortgage</td>');
          document.write('<td width="400">£ ' + outgoings_mortgage2 + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Endowment / <br>');
            document.write('Mortgage Protection Insurance</td>');
          document.write('<td width="400">£ ' + outgoings_endowment + '</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Pension</td>');
          document.write('<td width="400">£ ' + outgoings_pension + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Mortgage Protection</td>');
          document.write('<td width="400">£ ' + outgoings_mortgageprotection + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Life Insurance</td>');
          document.write('<td width="400">£ ' + outgoings_lifeinsurance + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Buildings Insurance</td>');
          document.write('<td width="400">£ ' + outgoings_buildingsinsurance + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Contents Insurance</td>');
          document.write('<td width="400">£ ' + outgoings_contentsinsurance + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Council Tax</td>');
          document.write('<td width="400">£ ' + outgoings_counciltax + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Electricity</td>');
          document.write('<td width="400">£ ' + outgoings_electricity + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Gas</td>');
          document.write('<td width="400">£ ' + outgoings_gas + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Other Fuel</td>');
          document.write('<td width="400">£ ' + outgoings_otherfuel + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Telephone</td>');
          document.write('<td width="400">£ ' + outgoings_telephone + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Housekeeping (food/clothing)</td>');
          document.write('<td width="400">£ ' + outgoings_housekeeping + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Medical Expenses/Insurance</td>');
          document.write('<td width="400">£ ' + outgoings_medical + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">TV Rental / Appliances</td>');
          document.write('<td width="400">£ ' + outgoings_tvrental + '</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">TV Licence</td>');
          document.write('<td width="400">£ ' + outgoings_tvlicence + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Travel (Bus/train)</td>');
          document.write('<td width="400">£ ' + outgoings_travel + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Credit Cards</td>');
          document.write('<td width="400">£ ' + outgoings_creditcards + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Hire Purchase</td>');
          document.write('<td width="400">£ ' + outgoings_hp + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Schools/Nursery/Meals/Travel</td>');
          document.write('<td width="400">£ ' + outgoings_schools + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Child Minders</td>');
          document.write('<td width="400">£ ' + outgoings_minders + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Child Maintenance</td>');
          document.write('<td width="400">£ ' + outgoings_maintenance + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Other Expenses</td>');
          document.write('<td width="400">£ ' + outgoings_other + ' </td>');
        document.write('</tr>');
        document.write('<tr>');
          document.write('<td width="200"><b>TOTAL:</b></td>');
          document.write('<td width="400"><b>£ ' + outgoings_total + '</b></td>');
        document.write('</tr>');
      document.write('</table>      <br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200" class="tabletop"><b>NET MONTHLY INCOME</b></td>');
          document.write('<td width="400">&nbsp </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Wages</td>');
          document.write('<td width="400">£ ' + income_wages + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Partners Wages</td>');
          document.write('<td width="400">£ ' + income_partner + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Unemployment Benefit</td>');
          document.write('<td width="400">£ ' + income_unemployment + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Income Support</td>');
          document.write('<td width="400">£ ' + income_incomesupport + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Family Credit</td>');
          document.write('<td width="400">£ ' + income_familycredit + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Retirement Pension</td>');
          document.write('<td width="400">£ ' + income_retirementpension + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Other Pension</td>');
          document.write('<td width="400">£ ' + income_otherpension + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Child Benefit</td>');
          document.write('<td width="400">£ ' + income_child + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Incapacity Benefit</td>');
          document.write('<td width="400">£ ' + income_incapacity + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Maintenance</td>');
          document.write('<td width="400">£ ' + income_maintenance + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Disability Benefit</td>');
          document.write('<td width="400">£ ' + income_disability + '  </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Contributions (nondependents)</td>');
          document.write('<td width="400">£ ' + income_contributions + ' </td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200">Others</td>');
          document.write('<td width="400">£ ' + income_other + ' </td>');
        document.write('</tr>');
        document.write('<tr>');
          document.write('<td width="200"><b>TOTAL</b></td>');
          document.write('<td width="400"><b>£ ' + income_total + ' </b></td>');
        document.write('</tr>');
      document.write('</table>      <br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200" class="tabletop"><b>VEHICLE DETAILS</b></td>');
      
          document.write('<td width="400">&nbsp;</td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Year / Model / Make</td>');
      
          document.write('<td width="400">' + vehicle_make + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Mileage</td>');
      
          document.write('<td width="400">' + vehicle_mileage + '  </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Trade Value</td>');
      
          document.write('<td width="400">£ ' + vehicle_value + '  </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Outstanding HP</td>');
      
          document.write('<td width="400">£ ' + vehicle_hp + '  </td>');
    document.write('</tr>');
  document.write('</table>');
  
      document.write('<br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200" class="tabletop"><b>FAMILY HISTORY</b></td>');
      
          document.write('<td width="400">&nbsp;</td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Marital Status</td>');
      
          document.write('<td width="400">' + family_status + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Number of Dependants</td>');
      
          document.write('<td width="400">' + family_dependents + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Medical Problems</td>');
      
          document.write('<td width="400">' + family_medical + ' </td>');
    document.write('</tr>');
  document.write('</table>');
  
      document.write('<br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200" class="tabletop"><b>FINANCIAL HISTORY</b></td>');
      
          document.write('<td width="400">&nbsp;</td>');
    document.write('</tr>');
    
 document.write('<tr> ');
    document.write('<td>Details</td>');
      
          document.write('<td width="400">' + financial_details + ' </td>');
    document.write('</tr>');
  document.write('</table>');
  
      document.write('<br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
       document.write(' <tr> ');
          document.write('<td width="200" class="tabletop"><b>ASSETS</b></td>');
      
          document.write('<td width="400">&nbsp;</td>');
   document.write(' </tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Other Real Estate</td>');
      
          document.write('<td width="400">£ ' + assets_realestate + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Cash Resources</td>');
      
          document.write('<td width="400">£ ' + assets_cash + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Life Assurance (surrender values)</td>');
      
          document.write('<td width="400">£ ' + assets_lifeassurance + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Furniture / Appliances</td>');
      
          document.write('<td width="400">£ ' + assets_furniture + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Stocks / Shares</td>');
      
          document.write('<td width="400">£ ' + assets_stocks + ' </td>');
    document.write('</tr>');
    
  document.write('<tr> ');
    document.write('<td width="200">Other Assets</td>');
      
         document.write(' <td width="400">£ ' + assets_other + '  </td>');
   document.write(' </tr>');
  document.write('</table>');
  
      document.write('<br>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
        document.write('<tr> ');
          document.write('<td width="200" class="tabletop"><b>CREDITORS</b></td>');
          document.write('<td width="200">&nbsp;</td>');
          document.write('<td width="200">&nbsp;</td>');
        document.write('</tr>');
        document.write('<tr> ');
          document.write('<td width="200"> ');
           document.write(' <div align="left"><b>Creditor</b></div>');
          document.write('</td>');
          document.write('<td width="200"> ');
           document.write(' <div align="left"><b>Account / Ref No.</b></div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left"><b>Amount Outstanding</b></div>');
          document.write('</td>');
        document.write('</tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_name1 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_ref1 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">£ ' + creditor_outstanding1 + '</div>');
          document.write('</td>');
        document.write('</tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_name2 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_ref2 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
           document.write(' <div align="left">£ ' + creditor_outstanding2 + '</div>');
          document.write('</td>');
      document.write('  </tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
           document.write(' <div align="left">' + creditor_name3 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_ref3 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">£ ' + creditor_outstanding3 + '</div>');
          document.write('</td>');
        document.write('</tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_name4 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_ref4 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">£ ' + creditor_outstanding4 + '</div>');
          document.write('</td>');
        document.write('</tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_name5 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
           document.write(' <div align="left">' + creditor_ref5 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">£ ' + creditor_outstanding5 + '</div>');
          document.write('</td>');
       document.write(' </tr>');

        document.write('<tr> ');
         document.write(' <td width="200"> ');
          document.write('  <div align="left">' + creditor_name6 + '</div>');
         document.write(' </td>');
          document.write('<td width="200"> ');
          document.write('  <div align="left">' + creditor_ref6 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
           document.write(' <div align="left">£ ' + creditor_outstanding6 + '</div>');
          document.write('</td>');
        document.write('</tr>');

        document.write('<tr> ');
         document.write(' <td width="200"> ');
           document.write(' <div align="left">' + creditor_name7 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">' + creditor_ref7 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">£ ' + creditor_outstanding7 + '</div>');
          document.write('</td>');
        document.write('</tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
           document.write(' <div align="left">' + creditor_name8 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
           document.write(' <div align="left">' + creditor_ref8 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
            document.write('<div align="left">£ ' + creditor_outstanding8 + '</div>');
         document.write(' </td>');
       document.write(' </tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
          document.write('  <div align="left">' + creditor_name9 + '</div>');
         document.write(' </td>');
         document.write(' <td width="200"> ');
          document.write(' <div align="left">' + creditor_ref9 + '</div>');
          document.write('</td>');
          document.write('<td width="200"> ');
          document.write('  <div align="left">£ ' + creditor_outstanding9 + '</div>');
         document.write(' </td>');
        document.write('</tr>');

        document.write('<tr> ');
          document.write('<td width="200"> ');
           document.write(' <div align="left">' + creditor_name10 + '</div>');
          document.write('</td>');
         document.write(' <td width="200"> ');
           document.write(' <div align="left">' + creditor_ref10 + '</div>');
          document.write('</td>');
         document.write(' <td width="200"> ');
          document.write('  <div align="left">£ ' + creditor_outstanding10 + '</div>');
         document.write(' </td>');
        document.write('</tr>');
      document.write('</table>');
      document.write('<p>This is an accurate record of my financial position as at: ___________________________</p>');
      document.write('<table width="600" border="0" cellspacing="0" cellpadding="0">');
      document.write('  <tr> ');
         document.write(' <td width="200">Signed:</td>');
          document.write('<td width="400">____________________________________________</td>');
        document.write('</tr>');
        document.write('<tr> ');
        document.write('  <td width="200">&nbsp;</td>');
        document.write('  <td width="400">&nbsp;</td>');
        document.write('</tr>');
        document.write('<tr>');
        document.write('  <td width="200">Signed:</td>');
        document.write('  <td width="400">____________________________________________</td>');
        document.write('</tr>');
      document.write('</table>');
    document.write('</td>');
document.write('</table>');

document.close();
}
