function email(user, server)
{
    var email_address = user + "&#00064;" + server;
    document.write("<a href='ma");
    document.write("il");
    document.write("to:" + email_address + "'>" + email_address + "</a>");
}

function censusData(array, highlight)
{
    if (highlight) {
        document.write("<tr style='background-color:yellow'>");
    }
    else {
        document.write("<tr>");
    }

    var i;
    for (i = 0; i < array.length; i++) {
        if (array[i] == 0) {
            document.write("<td class=census-data>&nbsp;</td>");
        }
        else {
            document.write("<td class=census-data><nobr>" + array[i] + "</nobr></td>");
        }
    }
    document.write("</tr>");
}

function censusStart()
{
document.write("<table class=census-table>");
}

function censusEnd()
{
document.write("</table>");
}

function header1841UKCensus()
{
document.write("<tr> \
<th class=census-header>Place</th> \
<th class=census-header>Uninhabited</th> \
<th class=census-header>Inhabited</th> \
<th class=census-header>Names</th> \
<th class=census-header>Male Age</th> \
<th class=census-header>Female Age</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Native Born</th> \
<th class=census-header>Foreign Born</th> \
</tr>");
}

function header1851UKCensus()
{
document.write("<tr> \
<th class=census-header>Schedule#</th> \
<th class=census-header>Place</th> \
<th class=census-header>Name</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Condition</th> \
<th class=census-header>Male Age</th> \
<th class=census-header>Female Age</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Where Born</th> \
<th class=census-header>Blind, Deaf, or Dumb</th> \
</tr>");
}

function header1861UKCensus()
{
document.write("<tr> \
<th class=census-header>Schedule#</th> \
<th class=census-header>Place</th> \
<th class=census-header>Name</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Condition</th> \
<th class=census-header>Male Age</th> \
<th class=census-header>Female Age</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Where Born</th> \
<th class=census-header>Blind, Deaf, or Dumb</th> \
</tr>");
}

function header1850USCensus()
{
}

function header1860USCensus()
{
}

function header1870USCensus()
{
document.write("<tr> \
<th class=census-header>Dwelling#</th> \
<th class=census-header>Family#</th> \
<th class=census-header>Name</th> \
<th class=census-header>Age</th> \
<th class=census-header>Sex</th> \
<th class=census-header>Race</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Value of Real Estate</th> \
<th class=census-header>Value of Personal Estate</th> \
<th class=census-header>Birthplace</th> \
<th class=census-header>Father foreign born</th> \
<th class=census-header>Mother foreign born</th> \
<th class=census-header>Birth month</th> \
<th class=census-header>Marriage month</th> \
<th class=census-header>Attended School</th> \
<th class=census-header>Cannot Read</th> \
<th class=census-header>Cannot Write</th> \
<th class=census-header>Deaf, Dumb, Blind</th> \
<th class=census-header>US Citizen 21 and over</th> \
<th class=census-header>Right to Vote denied</th> \
</tr>");
}

function header1880USCensus()
{
document.write("<tr> \
<th class=census-header>Street</th> \
<th class=census-header>House#</th> \
<th class=census-header>Dwelling#</th> \
<th class=census-header>Family#</th> \
<th class=census-header>Name</th> \
<th class=census-header>Race</th> \
<th class=census-header>Sex</th> \
<th class=census-header>Age</th> \
<th class=census-header>Birth Month</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Single</th> \
<th class=census-header>Married</th> \
<th class=census-header>Widowed/Divorced</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Unemployed</th>\
<th class=census-header>Sickness</th> \
<th class=census-header>Blind</th> \
<th class=census-header>Deaf and Dumb</th> \
<th class=census-header>Idiotic</th> \
<th class=census-header>Disabled</th> \
<th class=census-header>Attended School</th> \
<th class=census-header>Cannot Read</th> \
<th class=census-header>Cannot Write</th> \
<th class=census-header>Birtplace</th> \
<th class=census-header>Father's Birthplace</th> \
<th class=census-header>Mother's Birthplace</th> \
</tr>");
}

function header1900USCensus()
{
document.write("<tr> \
<th class=census-header>Street</th> \
<th class=census-header>House#</th> \
<th class=census-header>Dwelling#</th> \
<th class=census-header>Family#</th> \
<th class=census-header>Name</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Race</th> \
<th class=census-header>Sex</th> \
<th class=census-header>Month of Birth</th> \
<th class=census-header>Year of Birth</th> \
<th class=census-header>Age</th> \
<th class=census-header>Marital Status</th> \
<th class=census-header>Years Married</th> \
<th class=census-header># of Children</th> \
<th class=census-header># of Children Living</th> \
<th class=census-header>Birthplace</th> \
<th class=census-header>Father's Birthplace</th> \
<th class=census-header>Mother's Birthplace</th> \
<th class=census-header>Immigration Year</th> \
<th class=census-header>Years in the US</th> \
<th class=census-header>Naturalization</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Months Unemployed</th> \
<th class=census-header>Attended School</th> \
<th class=census-header>Can Read</th> \
<th class=census-header>Can Write</th> \
<th class=census-header>English</th> \
<th class=census-header>Own/Rent</th> \
<th class=census-header>Free/Mortgage</th> \
<th class=census-header>Farm/House</th> \
<th class=census-header>Farm#</th> \
</tr>");
}

