/*
wewain.js 11/1/2004 
(C) Copyright 2000-2004, wewain
*/

function displayIGI(ident)
 {
  document.writeln('<br clear="left"><hr /><h6>');
  document.writeln(
   '<a href="http://www.familysearch.org/Eng/Search/IGI/individual_record.asp?recid=' +
   ident + '&amp;lds=1&amp;region=2"'
  );
  document.writeln('   onclick="window.open(this.href)' + ';' + 'return false' + ';" ');
  document.writeln(' > ');
  document.writeln(
   '<img src="/~wewain/FamilySearch.gif" border="0" alt="Click here to see IGI data" />'
  );
  document.writeln(
   '<img src="/~wewain/InternetSite.gif" border="0" alt="You need Internet access to see this." /></a>'
  );
  document.writeln(
   '<br />Click here to see the on-line '
  );
  document.writeln(
   '<a href="/~wewain/Glossary.htm#IGI">IGI</a> data,'
  );
  document.writeln(
   '<br />This will be in a new window. Close that window to return here.'
  );
  document.writeln('</h6>');
 }


function displayLDSAncestralFile(ident)
 {
  document.writeln('<br clear="left"><hr /><h6>');
  document.writeln(
   '<a href="http://www.familysearch.org/Eng/Search/AF/individual_record.asp?recid=' +
   ident + '&amp;lds=0&amp;region=-" target="_blank">'
  );
  document.writeln(
   '<img src="/~wewain/FamilySearch-AncestralFile.gif" border="0" alt="Click here to see Ancestral File data" />'
  );
  document.writeln(
   '<img src="/~wewain/InternetSite.gif" border="0" alt="You need Internet access to see this." /></a>'
  );
  document.writeln(
   '<br />Click here to see the on-line '
  );
  document.writeln(
   '<a href="/~wewain/Glossary.htm#AncestralFile">Ancestral File</a> data '
  );
  document.writeln(
   '<br />This will be in a new window. Close that window to return here.'
  );
  document.writeln('</h6>');
 }


 /*
 href="http://www.familysearch.org/Eng/Search/customsearchresults.asp?LDS=1&region=2&first_name=John&last_name=Wainwright&event_index=1&from_date=1777&date_range=10&date_range_index=4&juris1=Engl&juris1index=66&juris1friendly=England"
 */

/*
function href_baptismSearchIGI(firstname,lastname,fromdate,daterange)
 {
  document.writeln('href="http://www.familysearch.org/Eng/Search/customsearchresults.asp?LDS=1&region=2'
                   + '&amp;first_name=' + firstname 
                   + '&amp;last_name='  + lastname  
                   + '&amp;event_index=1'  
                   + '&amp;from_date='  + fromdate  
                   + '&amp;date_range=' + daterange 
                   + '&amp;date_range_index=4&juris1=Engl&juris1index=66&juris1friendly=England"'
                  );
 }
*/






function display1881IndividualCensusData(name,
                                         birthPlace,
                                         age,
                                         occupation,
                                         maritalStatus,
                                         gender,
                                         headOfHousehold,
                                         relationship,
                                         disability,
                                         dwelling,
                                         censusPlace,
                                         ref,
                                         piece,
                                         page
                                        )
 {
  document.writeln('The 1881 British Census recorded the following:<br />');
  document.writeln('<table class="census">');
  document.writeln('<tr><td class="census" valign="top">Name</td><td class="census" valign="top">' + name + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Birth Place</td><td class="census" valign="top">' + birthPlace + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Age at Last Birthday</td><td class="census" valign="top">' + age + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Occupation</td><td class="census" valign="top">' + occupation + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Marital Status</td><td class="census" valign="top">' + maritalStatus + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Gender</td><td class="census" valign="top">' + gender + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Head of the Household</td><td class="census" valign="top">' + headOfHousehold + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Relationship to the<br />Head of Household</td><td class="census" valign="top">' + relationship + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Disability</td><td class="census" valign="top">' + disability + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Dwelling</td><td class="census" valign="top">' + dwelling + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Census Place</td><td class="census" valign="top">' + censusPlace + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Public Records Office<br />Reference</td><td class="census" valign="top">' + ref + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Piece/Folio</td><td class="census" valign="top">' + piece + '</td></tr>');
  document.writeln('<tr><td class="census" valign="top">Page No.</td><td class="census" valign="top">' + page + '</td></tr>');
  document.writeln('</table>')
 }


