// This Javascript routine generates the "TABLE HEADINGS" in the ancestral listing pages.
// It should be called from "ANCESTOR/HEADING.HTM" and from the LOOKUP.PHP script.
// It also used to be called from every letter page listing qualified huguenot ancestors
//                        in the "ANCESTOR/LETTERS" directory.


//     Table Column Widths
width_column1 = 190;
width_column2 = 200;
width_column3 = 80;
width_column4 = 120;
width_column5 = 230;


//     Set flag if displaying a list of ancestors as opposed to heading frame
if(document.location.pathname.substr(0, 20).toUpperCase() == "/ANCESTOR/HEADER.HTM")  {
     using_letters = "NO";
}
else {
     using_letters = "YES";
}


total_width = width_column1 + width_column2 + width_column3 + width_column4 + width_column5;

document.writeln('<table width=' + total_width + ' border="1" cellpadding="1" cellspacing="2" bordercolorlight="#C0C0C0" bordercolordark="#000080">');
document.writeln('  <tr>');
document.writeln('    <th width=' + width_column1 + ' valign="center"><font face="arial" color="#000080">Surname</font></th>');
document.writeln('    <th width=' + width_column2 + ' valign="center"><font face="arial" color="#000080">Christian Names</font></th>');
document.writeln('    <th width=' + width_column3 + ' valign="center"><font face="arial" color="#000080">Gen. Diff.</font></th>');
document.writeln('    <th width=' + width_column4 + ' valign="center"><font face="arial" color="#000080">Anglicization<BR>/ AKA</font></th>');
document.writeln('    <th width=' + width_column5 + ' valign="center"><font face="arial" color="#000080">Also See</font></th>');
document.writeln('  </tr>');

// Write "End-of-Table" tag ONLY if it is the ancestral listing header
if(using_letters != "YES") document.writeln('</table>');



//   include the following code in any HTML document to include this code when the page is loaded:
//          <SCRIPT SRC="/javascript/tablehdr.js">
//          <!--
//          alert("Javascript error encountered.  Please notify Webmaster and provide URL of this page.");
//          //-->
//          </SCRIPT>