function header1910USCensus()
{
document.write("<tr> \
<th class=census-header>Street</th> \
<th class=census-header>House#</th> \
<th class=census-header>Dwelling#</th> \
<th class=census-header>Family#</th> \
<th class=census-header>Name</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Sex</th> \
<th class=census-header>Race</th> \
<th class=census-header>Age</th> \
<th class=census-header>Marital Status</th> \
<th class=census-header>Years Married</th> \
<th class=census-header># of Children</th> \
<th class=census-header># of Children Living</th> \
<th class=census-header>Birthplace</th> \
<th class=census-header>Father's Birthplace</th> \
<th class=census-header>Mother's Birthplace</th> \
<th class=census-header>Immigration Year</th> \
<th class=census-header>Naturalization</th> \
<th class=census-header>Language</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Nature of Business</th> \
<th class=census-header>Job Type</th> \
<th class=census-header>Out of Work Now</th> \
<th class=census-header>Weeks Out of Work in 1909</th> \
<th class=census-header>Can Read</th> \
<th class=census-header>Can Write</th> \
<th class=census-header>Attended School</th> \
<th class=census-header>Own/Rent</th> \
<th class=census-header>Free/Mortgage</th> \
<th class=census-header>Farm/House</th> \
<th class=census-header>Farm#</th> \
<th class=census-header>Veteran</th> \
<th class=census-header>Blind</th> \
<th class=census-header>Deaf and Dumb</th> \
</tr>");
}

function header1920USCensus()
{
document.write("<tr> \
<th class=census-header>Street</th> \
<th class=census-header>House#</th> \
<th class=census-header>Dwelling#</th> \
<th class=census-header>Family#</th> \
<th class=census-header>Name</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Own/Rent</th> \
<th class=census-header>Free/Mortgage</th> \
<th class=census-header>Sex</th> \
<th class=census-header>Race</th> \
<th class=census-header>Age</th> \
<th class=census-header>Marital Status</th> \
<th class=census-header>Immigration</th> \
<th class=census-header>Natural/Alien</th> \
<th class=census-header>Naturalization</th> \
<th class=census-header>Attending School</th> \
<th class=census-header>Able to Read</th> \
<th class=census-header>Able to Write</th> \
<th class=census-header>Birthplace</th> \
<th class=census-header>Tongue</th> \
<th class=census-header>Father's Birthplace</th> \
<th class=census-header>Father's Tongue</th> \
<th class=census-header>Mother's Birthplace</th> \
<th class=census-header>Mother's Tongue</th> \
<th class=census-header>English</th> \
<th class=census-header>Trade</th> \
<th class=census-header>Industry</th> \
<th class=census-header>Job Type</th> \
<th class=census-header>Farm Schedule</th> \
</tr>");
}

function header1930USCensus()
{
document.write("<tr> \
<th class=census-header>Street</th> \
<th class=census-header>House#</th> \
<th class=census-header>Dwelling#</th> \
<th class=census-header>Family#</th> \
<th class=census-header>Name</th> \
<th class=census-header>Relationship</th> \
<th class=census-header>Own/Rent</th> \
<th class=census-header>Value</th> \
<th class=census-header>Radio Set</th> \
<th class=census-header>Farm</th> \
<th class=census-header>Sex</th> \
<th class=census-header>Race</th> \
<th class=census-header>Age</th> \
<th class=census-header>Marital Status</th> \
<th class=census-header>Age at First Marriage</th> \
<th class=census-header>Attending School</th> \
<th class=census-header>Able to Read/Write</th> \
<th class=census-header>Birthplace</th> \
<th class=census-header>Father's Birthplace</th> \
<th class=census-header>Mother's Birthplace</th> \
<th class=census-header>Tongue</th> \
<th class=census-header>Code</th> \
<th class=census-header>Immigration</th> \
<th class=census-header>Naturalization</th> \
<th class=census-header>English</th> \
<th class=census-header>Occupation</th> \
<th class=census-header>Industry</th> \
<th class=census-header>Code</th> \
<th class=census-header>Job Type</th> \
<th class=census-header>Employed</th> \
<th class=census-header>Unemployment Schedule</th> \
<th class=census-header>Veteran</th> \
<th class=census-header>War</th> \
<th class=census-header>Farm Schedule</th> \
</tr>");
}
