def write_recipients_page(html_dir,
                          recipients_filename,
                          funder1,
                          funder2,
                          recipients):
    html_fp = open(os.path.join(html_dir,recipients_filename), 'w')
    html_writer = HtmlWriter(html_fp)
    html_writer.open_tag('html')
    html_writer.open_tag('head')
    html_writer.empty_tag('link', {'href': 'style.css', 
                                   'rel':'stylesheet'})
    html_writer.empty_tag('link', {'href': 'overlap.css', 
                                   'rel':'stylesheet'})
    html_writer.close_tag('head')
    html_writer.open_tag('body')
    html_writer.open_tag('div', {'class': 'container'})
    html_writer.write_html('h1',
                           'Recipients common to {0} and {1}'.format(funder1,
                                                                     funder2))
    html_writer.open_tag('ul')

    for recipient in recipients:
        html_writer.write_html('li', recipient)

    html_writer.close_tag('ul')

    html_writer.close_tag('div')

    html_writer.close_tag('body')
    html_writer.close_tag('html')

    html_fp.close()
funders = results.keys()
funders.sort()

html_writer = HtmlWriter(html_fp)

html_writer.open_tag('html')
html_writer.open_tag('head')
html_writer.empty_tag('link', {'href': 'style.css', 
                               'rel':'stylesheet'})
html_writer.empty_tag('link', {'href': 'overlap.css', 
                               'rel':'stylesheet'})
html_writer.close_tag('head')
html_writer.open_tag('body')
html_writer.open_tag('div', {'class': 'container'})
html_writer.write_html('h1', 'Overlap between funders')
html_writer.open_tag('table')

html_writer.open_tag('tr')

x_funders = (
    'Big Lottery', 
    'Arts Council England',
    'Sport England',
    'Arts Council Wales',
    'Creative Scotland',
    'DSDNI',
    'Nesta',
    'Nominet Trust',
    'Sport Northern Ireland',
    'Sport Wales',