var firstName="";var lastName="";var firstNameFather="";var lastNameFather="";var firstNameMother="";var lastNameMother="";var firstNameSpouse="";var lastNameSpouse="";var birthPlace="";var deathPlace="";var birthPlaceEdited="";var deathPlaceEdited="";var birthPlaceSearch="";var deathPlaceSearch="";var searchChoice="New";var searchControl="NNNNNNN";var validData=true;function searchpeoplefinder(){document.peoplefinder.submit();}
function searchussearch(){document.ussearch.submit();}
function supersub(localFirstName,localLastName,localBirthPlace,localDeathPlace,localFirstNameFather,localLastNameFather,localFirstNameMother,localLastNameMother,localFirstNameSpouse,localLastNameSpouse){var supersubString="gl=ROOT_CATEGORY&rank=1&new=1&so=3&MSAV=0&msT=1&gsfn="+escape(localFirstName);if(localLastName!="")
supersubString=supersubString+"&gsln="+escape(localLastName);if(localBirthPlace!="")
supersubString=supersubString+"&msbpn__ftp="+escape(findStateCode(localBirthPlace));if(localDeathPlace!="")
supersubString=supersubString+"&msdpn__ftp="+escape(findStateCode(localDeathPlace));if(localFirstNameFather!=""){supersubString=supersubString+"&_8000C000="+escape(localFirstNameFather);if(localLastNameFather!="")
supersubString=supersubString+"+"+escape(localLastNameFather);}
else if(localLastNameFather!="")
supersubString=supersubString+"&_8000C000="+escape(localLastNameFather);if(localFirstNameMother!=""){supersubString=supersubString+"&_80008000="+escape(localFirstNameMother);if(localLastNameMother!="")
supersubString=supersubString+"+"+escape(localLastNameMother);}
else if(localLastNameMother!="")
supersubString=supersubString+"&_80008000="+escape(localLastNameMother);if(localFirstNameSpouse!=""){supersubString=supersubString+"&_80018000="+escape(localFirstNameSpouse);if(localLastNameSpouse!="")
supersubString=supersubString+"+"+escape(localLastNameSpouse);}
else if(localLastNameSpouse!="")
supersubString=supersubString+"&_80018000="+escape(localLastNameSpouse);document.write("<table width='570' border='0' cellpadding='2' cellspacing='0'>");document.write("<tr>");document.write("<td width='10'></td>");document.write("<th colspan='2' bgcolor='#E9E9E9' style='border: 2 solid #E9E9E9' align='left'><font face='Arial'><b>Additional possible matches for <font face='Arial' color='#CC3300'>"+localFirstName+" "+localLastName+"</font><font face='Arial'> at Ancestry.com.</b></font></th>");document.write("</tr>");document.write("<tr>");document.write("<td width='10'></td>");document.write("<td width='10' style='border-left: 2 solid #E9E9E9'>&nbsp;</td>");document.write("<td style='border-right: 2 solid #E9E9E9' valign='baseline' nowrap align='left'>");document.write("<img border='0' src='images/circle-arrow.gif' width='10' height='15'>&nbsp;<img border='0' height='15' alt='>'  src='http://search.ancestry.com/cgi-bin/sse.dll?gl=allgs&prox=1&rank=0&gsfn="+escape(localFirstName)+"&gsln="+escape(localLastName)+"&gst=35&map=1'>&nbsp;<img border='0' src='images/census.gif' alt='matches in U.S. Federal Census Records' width='300' height='15'><br>");document.write("<img border='0' src='images/circle-arrow.gif' width='10' height='15'>&nbsp;<img border='0' height='15' alt='>'  src='http://search.ancestry.com/cgi-bin/sse.dll?gl=allgs&prox=1&rank=0&gsfn="+escape(localFirstName)+"&gsln="+escape(localLastName)+"&gst=34&map=1'>&nbsp;<img border='0' src='images/birth.gif' alt='matches in Birth, Marriage, and Death Records' width='300' height='15'><br>");document.write("<img border='0' src='images/circle-arrow.gif' width='10' height='15'>&nbsp;<img border='0' height='15' alt='>'  src='http://search.ancestry.com/cgi-bin/sse.dll?gl=allgs&prox=1&rank=0&gsfn="+escape(localFirstName)+"&gsln="+escape(localLastName)+"&gst=38&map=1'>&nbsp;<img border='0' src='images/newspapers.gif' alt='matches in Historical Newspapers' width='300' height='15'><br>");document.write("<img border='0' src='images/circle-arrow.gif' width='10' height='15'>&nbsp;<img border='0' height='15' alt='>'  src='http://search.ancestry.com/cgi-bin/sse.dll?gl=allgs&prox=1&rank=0&gsfn="+escape(localFirstName)+"&gsln="+escape(localLastName)+"&gst=33&map=1'>&nbsp;<img border='0' src='images/histories.gif' alt='matches in Local and Family Histories' width='300' height='15'><br>");document.write("<img border='0' src='images/circle-arrow.gif' width='10' height='15'>&nbsp;<img border='0' height='15' alt='>'  src='http://search.ancestry.com/cgi-bin/sse.dll?gl=allgs&prox=1&rank=0&gsfn="+escape(localFirstName)+"&gsln="+escape(localLastName)+"&gst=37&map=1'>&nbsp;<img border='0' src='images/directories.gif' alt='matches in Directories and Membership Lists' width='300' height='15'>");document.write("</td>");document.write("</tr>");document.write("<tr>");document.write("<td width='10'></td>");document.write("<td colspan='2' align='left' style='border-left: 2 solid #E9E9E9; border-top: 2 solid #E9E9E9; border-bottom: 2 solid #E9E9E9; border-right: 2 solid #E9E9E9'><font face='Arial'>");document.write("<IMG SRC='http://www.ftj"+"cfx.com/image-1498317-10470501' BORDER='0' WIDTH='1' HEIGHT='1' alt='' NOSAVE >");document.write("<A HREF='http://www.jdo"+"qocy.com/click-1498317-10470501?url=http://search.ance"+"stry.com/cgi-bin/sse.dll?"+supersubString+"' TARGET='_blank' onmouseover=\"window.status='Click here for more detail';return true;\" onmouseout=\"window.status=' ';return true;\"><p style='margin-top: 5; margin-bottom: 5'><b>Click here</b></A> for more detail at Ancestry.com on possible additional matches.</p></font>");document.write("</td>");document.write("</tr>");document.write("</table>");}
function displayPeopleFinder(localFirstName,localLastName){document.write("<table border='0' cellpadding='0' cellspacing='0'>");document.write("<tr>");document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");document.write("<td valign='top' align='left' width='400'>");document.write("<p style='margin-bottom: 0'><img border='0' src='images/alternate1.gif' width='400' height='20' alt='--- Alternate Search Option -------'></p>");document.write("<p style='margin-top: 0'><font size='-1' face='Verdana'>If <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font> might be living, use the MyFamily People Finder ");document.write("instead of Google. People Finder uses public records for the age, street address, city, state, and phone number for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font>.</font></p>");document.write("<FORM name='peoplefinder' ACTION='http://service.b"+"fast.com/b"+"fast/click' target='_blank'>");document.write("<INPUT TYPE='hidden' NAME='siteid' VALUE='41050113'>");document.write("<INPUT TYPE='hidden' NAME='bfpage' VALUE='218x80_search3'>");document.write("<INPUT TYPE='hidden' NAME='bfmid' VALUE='5647408' >");document.write("<FORM action='http://anc"+"estry.my"+"family.com/ancestry/search"+"partners/pfredir.asp' method='get'>");document.write("<input TYPE=\"hidden\" name=\"firstname\" type=\"text\" value=\""+localFirstName+"\" >");document.write("<input TYPE=\"hidden\" name=\"lastname\" type=\"text\" value=\""+localLastName+"\">");document.write("<a href='javascript:searchpeoplefinder();' target='_top' onmouseover=\"window.status='Click here to search';return true;\" onmouseout=\"window.status=' ';return true;\"><p style='margin-bottom: 0'><font size='-1' face='Verdana' color='#006699'><b><u>Click here</u></b> </A> to search for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font> using MyFamily People Finder.</font></p>");document.write("</form>");document.write("</FORM>");document.write("<IMG SRC='http://service.b"+"fast.com/b"+"fast/serve?bfmid=5647408&siteid=41050113&bfpage=218x80_search3' BORDER='0' WIDTH='1' HEIGHT='1' alt='' NOSAVE >");document.write("<p style='margin-top: 0'><img border='0' src='images/alternate2.gif' width='400' height='20' alt=''>");document.write("</td>");document.write("</tr>");document.write("</table>");}
function displayIntelius(localFirstName,localLastName){document.write("<table border='0' cellpadding='0' cellspacing='0'>");document.write("<tr>");document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");document.write("<td valign='top' align='left' width='400'>");document.write("<p style='margin-bottom: 0'><img border='0' src='images/alternate1.gif' width='400' height='20' alt='--- Alternate Search Option -------'></p>");document.write("<p style='margin-top: 0'><font size='-1' face='Verdana'>If <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font> might be living, check with Intelius ");document.write("instead of Google. Intelius uses public records for the age, street address, city, state, and phone number for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font>.</font></p>");document.write("<a href='http://www.jdoqocy.com/click-2376305-10438346' target='_top'><p style='margin-bottom: 0'><font size='-1' face='Verdana' color='#006699'><b><u>Click here</u></b></a> to search for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font> at Intelius.</font></p>");document.write("<IMG width='1' height='1' border='0' src='http://www.tqlkg.com/image-2376305-10438346' alt=''>");document.write("<p style='margin-top: 0'><img border='0' src='images/alternate2.gif' width='400' height='20' alt=''>");document.write("</td>");document.write("</tr>");document.write("</table>");}
function displayCensusSearch(localFirstName,localLastName){document.write("<table border='0' cellpadding='0' cellspacing='0'>");document.write("<tr>");document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");document.write("<td valign='top' align='left' width='400'>");document.write("<p style='margin-bottom: 0'><img border='0' src='images/alternate1.gif' width='400' height='20' alt='--- Alternate Search Option -------'></p>");document.write("<p style='margin-top: 0'><font size='-1' face='Verdana'>If the father, <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font>, lived between 1790 and 1930, you might get useful information ");document.write("from census records online at Ancestry.com. Census records may show the age and or birthdates of family members and where they were born.</font></p>");document.write("<A HREF='http://www.jdo"+"qocy.com/click-1498317-10470501?url=http://search.ance"+"stry.com/cgi-bin/sse.dll?gl=allgs&prox=1&gst=35&ti=0&gsfn="+escape(localFirstName)+"&gsln="+escape(localLastName)+"' TARGET='_blank' onmouseover=\"window.status='Click here to search';return true;\" onmouseout=\"window.status=' ';return true;\"><p style='margin-bottom: 0'><font size='-1' face='Verdana'><b>Click here</b></A> to search online census records at Ancestry.com for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font>.</p>");document.write("<p style='margin-top: 0'><img border='0' src='images/alternate2.gif' width='400' height='20' alt=''>");document.write("<IMG SRC='http://www.ftj"+"cfx.com/image-1498317-10470501' BORDER='0' WIDTH='1' HEIGHT='1' alt='' NOSAVE >");document.write("</td>");document.write("</tr>");document.write("</table>");}
function displayTwoPersonCensusSearch(firstFirstName,firstLastName,secondFirstName,secondLastName){document.write("<table border='0' cellpadding='0' cellspacing='0'>");document.write("<tr>");document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");document.write("<td valign='top' align='left' width='400'>");document.write("<p style='margin-bottom: 0'><img border='0' src='images/alternate1.gif' width='400' height='20' alt='--- Alternate Search Option -------'></p>");document.write("<p style='margin-top: 0'><font size='-1' face='Verdana'>If <font color='#CC3300'><b>"+firstFirstName+" "+firstLastName+"</b></font> and <font color='#CC3300'><b>"+secondFirstName+" "+secondLastName+"</b></font> lived between 1790 and 1930, you might get useful information ");document.write("from census records at Ancestry.com. Census records may show the age and or birthdates of family members and where they were born.</font></p>");document.write("<A HREF='http://www.jdo"+"qocy.com/click-1498317-10470501?url=http://search.ance"+"stry.com/cgi-bin/sse.dll?gl=allgs&prox=1&gst=35&ti=0&gsfn="+escape(firstFirstName)+"&gsln="+escape(firstLastName)+"' TARGET='_blank' onmouseover=\"window.status='Click here to search';return true;\" onmouseout=\"window.status=' ';return true;\"><p style='margin-bottom: 0'><font size='-1' face='Verdana'><b>Click here</b></A> to first search online census records at Ancestry.com for <font color='#CC3300'><b>"+firstFirstName+" "+firstLastName+"</b></font>.<br>");document.write("<p style='margin-bottom: 0'><font size='-1' face='Verdana'>If you think you might find more census records using the spouse\'s name, then <A HREF='http://www.jdo"+"qocy.com/click-1498317-10470501?url=http://search.ance"+"stry.com/cgi-bin/sse.dll?gl=allgs&prox=1&gst=35&ti=0&gsfn="+escape(secondFirstName)+"&gsln="+escape(secondLastName)+"' TARGET='_blank' onmouseover=\"window.status='Click here to search for spouse';return true;\" onmouseout=\"window.status=' ';return true;\"><b>click&nbsp;here</b></A> to search online census records at Ancestry.com for <font color='#CC3300'><b>"+secondFirstName+" "+secondLastName+"</b></font>.</p>");document.write("<IMG SRC='http://www.ftj"+"cfx.com/image-1498317-10470501' BORDER='0' WIDTH='1' HEIGHT='1' alt='' NOSAVE >");document.write("<p style='margin-top: 0'><img border='0' src='images/alternate2.gif' width='400' height='20' alt=''>");document.write("</td>");document.write("</tr>");document.write("</table>");}
function displayVitalCheck(localFirstName,localLastName){document.write("<table border='0' cellpadding='0' cellspacing='0'>");document.write("<tr>");document.write("<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>");document.write("<td valign='top' align='left' width='400'>");document.write("<p style='margin-bottom: 0'><img border='0' src='images/alternate1.gif' width='400' height='20' alt='--- Alternate Search Option -------'></p>");document.write("<p style='margin-top: 0'><font size='-1' face='Verdana'>If you do not have a birth or a death record for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font>, you can order those ");document.write("records online from VitalChek. Birth and death records often show the parents names and may show where the parents were born.</font></p>");document.write("<A HREF='http://www.vitalchek.com' TARGET='_blank' onmouseover=\"window.status='Click here for more information';return true;\" onmouseout=\"window.status=' ';return true;\"><p style='margin-bottom: 0'><font size='-1' face='Verdana'><b>Click here</b></A> for more information on birth and death records from VitalChek for <font color='#CC3300'><b>"+localFirstName+" "+localLastName+"</b></font>.</font></p>");document.write("<p style='margin-top: 0'><img border='0' src='images/alternate2.gif' width='400' height='20' alt=''>");document.write("</td>");document.write("</tr>");document.write("</table>");}
var _ONE=0;function replaceCharacter(item,OldChar,NewChar)
{var _ret="";var _flag=0;var _item=item.split("");for(var i=0;i<_item.length;i++)
{if(!_flag&&_item[i]==OldChar)
{_item[i]=NewChar;_flag=_ONE;}
_ret+=_item[i];}
return(_ret);}
function isLetter(theChar)
{var charArray=new Array(' ','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z')
for(j=0;j<charArray.length;j++)
if(theChar==charArray[j])
return true
return false}
function isLowerCase(theChar)
{var charArray=new Array('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z')
for(j=0;j<charArray.length;j++)
if(theChar==charArray[j])
return true
return false}
function isAllLetters(theName){var theChar
for(var i=0;i<theName.length;i++){theChar=theName.charAt(i)
if(!isLetter(theChar)){return false}}
return true}
function containsSpaces(theName){var theChar
for(var i=0;i<theName.length;i++){theChar=theName.charAt(i)
if(theChar==" "){return true;}}
return false;}
function addQuotes(theName){var returnString=spaceTrim(theName);if(containsSpaces(theName))
return"\""+returnString+"\"";return returnString;}
function isValidName(theName)
{var theChar
for(var i=0;i<theName.length;i++)
{theChar=theName.charAt(i)
if(!isLetter(theChar))
{if(!((theChar=='-')||(theChar=='.')||(theChar==',')||(theChar=="'")||(theChar=='`')))
{return false}}}
return true}
function isBlank(InString){if(InString=="\"\"")
return true;if(InString==null)
return true;if(InString.length==0)
return true;return false;}
function isNotBlank(InString){if(InString=="\"\"")
return false;if(InString==null)
return false;if(InString.length==0)
return false;return true;}
function spaceTrim(InString){var LoopCtrl=true;while(LoopCtrl){if(InString.indexOf("  ")!=-1){Temp=InString.substring(0,InString.indexOf("  "))
InString=Temp+InString.substring(InString.indexOf("  ")+1,InString.length)}else
LoopCtrl=false;}
if(InString.substring(0,1)==" ")
InString=InString.substring(1,InString.length)
if(InString.substring(InString.length-1)==" ")
InString=InString.substring(0,InString.length-1)
return(InString)}
function validForm(){if(isNotBlank(firstName)&&!isValidName(firstName)){alert("First name has invalid characters.")
return false}
if(isNotBlank(lastName)&&!isValidName(lastName)){alert("Last name has invalid characters.")
return false}
if(firstName==""&&lastName==""){alert("Either the first name or the last name of the primary person must be entered.")
return false}
if(isNotBlank(firstNameFather)&&!isValidName(firstNameFather)){alert("First name of father has invalid characters.")
return false}
if(isNotBlank(lastNameFather)&&!isValidName(lastNameFather)){alert("Last name of father has invalid characters.")
return false}
if(isNotBlank(firstNameMother)&&!isValidName(firstNameMother)){alert("First name of mother has invalid characters.")
return false}
if(isNotBlank(lastNameMother)&&!isValidName(lastNameMother)){alert("Last name of mother has invalid characters.")
return false}
if(isNotBlank(firstNameSpouse)&&!isValidName(firstNameSpouse)){alert("First name of spouse has invalid characters.")
return false}
if(isNotBlank(lastNameSpouse)&&!isValidName(lastNameSpouse)){alert("Last name of spouse has invalid characters.")
return false}
return true;}
function obtainVariables(){var variableName;var aParams=location.search.substring(1,location.search.length).split("&");for(var i=0;i<=aParams.length-1;i++){var left=aParams[i].substring(0,aParams[i].indexOf("="));var right=aParams[i].substring(aParams[i].indexOf("=")+1,aParams[i].length);if(isNaN(right))
right=replaceCharacter(spaceTrim(unescape(right)),"+"," ");if(right!=""){variableName=unescape(left);if(variableName=="fn")
firstName=right;else if(variableName=="ln"){lastName=right;if(firstName==""){firstName=lastName;lastName="";}}
else if(variableName=="fnf")
firstNameFather=right;else if(variableName=="lnf"){lastNameFather=right;if(firstNameFather==""){firstNameFather=lastNameFather;lastNameFather="";}}
else if(variableName=="fnm")
firstNameMother=right;else if(variableName=="lnm"){lastNameMother=right;if(firstNameMother==""){firstNameMother=lastNameMother;lastNameMother="";}}
else if(variableName=="fns")
firstNameSpouse=right;else if(variableName=="lns"){lastNameSpouse=right;if(firstNameSpouse==""){firstNameSpouse=lastNameSpouse;lastNameSpouse="";}}
else if(variableName=="bp")
birthPlace=right;else if(variableName=="dp")
deathPlace=right;else if(variableName=="search")
searchChoice=right;else if(variableName=="searchControl")
searchControl=right;else if(variableName=="leaving")
if(right=="false")
leaving=false;else
leaving=true;}}}
var numStates=50;var stateCodes=new Array("AL","AK","AZ","AR","CA","CO","CT","DE","DC","FL","GA","HI","ID","IL","IN","IA","KS","KY","LA","ME","MD","MA","MI","MN","MS","MO","MT","NE","NV","NH","NJ","NM","NY","NC","ND","OH","OK","OR","PA","RI","SC","SD","TN","TX","UT","VT","VA","WA","WV","WI","WY");var stateNames=new Array("alabama","alaska","arizona","arkansas","california","colorado","connecticut","delaware","district of columbia","florida","georgia","hawaii","idaho","illinois","indiana","iowa","kansas","kentucky","louisiana","maine","maryland","massachusetts","michigan","minnesota","mississippi","missouri","montana","nebraska","nevada","new hampshire","new jersey","new mexico","new york","north carolina","north dakota","ohio","oklahoma","oregon","pennsylvania","rhode island","south carolina","south dakota","tennessee","texas","utah","vermont","virginia","washington","west virginia","wisconsin","wyoming");var stateNames2=new Array("Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","District of Columbia","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming");var stateAbbreviations=new Array("ala.","alaska","ariz.","ark.","calif.","col.","conn.","del.","d.c.","flor.","ga.","hi.","id.","ill.","ind.","iowa","kan.","ken.","la.","maine","maryland","mass.","mich.","minn.","miss.","missouri","mont.","neb.","nev.","n.h.","n.j.","n.m.","n.y.","n. carolina","n. dak.","ohio","ok.","or.","penn.","r.i.","s. carolina","s. dak.","tenn.","tex.","uta.","ver.","vir.","wash.","w.v.","wis.","wyoming");var stateAbbreviations2=new Array("ala","alaska","ariz","ark","calif","col","conn","del","d. c.","flor","ga","hi","id","ill","ind","iowa","kan","ken","la","maine","maryland","mass","mich","minn","miss","missouri","mont","neb","nev","n. h.","n. j.","n. m.","n. y.","n. carolina","n.d.","ohio","ok","or","penn","r. i.","s. carolina","s.d.","tenn","tex","utah","vermont","vir","wash","w. v.","wis","wyoming");var stateAbbreviations3=new Array("ala","ask","ari","ark","cal","col","con","del","d c","flo","geo","haw","ida","ill","ind","iow","kan","ken","lou","mai","mar","mas","mic","min","msp","msr","mon","neb","nev","nha","nje","nme","nyo","n. carolina","nda","ohi","okl","ore","pen","ris","sca","sda","ten","tex","uta","ver","vir","was","wvi","wis","wyo");var numUSA=5;var abbrevUSA=new Array("usa","us","united states","u.s.","u.s.a.","united states of america");var numCounty=3;var abbrevCounty=new Array("county","cty","cty.","co.");function validateStateCode(stateCode){var newStateCode=stateCode.toUpperCase();for(var i=0;i<=numStates;i++){if(stateCodes[i]==newStateCode)
return newStateCode;}
return"";}
function validateStateName(stateName){var newStateName=stateName.toLowerCase();for(var i=0;i<=numStates;i++){if(stateNames[i]==newStateName)
return stateCodes[i];}
for(var i=0;i<=numStates;i++){if(stateAbbreviations[i]==newStateName)
return stateCodes[i];}
for(var i=0;i<=numStates;i++){if(stateAbbreviations2[i]==newStateName)
return stateCodes[i];}
for(var i=0;i<=numStates;i++){if(stateAbbreviations3[i]==newStateName)
return stateCodes[i];}
return"";}
function getStateName(inputStateCode){for(var i=0;i<=numStates;i++){if(stateCodes[i]==inputStateCode)
return stateNames2[i];}}
function validateCounty(aString){var newString=aString.toLowerCase();for(var i=0;i<=numCounty;i++){if(abbrevCounty[i]==newString)
return true;}
return null;}
function validateUnitedStates(aString){var newString=aString.toLowerCase();for(var i=0;i<=numUSA;i++){if(abbrevUSA[i]==newString)
return true;}
return null;}
function removeCounty(aString){var startPosition;if(aString.lastIndexOf(",")>0){startPosition=aString.lastIndexOf(",")+1;if(aString.charAt(startPosition)==" "){if(validateCounty(aString.substring((startPosition+1),(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(","));}
else
if(validateCounty(aString.substring(startPosition,(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(","));}
if(aString.lastIndexOf(" ")>0){startPosition=aString.lastIndexOf(" ")+1;if(aString.charAt(startPosition)==" "){if(validateCounty(aString.substring((startPosition+1),(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(" "));}
else
if(validateCounty(aString.substring(startPosition,(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(" "));}
return aString;}
function removeUnitedStates(aString){var startPosition;if(aString.lastIndexOf(",")>0){startPosition=aString.lastIndexOf(",")+1;if(aString.charAt(startPosition)==" "){if(validateUnitedStates(aString.substring((startPosition+1),(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(","));}
else
if(validateUnitedStates(aString.substring(startPosition,(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(","));}
if(aString.lastIndexOf(" ")>0){startPosition=aString.lastIndexOf(" ")+1;if(aString.charAt(startPosition)==" "){if(validateUnitedStates(aString.substring((startPosition+1),(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(" "));}
else
if(validateUnitedStates(aString.substring(startPosition,(aString.length+1))))
aString=aString.substring(0,aString.lastIndexOf(" "));}
return aString;}
function findStateCode(aString){var tempStateCode;var startPosition;var placeString;placeString=removeUnitedStates(aString);if(placeString.length==2)
return validateStateCode(placeString);if(placeString.lastIndexOf(" ")==(placeString.length-3)||placeString.lastIndexOf(",")==(placeString.length-3))
return validateStateCode(placeString.substring((placeString.length-2),(placeString.length)));if(placeString.lastIndexOf(",")>0){startPosition=placeString.lastIndexOf(",")+1;if(placeString.charAt(startPosition)==" ")
return validateStateName(placeString.substring((startPosition+1),placeString.length));else
return validateStateName(placeString.substring(startPosition,placeString.length));}
if(placeString.lastIndexOf(" ")>0){startPosition=placeString.lastIndexOf(" ");if(placeString.charAt(startPosition)==" ")
return validateStateName(placeString.substring((startPosition+1),placeString.length));else
return validateStateName(placeString.substring(startPosition,placeString.length));}
return validateStateName(placeString);}
function editBirthAndDeathPlaces(){birthPlaceEdited=removeUnitedStates(birthPlace);deathPlaceEdited=removeUnitedStates(deathPlace);birthPlaceEdited=removeCounty(birthPlaceEdited);deathPlaceEdited=removeCounty(deathPlaceEdited);}
function setUpBirthAndDeathSearches(){var birthStateCode="";var deathStateCode="";birthStateCode=findStateCode(birthPlace);if(birthStateCode!=""){if(birthStateCode!="OR"&&birthStateCode!="MD"&&birthStateCode!="HI"&&birthStateCode!="OK"&&birthStateCode!="MI"&&birthStateCode!="IN"&&birthStateCode!="MS"&&birthStateCode!="AL"&&birthStateCode!="CO")
birthPlaceSearch=addQuotes(getStateName(birthStateCode))+" OR "+"+"+birthStateCode;else
birthPlaceSearch=addQuotes(getStateName(birthStateCode));}
else
birthPlaceSearch=addQuotes(birthPlaceEdited);deathStateCode=findStateCode(deathPlace);if(deathStateCode!=""){if(deathStateCode!="OR"&&deathStateCode!="MD"&&deathStateCode!="HI"&&deathStateCode!="OK"&&deathStateCode!="MI"&&deathStateCode!="IN"&&deathStateCode!="MS"&&deathStateCode!="AL"&&deathStateCode!="CO")
deathPlaceSearch=addQuotes(getStateName(deathStateCode))+" OR "+"+"+deathStateCode;else
deathPlaceSearch=addQuotes(getStateName(deathStateCode));}
else
deathPlaceSearch=addQuotes(deathPlaceEdited);}
function displayDefaultIntro(){document.write("<p>This page would normally provide you with options for using Google to search for your genealogy. ");document.write("No options are shown because either you came to this page without providing search information, or ");document.write("some type of error occurred. Click on the link under \"Try Different Search\" to set up a genealogy ");document.write("search using Google.</p>");}
function displayForm(formName,searchString){var apostrophe="'";var aBlank=" ";document.write("<div style='background-color:#FFFFFF; color:#000000; margin-bottom:20px;'>");document.write("<div class='cse-branding-form'>");document.write("<form name='"+formName+"' method='GET' action='http://www.genealogy-search-help.com/search-results.html' id='cse-search-box'>");document.write("<input type=text   name='q' size='70' value='"+replaceCharacter(searchString,apostrophe,aBlank)+"'>");document.write("<br><input type=submit name='sa' value='Try this search' onClick='leaving=false'>");document.write("<input type=hidden name=ie value='utf-8' />");document.write("<input type=hidden name='cof' value='FORID:10' />");document.write("<input type=hidden name='cx' value='partner-pub-6865856939325195:2tzx89uquzi' />");document.write("</form>");document.write("</div>");document.write("<div class='cse-branding-logo'>");document.write("<img src='http://www.google.com/images/poweredby_transparent/poweredby_FFFFFF.gif' alt='Google' />");document.write("</div>");document.write("<div class='cse-branding-text'>");document.write("Custom Search");document.write("</div>");document.write("</div>");}
function genealogySearchString(){return" ~genealogy OR ~ancestry";}
function addLocationModifierText(locationType){var birthPlaceCompare=addQuotes(birthPlace);var deathPlaceCompare=addQuotes(deathPlace);if(locationType=="birthPlace"){if(birthPlaceCompare!=birthPlaceSearch)
return"Also, the wording of the search phrase for the place of birth has been modified to improve search results.";}
else if(locationType=="deathPlace"){if(deathPlaceCompare!=deathPlaceSearch)
return"Also, the wording of the search phrase for the place of death has been modified to improve search results.";}
return"";}
function nameSearchString(inputFirstName,inputLastName){if(inputFirstName!=""&&inputLastName=="")
return addQuotes(inputFirstName);else if(inputFirstName==""&&inputLastName!="")
return addQuotes(inputLastName);else if(inputFirstName!=""&&inputLastName!="")
return"\""+inputFirstName+" "+inputLastName+"\" OR \""+inputFirstName+" * "+inputLastName+"\" OR \""+inputLastName+", "+inputFirstName+"\"";else
return"";}
function displayNameSearch(nameType){var upperCaseName="";var lowerCaseName="";var firstNamePrimary="";var lastNameSecondary="";var searchFormName="";var primaryName="";var upperCaseSecondary="";var lowerCaseSecondary="";var introString="";var introFirstName="";if(nameType=="Father"){upperCaseSecondary="Father\'s";lowerCaseSecondary="father\'s";upperCaseName="Father\'s";lowerCaseName="father\'s";firstNamePrimary=firstName;lastNamePrimary=lastName;firstNameSecondary=firstNameFather;lastNameSecondary=lastNameFather;primaryName=firstNamePrimary+" "+lastNamePrimary;searchFormName="fathersearch";introString="Searching for the father\'s names along with the primary person\'s names might be useful, "
+"because father\'s names are more likely to be recorded in older records than a mother\'s names. In turn, then father\'s names "
+"are more likely to be found on websites. ";}
else if(nameType=="Mother"){upperCaseSecondary="Mother\'s";lowerCaseSecondary="mother\'s";upperCaseName="Mother\'s";lowerCaseName="mother\'s";firstNamePrimary=firstName;lastNamePrimary=lastName;firstNameSecondary=firstNameMother;lastNameSecondary=lastNameMother;primaryName=firstNamePrimary+" "+lastNamePrimary;searchFormName="mothersearch";introString="Searching for the mother\'s names along with the primary person\'s names is not the best "
+"possible search, but it might be worth a try if you are unable to find your ancestor by "
+"searching on other names. ";introFirstName="Sometimes not knowing the mother\'s last name is OK. It is possible that other researchers "
+"were not aware of the mother\'s last name. Therefore, searching on only the mother\'s "
+"first name may be best. ";}
else if(nameType=="Spouse"){upperCaseSecondary="Spouse\'s";lowerCaseSecondary="spouse\'s";upperCaseName="Spouse\'s";lowerCaseName="spouse\'s";firstNamePrimary=firstName;lastNamePrimary=lastName;firstNameSecondary=firstNameSpouse;lastNameSecondary=lastNameSpouse;primaryName=firstNamePrimary+" "+lastNamePrimary;searchFormName="spousesearch";introString="Often searching for the spouse\'s names along with the primary person\'s names is the best way to look for an ancestor. "
+"This is because a spouse\'s names are more likely to be known than, for example, "
+"a mother\'s maiden name. So, you are more likely to have good search results than with "
+"other searches. ";introFirstName="Sometimes not knowing the spouse\'s last name is OK. It is possible that other researchers "
+"were not aware of the spouse\'s last name. Therefore, searching on only the spouse\'s "
+"first name may be best. ";}
else if(nameType=="Parents"){upperCaseSecondary="Mother\'s";lowerCaseSecondary="mother\'s";upperCaseName="Parents\'";lowerCaseName="parents\'";firstNamePrimary=firstNameFather;lastNamePrimary=lastNameFather;firstNameSecondary=firstNameMother;lastNameSecondary=lastNameMother;primaryName=firstNamePrimary+" "+lastNamePrimary;searchFormName="parentsearch";introString="Searching on just the parent\'s names could pick up websites that have information "
+"siblings of your ancestor and their parents. This would be the case if someone had "
+"already researched a siblings ancestry, but was, for some reason, unaware of your ancestor. ";introFirstName="Sometimes not knowing the mother\'s last name is OK. It is possible that other researchers "
+"were not aware of the mother\'s last name. Therefore, searching on only the mother\'s "
+"first name may be best. ";}
else alert("Error in displayNameSearch");if(firstNameSecondary==""&&lastNameSecondary=="")
return;var searchString="";var displayString="";var displaySubString="";if(firstNamePrimary!=""&&lastNamePrimary!=""){if(firstNameSecondary!=""&&lastNameSecondary!=""&&firstNamePrimary!=firstNameSecondary){if(nameType=="Parents")
displayString="<h2>Search for "+upperCaseName+" First and Last Names</h2>";else
displayString="<h2>Search for "+primaryName+" with "+upperCaseSecondary+" Names</h2>";displayString=displayString+"<p>"+introString+"</p>";document.write(displayString);displayString="";if((isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch))||lastNamePrimary!=lastNameSecondary){displayString="<h3>First and Last Names</h3>";document.write("<blockquote>");}
displayString=displayString+"<p style='margin-bottom: 18'>Since you provided the "+lowerCaseName+" first and last names, they "
+"are used in three combinations. Each of the three searches checks for the terms "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, in an attempt to focus on genealogy websites. Also, "
+"each search will pick up websites that might use the common misspelling of genealogy: "
+"<i>geneology</i>.</p>";document.write(displayString);displayString="<table border='0' cellpadding='0' cellspacing='0' >"
+"<tr>"
+"<td width='16' valign='top' align='left'>1.</td>"
+"<td valign='top' align='left'>This search uses the three name formats for "+primaryName+" with the "+lowerCaseSecondary+" first and last name.</td>"
+"</tr>"
+"</table>";searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+firstNameSecondary+" "+lastNameSecondary+"\""+" "+genealogySearchString();document.write(displayString);displayForm(searchFormName+"1",searchString);displayString="<table border='0' cellpadding='0' cellspacing='0' >"
+"<tr>"
+"<td width='16' valign='top' align='left'>2.</td>"
+"<td valign='top' align='left'>This search uses the three name formats for "+primaryName+" with the "+lowerCaseSecondary+" first name, middle name or initial, and last name.</td>"
+"</tr>"
+"</table>";searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+firstNameSecondary+" * "+lastNameSecondary+"\""+" "+genealogySearchString();document.write(displayString);displayForm(searchFormName+"1a",searchString);displayString="<table border='0' cellpadding='0' cellspacing='0' >"
+"<tr>"
+"<td width='16' valign='top' align='left'>3.</td>"
+"<td valign='top' align='left'>This search uses the three name formats for  "+primaryName+" with the "+lowerCaseSecondary+" last name, followed by a comma and the "+lowerCaseName+" first name.</td>"
+"</tr>"
+"</table>";searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+lastNameSecondary+", "+firstNameSecondary+"\""+" "+genealogySearchString();document.write(displayString);displayForm(searchFormName+"2",searchString);if(nameType=="Father"||nameType=="Parents"){if(isNotBlank(firstNameFather)&&isNotBlank(lastNameFather))
displayCensusSearch(firstNameFather,lastNameFather);}
else if(nameType=="Spouse")
displayTwoPersonCensusSearch(firstName,lastName,firstNameSpouse,lastNameSpouse);if(isBlank(deathPlaceSearch))
displayIntelius(firstName,lastName);if((isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch))||lastNamePrimary!=lastNameSecondary)
document.write("</blockquote>");if(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch)){document.write("<blockquote>");displayString="<h3>First and Last Names with Locations</h3>"
+"<p>If you are getting too many results, you might want to try adding the place of ";if(isNotBlank(birthPlaceSearch)){displaySubString="birth ";if(isNotBlank(deathPlaceSearch))
displaySubString=displaySubString+"or death ";}
else if(isNotBlank(deathPlaceSearch))
displaySubString="death ";displayString=displayString+displaySubString;displayString=displayString+"to the search. "
+"This might, however, cause you to overlook websites that have your ancestor information, but with no place of "
+displaySubString+"given. "
+"Nevertheless, this is a way to reduce the search results to a more manageable number. "
+"If you do not have too many results at this point, you can skip these searches.</p>";document.write(displayString);document.write("<blockquote>");if(isNotBlank(birthPlaceSearch)){displayString="<h4>First and Last Names with Place of Birth</h4>"
+"<p>The next three searches add place of birth to the three name formats. "
+addLocationModifierText('birthPlace')+"</p>";document.write(displayString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+firstNameSecondary+" "+lastNameSecondary+"\""+" "+birthPlaceSearch;displayForm(searchFormName+"3",searchString);searchString=nameSearchString(firstName,lastName)+" "+"\""+firstNameSecondary+" * "+lastNameSecondary+"\""+" "+birthPlaceSearch;displayForm(searchFormName+"4",searchString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+lastNameSecondary+", "+firstNameSecondary+"\""+" "+birthPlaceSearch;displayForm(searchFormName+"5",searchString);if(isNotBlank(deathPlaceSearch))
displayVitalCheck(firstName,lastName);else
displayIntelius(firstName,lastName);}
if(isNotBlank(deathPlaceSearch)){displayString="<h4>First and Last Names with Place of Death</h4>"
+"<p>The next three searches add place of death to the three name formats. "
+addLocationModifierText('deathPlace')+"</p>";document.write(displayString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+firstNameSecondary+" "+lastNameSecondary+"\""+" "+deathPlaceSearch;displayForm(searchFormName+"6",searchString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+firstNameSecondary+" * "+lastNameSecondary+"\""+" "+deathPlaceSearch;displayForm(searchFormName+"7",searchString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+"\""+lastNameSecondary+", "+firstNameSecondary+"\""+" "+deathPlaceSearch;displayForm(searchFormName+"8",searchString);if(isBlank(birthPlaceSearch))
displayVitalCheck(firstName,lastName);}
document.write("</blockquote>");}
document.write("</blockquote>");}
if(lastNamePrimary!=lastNameSecondary&&firstNameSecondary!=""){if(firstNameSecondary!=""&&lastNameSecondary==""&&firstNamePrimary!=firstNameSecondary){if(nameType=="Parents")
displayString="<h2>Search for Father's Names and "+upperCaseSecondary+" First Name</h2>";else
displayString="<h2>Search for "+primaryName+" with "+upperCaseSecondary+" First Name</h2>";displayString=displayString+"<p>"+introFirstName+"</p>";document.write(displayString);}
if(lastNameSecondary!=""||(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch))){displayString="<h3>"+upperCaseSecondary+" First Name</h3>";document.write("<blockquote>");displayString=displayString+"<p>";if(lastNameSecondary!="")
displayString=displayString+"It is possible that other researchers were not aware of the "+lowerCaseSecondary+" last name and therefore searching on only "
+"the first name might be best. ";document.write(displayString);}
displayString="This search uses combinations of "+primaryName+" and the "+lowerCaseSecondary+" first name.</p>"
+"<p><b>Caution:</b> You may get many results depending on how common the name is in the search. "
+"It is often best to search with first and last names. Nevertheless, if "+primaryName+" "
+"and/or the "+lowerCaseSecondary+" first name are not common, the "
+"number of results should be manageable.</p>"
+"<p>This search checks for similar terms <i>genealogy</i> and <i>ancestry</i>, along with similar terms, in an attempt to focus on genealogy websites. "
+"It will also pick up websites that use the common misspelling of genealogy: <i>geneology</i>.";if(lastNameSecondary!=""&&lastNamePrimary!=lastNameSecondary)
displayString=displayString+"The last name used above has been excluded from the search since you already searched for that name."
else
displayString=displayString+"</p>";searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+addQuotes(firstNameSecondary);if(lastNameSecondary!=""&&lastNamePrimary!=lastNameSecondary)
searchString=searchString+" -"+addQuotes(lastNameSecondary);searchString=searchString+" "+genealogySearchString();document.write(displayString);displayForm(searchFormName+"9",searchString);if(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch)){displayString="<h3>"+upperCaseSecondary+" First Name with Locations</h3>"
+"<p>If you are getting too many results, you might want to try adding the place of ";if(isNotBlank(birthPlaceSearch)){displaySubString="birth ";if(isNotBlank(deathPlaceSearch))
displaySubString=displaySubString+"or death ";}
else if(isNotBlank(deathPlaceSearch))
displaySubString="death ";displayString=displayString+displaySubString;displayString=displayString+"to the search. "
+"This might, however, cause you to overlook websites that have your ancestor information, but with no place of "
+displaySubString+"given. "
+"Nevertheless, this is a way to reduce the search results to a more manageable number. "
+"If you do not have too many results at this point, you can skip these searches.</p>";document.write(displayString);document.write("<blockquote>");if(isNotBlank(birthPlaceSearch)){displayString="<h4>First Name with Place of Birth</h4>"
+"<p>The next search adds place of birth to the search. ";if(lastNameSecondary!=""&&lastNamePrimary!=lastNameSecondary)
displayString=displayString+"The last name used above has been excluded from the search since you already searched for that name. "
+addLocationModifierText('birthPlace');else
displayString=displayString+"</p>";document.write(displayString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+addQuotes(firstNameSecondary);if(lastNameSecondary!=""&&lastNamePrimary!=lastNameSecondary)
searchString=searchString+" -"+addQuotes(lastNameSecondary);searchString=searchString+" "+birthPlaceSearch;displayForm(searchFormName+"10",searchString);}
if(isNotBlank(deathPlaceSearch)){displayString="<h4>First Name with Place of Death</h4>"
+"<p>The next search adds place of death to the search. ";if(lastNameSecondary!=""&&lastNamePrimary!=lastNameSecondary)
displayString=displayString+"The last name used above has been excluded from the search since you already searched for that name."
+addLocationModifierText('deathPlace');else
displayString=displayString+"</p>";document.write(displayString);searchString=nameSearchString(firstNamePrimary,lastNamePrimary)+" "+addQuotes(firstNameSecondary);if(lastNameSecondary!=""&&lastNamePrimary!=lastNameSecondary)
searchString=searchString+" -"+addQuotes(lastNameSecondary);searchString=searchString+" "+deathPlaceSearch;displayForm(searchFormName+"11",searchString);}
document.write("</blockquote>");}
document.write("</blockquote>");}}}
function displayOneNameSearch(){var displayString;if((firstName==""&&lastName!="")||(firstName!=""&&lastName=="")){if(firstNameFather!=""&&lastNameFather!="")
return
else if(firstNameMother!=""&&lastNameMother!="")
return
else if(firstNameSpouse!=""&&lastNameSpouse!="")
return
var personName=nameSearchString(firstName,lastName);var fatherName=nameSearchString(firstNameFather,lastNameFather);var motherName=nameSearchString(firstNameMother,lastNameMother);var spouseName=nameSearchString(firstNameSpouse,lastNameSpouse);displayString="<h2>Search for All Names</h2>"
+"<p>Presumably, you are searching far enough back that people had only one name. "
+"Otherwise, you would get much better results using first and last names for searching.</p>";document.write(displayString);if(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch)){document.write("<blockquote>");displayString="<h3>All Names and \"Genealogy\"</h3>";document.write(displayString);}
displayString="<p>This search uses all the names you provided and checks for the terms "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, in an attempt to focus on genealogy websites. "
+"It will also pick up websites that might use the common misspelling of genealogy: "
+"<i>geneology</i>.</p>";document.write(displayString);searchString=personName+" "+fatherName+" "+motherName+" "+spouseName+" "+genealogySearchString();displayForm("onenamesearch1",searchString);if(isBlank(birthPlaceSearch)&&isBlank(deathPlaceSearch))
displayIntelius(firstName,lastName);if(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch)){displayString="<h3>All Names with Locations</h3>"
+"<p>If you are getting too many results, you might want to try adding the place of ";if(isNotBlank(birthPlaceSearch)){displaySubString="birth ";if(isNotBlank(deathPlaceSearch))
displaySubString=displaySubString+"or death ";}
else if(isNotBlank(deathPlaceSearch))
displaySubString="death ";displayString=displayString+displaySubString;displayString=displayString+"to the search. "
+"This might, however, cause you to overlook websites that have your ancestor information, but with no place of "
+displaySubString+"given. "
+"Nevertheless, this is a way to reduce the search results to a more manageable number. "
+"If you do not have too many results at this point, you can skip these searches.</p>";document.write(displayString);document.write("<blockquote>");if(isNotBlank(birthPlaceSearch)){displayString="<h4>All Names with Place of Birth</h4>"
+"<p>This search adds place of birth to the names. It uses "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, "
+"including the common misspelling of genealogy: "
+"<i>geneology</i>. "
+addLocationModifierText('birthPlace')+"</p>";document.write(displayString);searchString=personName+" "+fatherName+" "+motherName+" "+spouseName+" "+genealogySearchString()+" "+birthPlaceSearch;displayForm("onenamesearch2",searchString);if(isNotBlank(deathPlaceSearch))
displayVitalCheck(firstName,lastName);else
displayIntelius(firstName,lastName);}
if(isNotBlank(deathPlaceSearch)){displayString="<h4>All Names with Place of Death</h4>"
+"<p>This search adds place of death to the names. It uses "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms,  "
+"including the common misspelling of genealogy: "
+"<i>geneology</i>.  "
+addLocationModifierText('deathPlace')+"</p>";document.write(displayString);searchString=personName+" "+fatherName+" "+motherName+" "+spouseName+" "+genealogySearchString()+" "+deathPlaceSearch;displayForm("onenamesearch3",searchString);if(isBlank(birthPlaceSearch))
displayVitalCheck(firstName,lastName);}
document.write("</blockquote>");}
document.write("</blockquote>");}}
function displayPrimaryPersonSearch(){var searchString="";var displayString="";var primaryPerson=firstName+" "+lastName;if(firstName!=""&&lastName!=""){displayString="<h2>Search for First and Last Names of "+primaryPerson+" and No Other Names</h2>";document.write(displayString);if(firstNameFather!=""||firstNameMother!=""||firstNameSpouse!=""){displayString="<p>Searching for "+primaryPerson+" and no other names might be useful if you have not been getting good results when searching with "
+"other family names. Otherwise, if the names are "
+"fairly common, you might end up with too many results.</p>";document.write(displayString);}
if(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch)){document.write("<blockquote>");displayString="<h3>First and Last Names with \"Genealogy\"</h3>";document.write(displayString);}
displayString="<p>This search uses the primary person's first and last names and checks for the terms "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, in an attempt to focus on genealogy websites. "
+"It will also pick up websites that might use the common misspelling of genealogy: "
+"<i>geneology</i>.</p>";document.write(displayString);searchString=nameSearchString(firstName,lastName)+" "+genealogySearchString();displayForm("personnamesearch1",searchString);if(isBlank(birthPlaceSearch)&&isBlank(deathPlaceSearch))
displayIntelius(firstName,lastName);if(isNotBlank(birthPlaceSearch)||isNotBlank(deathPlaceSearch)){displayString="<h3>First and Last Names with Locations</h3>"
+"<p>If you are getting too many results, you might want to try adding the place of ";if(isNotBlank(birthPlaceSearch)){displaySubString="birth ";if(isNotBlank(deathPlaceSearch))
displaySubString=displaySubString+"or death ";}
else if(isNotBlank(deathPlaceSearch))
displaySubString="death ";displayString=displayString+displaySubString;displayString=displayString+"to the search. "
+"This might, however, cause you to overlook websites that have your ancestor information, but with no place of "
+displaySubString+"given. "
+"Nevertheless, this is a way to reduce the search results to a more manageable number. "
+"If you do not have too many results at this point, you can skip these searches.</p>";document.write(displayString);document.write("<blockquote>");if(isNotBlank(birthPlaceSearch)){displayString="<h4>First and Last Names with Place of Birth</h4>"
+"<p>This search adds place of birth to the names. It uses "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, "
+"including the common misspelling of genealogy: "
+"<i>geneology</i>. "
+addLocationModifierText('birthPlace')+"</p>";document.write(displayString);searchString=nameSearchString(firstName,lastName)+" "+genealogySearchString()+" "+birthPlaceSearch;displayForm("personnamesearch2",searchString);if(isNotBlank(deathPlaceSearch))
displayVitalCheck(firstName,lastName);else
displayIntelius(firstName,lastName);}
if(isNotBlank(deathPlaceSearch)){displayString="<h4>First and Last Names with Place of Death</h4>"
+"<p>This search adds place of death to the names. It uses "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms,  "
+"including the common misspelling of genealogy: "
+"<i>geneology</i>.  "
+addLocationModifierText('deathPlace')+"</p>";document.write(displayString);searchString=nameSearchString(firstName,lastName)+" "+genealogySearchString()+" "+deathPlaceSearch;displayForm("personnamesearch3",searchString);if(isBlank(birthPlaceSearch))
displayVitalCheck(firstName,lastName);}
document.write("</blockquote>");}
document.write("</blockquote>");}}
function displayWebSites(){var displayString="";var webSiteName="";if(lastName!="")
webSiteName=lastName;else if(firstName!="")
webSiteName=firstName;if(webSiteName!=""){displayString="<h2>Search for "+webSiteName+" Websites</h2>"
+"<p>This first search will look for websites related to the name <i>"+webSiteName+"</i> "
+"when the name appears in the <u>title</u> of the website. "
+"Using only the title will help focus on websites devoted to that name. "
+"This search uses "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, in an attempt to focus on genealogy websites. "
+"It will also pick up websites that use the common misspelling of "
+"genealogy: <i>geneology</i>.</p>";document.write(displayString);searchString="allintitle: "+webSiteName+" "+genealogySearchString();displayForm("displaywebsites1",searchString);displayString="<p>This second search will look for websites related to the name <i>"+webSiteName+"</i> "
+"when the name appears anywhere in the website. "
+"This is a much broader search than the one above. "
+"Use this search if you found few websites in the previous search. "
+"If you think this is an uncommon name, you might have useful search results with the search below. "
+"On the other hand, if this is a common name, you will most likely have an overwhelming number of results. "
+"If that is the case, you are probably better off searching on first and last names for the primary person along "
+"with the first and last names of the father, mother, and spouse. "
+"This search uses "
+"<i>genealogy</i> and <i>ancestry</i>, along with similar terms, in an attempt to focus on genealogy websites. "
+"It will also pick up websites that use the common misspelling of "
+"genealogy: <i>geneology</i>.</p>";document.write(displayString);searchString=webSiteName+" "+genealogySearchString();displayForm("displaywebsites2",searchString);}}
function betterNamesNeeded(){if((firstName==""&&lastName!="")||(firstName!=""&&lastName=="")){if(firstNameSpouse!=""&&lastNameSpouse!=""){displayString="<h2>Advisory</h2><p>Since you did not provide both the first and last names for the primary person being "
+"searched, but both first and last names "
+"are available for that person\'s spouse, you will most likely have better luck searching "
+"by using the spouse. Please return to the prior page or click on the link under "
+"\"Try Different Search\" heading below to set up a different search.</p>";document.write(displayString);return true;}
else if(firstNameFather!=""&&lastNameFather!=""){displayString="<h2>Advisory</h2><p>Since you did not provide both the first and last names for the primary person being "
+"searched, but both first and last names "
+"are available for that person\'s father, you will most likely have better luck searching "
+"by using the father. Please return to the prior page or click on the link under "
+"\"Try Different Search\" heading below to set up a different search.</p>";document.write(displayString);return true;}
else if(firstNameMother!=""&&lastNameMother!=""){displayString="<h2>Advisory</h2><p>Since you did not provide both the first and last names for the primary person being "
+"searched, but both first and last names "
+"are available for that person\'s mother, you will most likely have better luck searching "
+"by using the mother. Please return to the prior page or click on the link under "
+"\"Try Different Search\" heading below to set up a different search.</p>";document.write(displayString);return true;}
else if(firstNameFather==""&&lastNameFather==""&&firstNameMother==""&&lastNameMother==""&&firstNameSpouse==""&&lastNameSpouse==""){displayString="<h2>Advisory</h2><p>You provided only one name. You will most likely have better luck searching "
+"by using more names. Please return to the prior page or click on the link under "
+"\"Try Different Search\" heading below to set up a different search.</p>";document.write(displayString);return true;}}
return false;}
function displayHeading(nameType){var primaryName="";var webSiteName="";if(firstName!=""){if(lastName!="")
primaryName=firstName+" "+lastName;else
primaryName=firstName;}
if(nameType=="New"){return"Possible Searches for "+primaryName;}
if((firstName==""&&lastName!="")||(firstName!=""&&lastName=="")){if(nameType=="OneName")
return"Search for All Names";else
return"";}
else if(nameType=="Father"){if(firstNameFather!=""&&firstNameFather!=firstName){if(lastNameFather!="")
return"Search for "+primaryName+" with Father\'s Names";else
return"Search for "+primaryName+" with Father\'s First Name";}}
else if(nameType=="Mother"){if(firstNameMother!=""&&firstNameMother!=firstName){if(lastNameMother!="")
return"Search for "+primaryName+" with Mother\'s Names";else
return"Search for "+primaryName+" with Mother\'s First Name";}}
else if(nameType=="Spouse"){if(firstNameSpouse!=""){if(lastNameSpouse!="")
return"Search for "+primaryName+" with Spouse\'s Names";else
return"Search for "+primaryName+" with Spouse\'s First Name";}}
else if(nameType=="Parents"){if(firstNameFather!=""&&lastNameFather!=""&&firstNameMother!=""&&firstNameMother!=firstName){if(lastNameMother!="")
return"Search for Parent\'s First and Last Names";else
return"Search for Father\'s Names and Mother\'s First Name";}}
else if(nameType=="Primary"){if(firstName!=""&&lastName!="")
return"Search for First and Last Names of "+primaryName+" and No Other Names";}
if(nameType=="WebSites"){if(lastName!="")
webSiteName=lastName;else if(firstName!="")
webSiteName=firstName;if(webSiteName!="")
return"Search for "+webSiteName+" Websites";}
return"";}
function displayIntroSearch(){var displayString="";displayString="<p>Shown below are suggested genealogy searches you can try on Google using the "
+"information you provided. "
+"You have the option to modify any of the suggested searches in case "
+"you see a way to improve the search.</p>"
+"If you scroll down to near the bottom of this page, "
+"you will see a listing of additional searches that can be set up "
+"under \"Select Another Search.\"</p>"
+"<p>Each search button will open a new window. This allows you to keep the search that "
+"works best for you.</p>";if(firstName!=""&&lastName!=""&&searchChoice!="WebSites"){displayString=displayString+"<p>You provided both the first name and last name of the primary person being searched. "
+"This allows searching for this person in multiple ways. Each search shown on this page will use the following common formats for the primary person's name:</p>"
+"<ul>"
+"<li>first and last name <i>(example: John Doe)</i></li>"
+"<li>first, middle initial or middle name, and last name <i>(example: John Q. Doe or John Quincy Doe)</i></li>"
+"<li>last name followed by a comma and the first name <i>(example: Doe, John)</i></li>"
+"</ul>"
+"<p>For the second type of search, a \"wildcard\" is used to indicate that any name or initial "
+"can be between the first and last name. The wildcard used by Google is an asterisk (*).</p>";}
document.write(displayString);}
function getSearchIndex(nameType){if(nameType=="Spouse")
return 1;else if(nameType=="Parents")
return 2;else if(nameType=="Father")
return 3;else if(nameType=="Mother")
return 4;else if(nameType=="Primary")
return 5;else if(nameType=="OneName")
return 6;else if(nameType=="WebSites")
return 7;return 0;}
function markSearched(nameType){var defaultIndex=0;var index=defaultIndex;var tempString="";index=getSearchIndex(nameType);if(index!=defaultIndex){tempString=searchControl.substring(0,index-1);tempString=tempString+"Y";tempString=tempString+searchControl.substring(index,searchControl.length);searchControl=tempString;}}
function alreadySearched(index){if(searchControl.charAt(index-1)=="Y")
return true;return false;}
var suggestionMade=false;function nextSuggestedSearch(index){if(searchControl.charAt(index-1)=="N"&&!suggestionMade){suggestionMade=true;return true;}
return false;}
function displaySelectionFormRow(nameType,tabIndex){var rowString="";var rowSubString="";rowSubString=displayHeading(nameType);if(isBlank(rowSubString))
return"";rowString="<tr>"
+"<td width='10' valign='top' align='left'></td>"
+"<td width='19' valign='top' align='left' style='border-left: 2 solid #E9E9E9; border-bottom: 2 solid #E9E9E9'>"
+"<input type='radio' value='"+nameType+"' name='search'";if(nextSuggestedSearch(tabIndex))
rowString=rowString+" checked ";rowString=rowString+"tabindex='"+tabIndex+"'>"
+"</td>"
+"<td width='409' valign='top' align='left' style='border-bottom: 2 solid #E9E9E9'><font face='Arial'>";rowString=rowString+rowSubString;rowString=rowString+"</font></td>"
+"<td width='144' valign='top' align='left' style='border-right: 2 solid #E9E9E9; border-bottom: 2 solid #E9E9E9'>";if(alreadySearched(tabIndex))
rowString=rowString+"<p style='margin-top: 0; margin-bottom: 0'><img border='0' src='images/checkmark.gif' align='left' width='13' height='19' alt='x'></p>";else
rowString=rowString+"<p style='margin-top: 0; margin-bottom: 0'>&nbsp;</p>";rowString=rowString+"</td>"
+"</tr>";return rowString;}
function displaySelectionForm(){var displayString="";var displaySubString="";if(searchChoice=="New")
displayString="<h2>Select a Search to Set Up</h2>";else
displayString="<h2>Select Another Search</h2>";if(searchChoice=="New")
displayString=displayString+"<p>Possible searches based on your information are shown below. "
+"The searches are shown in the order that will most likely provide the best search results. "
+"When you have completed a search, a checkmark will appear to the right of that search. "
+"This set of selections will be shown after any of your searches, near the bottom of the page. You "
+"can try as many searches as you would like. ";else
displayString=displayString+"<p>You can continue searching by making another selection. ";if(searchChoice=="WebSites")
displayString=displayString+"If you like, you can repeat any of the searches below. Another option is to search on a different person. "
+"To do that, scroll down to \"Try a Different Search,\" below. "
+"The link under that heading will return you to the form used to enter your ancestors\'s information. ";else
displayString=displayString+"A button shows the next suggested search, but you can select one of the other searches. ";displayString=displayString+"</p>";displayString=displayString
+"<form method='GET' action='genealogy-search.html' target='_top' onSubmit='' name='searchChoice'>"
+"<input type=\"hidden\" name = \"fn\"  value=\""+firstName+"\">"
+"<input type=\"hidden\" name = \"ln\"  value=\""+lastName+"\">"
+"<input type=\"hidden\" name = \"fnf\" value=\""+firstNameFather+"\">"
+"<input type=\"hidden\" name = \"lnf\" value=\""+lastNameFather+"\">"
+"<input type=\"hidden\" name = \"fnm\" value=\""+firstNameMother+"\">"
+"<input type=\"hidden\" name = \"lnm\" value=\""+lastNameMother+"\">"
+"<input type=\"hidden\" name = \"fns\" value=\""+firstNameSpouse+"\">"
+"<input type=\"hidden\" name = \"lns\" value=\""+lastNameSpouse+"\">"
+"<input type=\"hidden\" name = \"bp\"  value=\""+birthPlace+"\">"
+"<input type=\"hidden\" name = \"dp\"  value=\""+deathPlace+"\">"
+"<input type=\"hidden\" name = \"searchControl\" value=\""+searchControl+"\">"
+"<table width='570' border='0' cellpadding='2' cellspacing='0'>"
+"<tr>"
+"<td width='10' valign='top' align='left'></td>"
+"<th width='434' valign='top' align='left' colspan='2' bgcolor='#E9E9E9' style='border: 2 solid #E9E9E9'>"
+"<b><font face='Arial'>Select the search you want set up and press the button below:</font></b></th>"
+"<th valign='top' align='left' bgcolor='#E9E9E9' style='border-right: 2 solid #E9E9E9; border-top: 2 solid #E9E9E9; border-bottom: 2 solid #E9E9E9'>"
+"<img border='0' src='images/checkmark.gif' align='left' width='13' height='19' alt='x'><b><font face='Arial'>if searched</font></b></th>"
+"</tr>";displaySubString=displaySelectionFormRow("Spouse",getSearchIndex("Spouse"));displaySubString=displaySubString+displaySelectionFormRow("Parents",getSearchIndex("Parents"));displaySubString=displaySubString+displaySelectionFormRow("Father",getSearchIndex("Father"));displaySubString=displaySubString+displaySelectionFormRow("Mother",getSearchIndex("Mother"));displaySubString=displaySubString+displaySelectionFormRow("Primary",getSearchIndex("Primary"));displaySubString=displaySubString+displaySelectionFormRow("OneName",getSearchIndex("OneName"));displaySubString=displaySubString+displaySelectionFormRow("WebSites",getSearchIndex("WebSites"));if(isBlank(displaySubString))
return;else
displayString=displayString+displaySubString;displayString=displayString+"<tr>"
+"<td width='10'></td>"
+"<td width='434' colspan='2' style='border-left: 2 solid #E9E9E9; border-bottom: 2 solid #E9E9E9'><input type='submit' value='  Set up the selected search  ' onClick='leaving=false'></td>"
+"<td width='144' style='border-right: 2 solid #E9E9E9; border-bottom: 2 solid #E9E9E9'>&nbsp;</td>"
+"</tr>"
+"</table>"
+"</form><br>";document.write(displayString);document.write("<hr><h2>Search Ancestry.com</h2>");document.write("<p style='margin-bottom: 20' >Google is not the only place you can search. The following is another source of genealogical information.</p>");supersub(firstName,lastName,birthPlace,deathPlace,firstNameFather,lastNameFather,firstNameMother,lastNameMother,firstNameSpouse,lastNameSpouse);document.write("<br><br>");}
function displaySearchSetUp(nameType){displayIntroSearch();if(nameType=="Spouse"||nameType=="Parents"||nameType=="Father"||nameType=="Mother")
displayNameSearch(nameType);else if(nameType=="Primary")
displayPrimaryPersonSearch();else if(nameType=="OneName")
displayOneNameSearch()
else if(nameType=="WebSites")
displayWebSites();}
function buildSearches(){if(!betterNamesNeeded()){markSearched(searchChoice);editBirthAndDeathPlaces();setUpBirthAndDeathSearches();if(searchChoice!="New")
displaySearchSetUp(searchChoice);displaySelectionForm();}}
