   function returnDocument() {
        var file_name = document.location.href;
        var end = (file_name.indexOf("?") == -1) ? file_name.length : file_name.indexOf("?")
        return file_name.substring(file_name.lastIndexOf("/")+1, end-4);
    }
xx = returnDocument()
yy =  "<p><span><a href=\"http://www.beresford.net.au/PHPGDV/pedigree.php?show_full=1&rootid=I" + xx + "&PEDIGREE_GENERATIONS=4&talloffset=1\" target=_blank><font color=\"white\">Ancestor Chart</a>"
zz =  "<p><span><a href=\"http://www.beresford.net.au/PHPGDV/descendancy.php?show_full=1&pid=I" + xx + "&box_width=100&chart_style=0&generations=4\" target=_blank><font color=\"white\">Descendant Chart</a>"
document.write(" <link href=\"./../treeperm/tree.css\" rel=\"stylesheet\" type=\"text/css\">                                                         ");
document.write(" <!-- navigation table -->                                                                                                           ");
document.write(" <style type=\"text/css\">                                                                                                           ");
document.write(" <!--                                                                                                                                ");
document.write(" .style5 {font-size: small}                                                                                                          ");
document.write(" .style7 {color: #66FFFF}                                                                                                            ");
document.write(" .style9 {font-size: small; font-weight: bold; }                                                                                     ");
document.write(" -->                                                                                                                                 ");
document.write(" </style>                                                                                                                            ");
document.write(" <a name=\"top\" id=\"top\"></a>                                                                                                     ");
document.write(" <table width=\"100%\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">                                            ");
document.write("   <tr>                                                                                                                              ");
document.write("     <td class=\"nbar\" valign=\"top\"><div align=\"left\">                                                                         ");
document.write(yy);                                                                                                             
document.write(zz);                                                                                                             
document.write("   </td>");
document.write("     <td class=\"nbar\" valign=\"top\"><div align=\"right\">                                                                         ");
document.write("       <p><span><a href=\"#sources\" target=\"_self\"><font color=\"white\">Sources</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"../../History.htm\" target=\"_self\"><font color=\"white\">Home</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"./../tree/Surnames.htm\"><font color=\"white\">Surname Index </font></a>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<a href=\"./../tree/Names.htm\"><font color=\"white\">Name Index </font></a> </strong></span></span> ");
document.write(" <span class=\"style5\"><strong></strong></span>&nbsp;</strong></span>&nbsp;&nbsp;</p> ");
document.write("       <p><span><strong>Please  <a href=\"ma&#105;lt&#111;:t&#114;ee&#64;be&#114;es&#102;or&#100;.o&#114;g.&#97;u\" class=\"style7\">Email Rob</a> with any Comments, Corrections or Questions </strong>&nbsp;</span>&nbsp;</p> ");
document.write("       </font></span></div></td>                                                                                                     ");
document.write("     <td class=\"nbar\" width=\"25\" valign=\"top\">&nbsp;</td>                                                                      ");
document.write("   </tr>                                                      ");
document.write(" </table>                                                                                                                            ");