function display1881HouseholdCensusHeader(dwelling,
                                          censusPlace,
                                          ref,
                                          piece,
                                          page
                                         )
 {
  document.writeln('The 1881 British Census recorded the following for this household:<br />');
  document.writeln('<table class="census">');
  
  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top" colspan="3">Dwelling</td>');
  document.writeln('<td class="census" valign="top" colspan="5">' + dwelling + '</td>');
  document.writeln('</tr>');
  
  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top" colspan="3">Census Place</td>');
  document.writeln('<td class="census" valign="top" colspan="5">' + censusPlace + '</td>');
  document.writeln('</tr>');

  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top" colspan="3">Public Records Office Reference</td>');
  document.writeln('<td class="census" valign="top" colspan="5">' + ref + '</td>');
  document.writeln('</tr>');

  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top" colspan="3">Piece/Folio</td>');
  document.writeln('<td class="census" valign="top" colspan="5">' + piece + '</td>');
  document.writeln('</tr>');

  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top" colspan="3">Page No.</td>');
  document.writeln('<td class="census" valign="top" colspan="5">' + page + '</td>');
  document.writeln('</tr>');

  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top">Name</td>');
  document.writeln('<td class="census" valign="top">Relationship<br />to Head of<br />Household</td>');
  document.writeln('<td class="census" valign="top">Marital Status</td>');
  document.writeln('<td class="census" valign="top">Gender</td>');
  document.writeln('<td class="census" valign="top">Age at Last Birthday</td>');
  document.writeln('<td class="census" valign="top">Birthplace</td>');
  document.writeln('<td class="census" valign="top">Occupation</td>');
  document.writeln('<td class="census" valign="top">Disability</td>');
  document.writeln('</tr>')
 }


function display1881HouseholdCensusLine(name,
                                        relationship,
                                        maritalStatus,
                                        gender,
                                        age,
                                        birthPlace,
                                        occupation,
                                        disability
                                       )
 {
  document.writeln('<tr>');
  document.writeln('<td class="census" valign="top">' + name          + '</td>');
  document.writeln('<td class="census" valign="top">' + relationship  + '</td>');
  document.writeln('<td class="census" valign="top">' + maritalStatus + '</td>');
  document.writeln('<td class="census" valign="top">' + gender        + '</td>');
  document.writeln('<td class="census" valign="top">' + age           + '</td>');
  document.writeln('<td class="census" valign="top">' + birthPlace    + '</td>');
  document.writeln('<td class="census" valign="top">' + occupation    + '</td>');
  document.writeln('<td class="census" valign="top">' + disability    + '</td>');
  document.writeln('</tr>')
 }

function display1881HouseholdCensusEnd()
 {
  document.writeln('</table>');
 }



function bannerAbove()
 {
  document.write('<img src="/~wewain/BannerAbove.gif" width="434" height="25" alt="" /><hr /><a id="top" name="top" />');
 }
 
 
function bannerBelow()
 {
  document.write('<hr /><img src="/~wewain/BannerBelow.gif" width="434" height="25" alt="" />');
 }


function validTransitional()
 {
  document.write('<br /><a href="http://validator.w3.org/file-upload.html" target="_blank" >');
  document.write('<img src="/~wewain/valid-xhtml10-Transitional.gif" width="88" height=42" border="0" ');
  document.write('alt="Valid XHTML 1.0 Transitional. Click here to validate your own HTML in a new window."  /></a>');
 } 

function validStrict()
 {
  document.write('<br /><a href="http://validator.w3.org/file-upload.html" target="_blank" >');
  document.write('<img src="/~wewain/valid-xhtml10-Strict.gif" width="88" height=42" border="0" ');
  document.write('alt="Valid XHTML 1.0 Strict. Click here to validate your own HTML in a new window."  /></a>');
 } 


function copyright()
 {
  document.write('<hr /><h6>');
  document.write('&#169; Copyright 2000-2004, wewain - [<a href="/~wewain/Wainwright/CopyrightWainwright.htm#top">Click here for specifics.</a>]');
  document.write('</h6>');
 }


function copyrightNesbitt()
 {
  document.write('<hr /><h6>');
  document.write('&#169; Copyright 2000-2004, wewain - [<a href="/~wewain/Nesbitt/CopyrightNesbitt.htm#top">Click here for specifics.</a>]');
  document.write('</h6>');
 }


function bookmarkWHP()
 {
  var whpURL="http://www.wainwright.info/"
  var whpTitle="Wainwright.info Home Page"
  if (document.all)
     window.external.AddFavorite(whpURL,whpTitle);
 }


function bookmarkNOM()
 {
  var nomURL="http://www.nesbitts-of-monaghan.info/"
  var nomTitle="Nesbitts-of-Monaghan Home Page"
  if (document.all)
     window.external.AddFavorite(nomURL,nomTitle);
 }


function bookmarkWOP()
 {
  var wopURL="http://www.wainwrights-of-penistone.info/"
  var wopTitle="Wainwrights-of-Penistone Home Page"
  if (document.all)
     window.external.AddFavorite(wopURL,wopTitle);
 }
 
 
 function displayOldMap(easting,northing)
  {
   document.writeln(
    '<a href="http://www.old-maps.co.uk/index_external.htm' +
    '?easting=' + easting + 
    '&amp;northing=' + northing +
    '" target="_blank">');
   document.writeln('<img src="/~wewain/ButtonMap.gif"');
   document.writeln('alt="Click on here to open a new window at another site to see an old map." />');
   document.writeln('</a>');
   document.writeln('<img src="/~wewain/InternetSite.gif"');
   document.writeln('alt="You need Internet asccess to use this link." />');
  }

 function MappingBankhouseCurrentMap()
 {
 } 

 function MappingBradfieldCurrentMap()
 {
 } 

 function MappingDenbyCurrentMap()
 {
 }

 function MappingPenistoneCarlecotesCurrentMap()
 {
 } 


 function MappingOxspringCurrentMap()
 {
 }


 function showMap(name,width,height)
  {
   document.writeln('<img src="' + name + '.jpg"');
   document.writeln('width="' + width + '" height="' + height +'"');
   document.writeln('alt="' + name + '" />');
  }


function showPicture(name,text)
 {
 }
 
 
function showHTMPage(name,text)
 {
 }


function showHPP(pagename,text)
 {
 }


function showLarger(name)
 {
 }
 
 
function startTable()
 {
 }

function endTable()
 {
 }

function startRow()
 {
 }

function endRow()
 {
 }

function startData()
 {
 }

function endData()
 {
 }

function showPage(filename)
 {
 }
 
function clickImage()
 {
 }
 
function changeImageBG(ident,bgFile)
 {
 }
 

/* ----------------------------------------------------------- */

function displayLDS1881IndividualCensusData(ident)
 {
  document.writeln('<br clear="left"><hr /><h6>');
  document.writeln(
   '<a href="http://www.familysearch.org/Eng/Search/Census/individual_record.asp?INDI_CODE=' +
   ident + '&amp;lds=5&amp;region=1&amp;regionfriendly=1881+British+Census" target="_blank">'
  );
  document.writeln(
   '<img src="/~wewain/FamilySearch-1881Census.gif" border="0" alt="Click here to see the on-line 1881 Census data for this individual." />'
  );
  document.writeln(
   '<img src="/~wewain/InternetSite.gif" border="0" alt="You need Internet access to see this." /></a>'
  );
  document.writeln(
   '<br />Click here to see the on-line data from the 1881 Census for this individual.'
  );
  document.writeln(
   '<br />This will be in a new window. Close that window to return here.'
  );
  document.writeln('</h6>');
 }


function displayLDS1881HouseholdCensusData(ident)
 {
  document.writeln('<br clear="left"><hr /><h6>');
  document.writeln(
   '<a href="http://www.familysearch.org/Eng/Search/Census/household_record.asp?HOUSEHOLD_CODE=' +
   ident + '&amp;HOUSEHOLD_SUB=1" target="_blank">'
  );
  document.writeln(
   '<img src="/~wewain/FamilySearch-1881Census.gif" border="0" alt="Click here to see the on-line 1881 Census data for this household." />'
  );
  document.writeln(
   '<img src="/~wewain/InternetSite.gif" border="0" alt="You need Internet access to see this." /></a>'
  );
  document.writeln(
   '<br />Click here to see the on-line data from the 1881 Census for this household.'
  );
  document.writeln(
   '<br />This will be in a new window. Close that window to return here.'
  );
  document.writeln('</h6>');
 }



