var t,len,len2,lenCont0,lenCont1,wildcard,strSearch,strSearchCont0,strSearchCont1,strSearch2,xmlhttp=null,xmlhttpP=null,results=false,w=window,h=history,d=document;
function dtaLoad(){if(w.ActiveXObject)try{xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");xmlhttpP=new ActiveXObject("Msxml2.XMLHTTP")}catch(c){try{xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");xmlhttpP=new ActiveXObject("Microsoft.XMLHTTP")}catch(k){xmlhttpP=xmlhttp=false;alert("Your internet browser is unable to search this database. Suitable browsers include recent versions of Internet Explorer, Firefox and Safari.");w.h.length&&w.h.back();return}}else if(w.XMLHttpRequest)try{xmlhttp=new XMLHttpRequest;
xmlhttp.overrideMimeType("text/xml");xmlhttpP=new XMLHttpRequest;xmlhttpP.overrideMimeType("text/xml")}catch(i){xmlhttpP=xmlhttp=false;alert("Your internet browser is unable to search this database. Suitable browsers include recent versions of Internet Explorer, Firefox and Safari.");w.h.length&&w.h.back();return}else{alert("Your internet browser is unable to search this database. Suitable browsers include recent versions of Internet Explorer, Firefox and Safari.");w.h.length&&w.h.back();return}if(xmlhttp&&
xmlhttpP){xmlhttpP.open("GET","tblp.xml",true);xmlhttpP.send(null);d.getElementById("strQry").value="";d.getElementById("strQry2").value="";d.getElementById("dbType")[0].selected=true;d.getElementById("strQry").focus();xmlhttp.open("GET","shipping.xml",true);xmlhttp.send(null);d.getElementById("btnGo").disabled=false}else{alert("Your internet browser is unable to search this database. Suitable browsers include recent versions of Internet Explorer, Firefox and Safari.");w.h.length&&w.h.back()}}
function changeSelection(){if(d.getElementById("dbType").value=="v"){d.getElementById("strMain").innerHTML="<b>&nbsp;&nbsp;&nbsp;ship&nbsp;name</b>";d.getElementById("strOr").innerHTML="<b><u>or</u></b>";d.getElementById("strGiven").innerHTML="<b>&nbsp;&nbsp;arrival&nbsp;date</b><sup>&nbsp;(yyyy&minus;mm&minus;dd)</sup>";d.getElementById("strQry2").value="";d.getElementById("blnSortDate").disabled=false;d.getElementById("blnSDL").disabled=false;d.getElementById("blnSortDateDec").disabled=false;d.getElementById("blnSDLD").disabled=
false}else if(d.getElementById("dbType").value=="pl"){d.getElementById("strMain").innerHTML="<b>ship&nbsp;name</b><sup>&nbsp;(required)</sup>";d.getElementById("strOr").innerHTML="";d.getElementById("strGiven").innerHTML="<b>arrival&nbsp;date</b>&nbsp;<sup>(yyyy&minus;mm&minus;dd)</sup>";d.getElementById("blnSortAlpha").checked="checked";d.getElementById("blnSortDate").disabled="disabled";d.getElementById("blnSDL").disabled="disabled";d.getElementById("blnSortDateDec").disabled="disabled";d.getElementById("blnSDLD").disabled=
"disabled"}else{d.getElementById("strMain").innerHTML="<b>surname</b><sup>&nbsp;(required)</sup>";d.getElementById("strOr").innerHTML="";d.getElementById("strGiven").innerHTML="<b>given&nbsp;name</b><sup>&nbsp;(optional)</sup>";d.getElementById("strQry2").value="";d.getElementById("blnSortDate").disabled=false;d.getElementById("blnSDL").disabled=false;d.getElementById("blnSortDateDec").disabled=false;d.getElementById("blnSDLD").disabled=false}d.getElementById("strQry").focus()}
function findQuery(){var c=d.getElementById("strQry").value.length;if(c>28)c=28;var k=d.getElementById("strQry2").value.length;if(k>24)k=24;var i=d.getElementById("strQry").value.toUpperCase(),a=d.getElementById("strQry2").value.toLowerCase();d.getElementById("btnGo").disabled="disabled";d.body.style.cursor="default";d.getElementById("htmlProgress").innerHTML="";len2=lenCont1=lenCont0=len=0;strSearch2=strSearchCont1=strSearchCont0=strSearch="";for(var e=wildcard=0;e<c;e++)if(i.charAt(e)>="A"&&i.charAt(e)<=
"Z"||i.charAt(e)=="'"||i.charAt(e)=="-"||i.charAt(e)==" "||i.charAt(e)=="*"){strSearch+=i.charAt(e);len++}for(e=0;e<len;e++){switch(wildcard){case 0:if(strSearch.charAt(e)=="*")break;strSearchCont0+=strSearch.charAt(e);lenCont0++;break;case 1:if(strSearch.charAt(e)=="*")break;strSearchCont1+=strSearch.charAt(e);lenCont1++;break;default:if(strSearch.charAt(e)=="*")break;strSearchCont1+=strSearch.charAt(e);lenCont1++;break}strSearch.charAt(e)=="*"&&wildcard++}len=lenCont0+lenCont1;for(e=0;e<k;e++)if(a.charAt(e)>=
"a"&&a.charAt(e)<="z"||a.charAt(e)>="0"&&a.charAt(e)<="9"||a.charAt(e)==" "||a.charAt(e)=="-"||a.charAt(e)=="'"){strSearch2+=a.charAt(e);len2++}if(d.getElementById("dbType").value=="p"&&(len<3&&strSearch!="EY"||len2==1||len2==2)){d.getElementById("strResult").innerHTML="<table border='0' cellspacing='0'><tr><th class='error'>Data Entry Error</th></tr><tr><td class='error'>Fill in the <b>surname</b> box with at least 3 characters of the name to be found. If using the <b>given name</b> box, at least 3 characters are required. If only initials are known, leave the given name box blank.<br/>";
d.getElementById("btnGo").disabled=false;d.getElementById("strQry").focus()}else if(d.getElementById("dbType").value=="pl"&&(len<3||len2==1||len2==2)){d.getElementById("strResult").innerHTML="<table border='0' cellspacing='0'><tr><th class='error'>Data Entry Error</th></tr><tr><td class='error'>Fill in the <b>ship name</b> box with at least 3 characters of the name to be found. If using the <b>arrival date</b> box, at least 3 characters are required.</td></tr></table><br/>";d.getElementById("btnGo").disabled=
false;d.getElementById("strQry").focus()}else if(d.getElementById("dbType").value=="v"&&(len<3&&len2==0||len2<3&&len==0||len<3&&len2<3)){d.getElementById("strResult").innerHTML="<table border='0' cellspacing='0'><tr><th class='error'>Data Entry Error</th></tr><tr><td class='error'>Fill in the <b>ship name</b> box with at least 3 characters of the name to be found and/or the <b>arrival date</b> box with at least 3 characters of the date to be found.</td></tr></table><br/>";d.getElementById("btnGo").disabled=
false;d.getElementById("strQry").focus()}else{d.getElementById("htmlProgress").innerHTML="Downloading the indexes ...";if(d.getElementById("blnSound").checked)strSearch=calculateSound(strSearch);xmlhttp.onreadystatechange=checkReadyState;xmlhttpP.onreadystatechange=checkReadyState;if(xmlhttp.readyState==4&&xmlhttpP.readyState==4&&xmlhttp.status=="200"&&xmlhttpP.status=="200"){d.body.style.cursor="progress";d.getElementById("htmlProgress").innerHTML="Searching ...";t&&w.clearTimeout(t);t=w.setTimeout("runSearch()",
200)}}}
function checkReadyState(){if(xmlhttp.readyState==4&&xmlhttpP.readyState==4&&xmlhttp.status=="200"&&xmlhttpP.status=="200"){d.body.style.cursor="progress";d.getElementById("htmlProgress").innerHTML="Searching ...";t&&w.clearTimeout(t);t=w.setTimeout("runSearch()",200)}else if(xmlhttp.readyState==4&&xmlhttpP.readyState==4&&(xmlhttp.status!="200"||xmlhttpP.status!="200")){d.body.style.cursor="default";alert("A fatal error occurred while loading the index. Please contact us to report this error.");w.h.length&&
w.h.back()}}
function runSearch(){var c=0,k=0,i=len+1,a="",e="",v="",u="",E,F,A,B,C,g=[],r="",s=xmlhttp.responseXML;r=s.getElementsByTagName("r");var m=s.getElementsByTagName("n"),o=s.getElementsByTagName("d"),p=s.getElementsByTagName("f");v=s.getElementsByTagName("m");u=s.getElementsByTagName("t");s=m.length;a=xmlhttpP.responseXML;var D=a.getElementsByTagName("n"),l=a.getElementsByTagName("s"),x=a.getElementsByTagName("r"),G=D.length,y=d.getElementById("blnSortAlpha").checked,n;if(d.getElementById("blnWildcards").checked)n=0;
else if(d.getElementById("blnExact").checked)n=1;else if(d.getElementById("blnSound").checked)n=2;if(strSearch=="EY")n=1;if(d.getElementById("dbType").value=="v")for(var b=0;b<s;){a=m[b].firstChild.nodeValue.toUpperCase();e=o[b].firstChild.nodeValue.toLowerCase();if(n){for(var f=0,j=a.charAt(0);j&&j!=" "&&j!=","&&j!="/";){f++;j=a.charAt(f)}a=n==2?calculateSound(a.substr(0,f)):a.substr(0,f);wildcard||(lenCont0=f);len||(a="")}j=a.indexOf(strSearchCont0);if((!n&&j>=0&&a.indexOf(strSearchCont1,j+lenCont0-
1)>=0||n==1&&a.substr(0,lenCont0)==strSearchCont0&&a.substr(a.length-lenCont1,lenCont1)==strSearchCont1||n==2&&a==strSearch)&&e.indexOf(strSearch2)>=0)if(m[b].firstChild.nodeValue!="-"){if(y){g[c]="<b><i>"+m[b].firstChild.nodeValue+"</i></b> ";if(u[b].firstChild.nodeValue!="-")g[c]+="("+u[b].firstChild.nodeValue+") ";g[c]+="arrived "+o[b].firstChild.nodeValue;if(p[b].firstChild.nodeValue!="-")g[c]+=" from "+p[b].firstChild.nodeValue}else{g[c]=o[b].firstChild.nodeValue+" arrival of <b><i>"+m[b].firstChild.nodeValue+
"</i></b> ";if(u[b].firstChild.nodeValue!="-")g[c]+="("+u[b].firstChild.nodeValue+") ";if(p[b].firstChild.nodeValue!="-")g[c]+="from "+p[b].firstChild.nodeValue}if(v[b].firstChild.nodeValue!="-")g[c]+=", Capt "+v[b].firstChild.nodeValue;g[c]+="<br/>";c++}b++}else if(d.getElementById("dbType").value=="p"){if(len==2){if(n){if(n==2)k=2}else k=1;d.getElementById("blnExact").checked="checked"}for(f=0;f<G;){a=D[f].firstChild.nodeValue;v=a.toLowerCase();u=l[f].firstChild.nodeValue;j=a.indexOf(strSearchCont0);
var z=u.indexOf(strSearchCont0);if(n)if(n==2){var q=0;for(j=a.charAt(0);j&&j!=" "&&j!=","&&j!="/";){q++;j=a.charAt(q)}if(calculateSound(a.substr(0,q))==strSearch&&v.indexOf(strSearch2,i)>=0)for(b=0;b<s;){if(r[b].firstChild.nodeValue==x[f].firstChild.nodeValue){if(y){g[c]=a;if(m[b].firstChild.nodeValue!="-"){g[c]+=" arrived "+o[b].firstChild.nodeValue+" on <i>"+m[b].firstChild.nodeValue+"</i>";g[c]+=p[b].firstChild.nodeValue!="-"?" from "+p[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+
"]<br/>":" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else g[c]+=" arrived by "+o[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else if(m[b].firstChild.nodeValue!="-"){g[c]=o[b].firstChild.nodeValue+" arrival of "+a+" on <i>"+m[b].firstChild.nodeValue+"</i>";g[c]+=p[b].firstChild.nodeValue!="-"?" from "+p[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>":" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else g[c]=o[b].firstChild.nodeValue+" or earlier arrival of "+
a+" [Source:"+l[f].firstChild.nodeValue+"]<br/>";c++;break}b++}}else{if(n==1){q=0;for(j=a.charAt(0);j&&j!=" "&&j!=","&&j!="/";){q++;j=a.charAt(q)}wildcard||(lenCont0=q);if(a.substr(0,lenCont0)==strSearchCont0&&a.substr(q-lenCont1,lenCont1)==strSearchCont1&&v.indexOf(strSearch2,i)>=0)for(b=0;b<s;){if(r[b].firstChild.nodeValue==x[f].firstChild.nodeValue){if(y){g[c]=a;if(m[b].firstChild.nodeValue!="-"){g[c]+=" arrived "+o[b].firstChild.nodeValue+" on <i>"+m[b].firstChild.nodeValue+"</i>";g[c]+=p[b].firstChild.nodeValue!=
"-"?" from "+p[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>":" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else g[c]+=" arrived by "+o[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else if(m[b].firstChild.nodeValue!="-"){g[c]=o[b].firstChild.nodeValue+" arrival of "+a+" on <i>"+m[b].firstChild.nodeValue+"</i>";g[c]+=p[b].firstChild.nodeValue!="-"?" from "+p[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>":" [Source:"+l[f].firstChild.nodeValue+
"]<br/>"}else g[c]=o[b].firstChild.nodeValue+" or earlier arrival of "+a+" [Source:"+l[f].firstChild.nodeValue+"]<br/>";c++;break}b++}}}else if((j>=0&&a.indexOf(strSearchCont1,j+lenCont0-1)>=0||z>=0&&u.indexOf(strSearchCont1,z+lenCont0-1)>=0)&&v.indexOf(strSearch2,i)>=0)for(b=0;b<s;){if(r[b].firstChild.nodeValue==x[f].firstChild.nodeValue){if(y){g[c]=a;if(m[b].firstChild.nodeValue!="-"){g[c]+=" arrived "+o[b].firstChild.nodeValue+" on <i>"+m[b].firstChild.nodeValue+"</i>";g[c]+=p[b].firstChild.nodeValue!=
"-"?" from "+p[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>":" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else g[c]+=" arrived by "+o[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>"}else if(m[b].firstChild.nodeValue!="-"){g[c]=o[b].firstChild.nodeValue+" arrival of "+a+" on <i>"+m[b].firstChild.nodeValue+"</i>";g[c]+=p[b].firstChild.nodeValue!="-"?" from "+p[b].firstChild.nodeValue+" [Source:"+l[f].firstChild.nodeValue+"]<br/>":" [Source:"+l[f].firstChild.nodeValue+
"]<br/>"}else g[c]=o[b].firstChild.nodeValue+" or earlier arrival of "+a+" [Source:"+l[f].firstChild.nodeValue+"]<br/>";c++;break}b++}f++}if(k==1)d.getElementById("blnWildcards").checked="checked";else if(k==2)d.getElementById("blnSound").checked="checked"}else if(d.getElementById("dbType").value=="pl")for(b=0;b<s;){a=m[b].firstChild.nodeValue.toUpperCase();e=o[b].firstChild.nodeValue.toLowerCase();z=a.length;wildcard||(lenCont0=z);if(n){q=0;for(j=a.charAt(0);j&&j!=" "&&j!=","&&j!="/";){q++;j=a.charAt(q)}a=
n==2?calculateSound(a.substr(0,q)):a.substr(0,q)}j=a.indexOf(strSearchCont0);if((!n&&j>=0&&a.indexOf(strSearchCont1,j+lenCont0-1)>=0||n==1&&a.substr(0,lenCont0)==strSearchCont0&&a.substr(q-lenCont1,lenCont1)==strSearchCont1||n==2&&a==strSearch)&&e.indexOf(strSearch2)>=0){E=m[b].firstChild.nodeValue;F=o[b].firstChild.nodeValue;A=p[b].firstChild.nodeValue;B=v[b].firstChild.nodeValue;C=u[b].firstChild.nodeValue;for(f=0;f<G;){if(r[b].firstChild.nodeValue==x[f].firstChild.nodeValue){g[c]=D[f].firstChild.nodeValue+
" [Source:"+l[f].firstChild.nodeValue+"]<br/>";c++}f++}if(c)break}b++}else{alert("Fatal if/else error. Please contact us to report this error.");w.h.length&&w.h.back();return}if(c){if(d.getElementById("dbType").value!="pl"){g.sort();d.getElementById("blnSortDateDec").checked&&g.reverse();results=true}r='<h3 class="results">Search results <span style="font-size:13px; font-weight:normal;">(total of '+c+")</span></h3>";if(d.getElementById("dbType").value=="pl"){r='<h3 class="results">Passengers arriving '+
F+" on the <i><b>"+E+"</b></i></h3>";if(C!="-")r+=" ("+C+")";if(A!="-")r+=" from "+A;if(B!="-")r+=", Capt "+B;r+="<br/>"}for(b=0;b<c;b++)r+=g[b];d.getElementById("strResult").innerHTML=r+'<br /><h3 class="results">Abbreviations used in the results</h3>If there is no given name or title, Mr is implied.<br/>[Source:1,2, ...]&nbsp;=&nbsp;sources of the information as listed separately below<br/>aft = soon after, arr = arrived / arrival, dep&nbsp;=&nbsp;departed / departure<br/>brq = barque, schn = schooner, ot = old tons, t = tons<br/>b = born, m = married / male, d = died, f = female, fmly = formerly<br/>Alf = Alfred, Art = Arthur, Ben = Benjamin, Bgt = Bridget, Crln&nbsp;=&nbsp;Caroline, Cath&nbsp;=&nbsp;Catherine, Chas&nbsp;=&nbsp;Charles, Chlt&nbsp;=&nbsp;Charlotte<br/>ch = children, dau&nbsp;=&nbsp;daughter(s)<br/>Dan = Daniel, Ed = Edward, Elis = Elisabeth, Eliz&nbsp;=&nbsp;Elizabeth, Em&nbsp;=&nbsp;Emma<br />Fdk = Frederick, Fried&nbsp;=&nbsp;Friedrich, Geo&nbsp;=&nbsp;George, Hrt&nbsp;=&nbsp;Harriet, Hein&nbsp;=&nbsp;Heinrich, Hy&nbsp;=&nbsp;Henry<br/>Jas = James, J = Johann, Ja&nbsp;=&nbsp;Johanna, Je&nbsp;=&nbsp;Johanne, Kath&nbsp;=&nbsp;Katherine<br/>inc = including, jnr&nbsp;=&nbsp;junior, snr&nbsp;=&nbsp;senior, Nat&nbsp;=&nbsp;Naturalisation, n&nbsp;=&nbsp;nee<br/>Mgt = Margaret, Mtn&nbsp;=&nbsp;Martin, My = Mary, Ptk&nbsp;=&nbsp;Patrick, Rd&nbsp;=&nbsp;Richard, Rbt&nbsp;=&nbsp;Robert<br />prev = previous, prob&nbsp;=&nbsp;probably; svnt = servant(s);<br/>Sam = Samuel, Thos&nbsp;=&nbsp;Thomas, Whm&nbsp;=&nbsp;Wilhelm, Wm&nbsp;=&nbsp;William<br/>(w) = widowed - lower case w. Note that (W) is a doubtful given name initial W<br /><br />';
d.getElementById("htmlProgress").innerHTML="View the results below..."}else{d.getElementById("strResult").innerHTML="<h3 class='results'>Search results <span style='font-size:13px; font-weight:normal;'>(total of 0)</span></h3><br />";d.getElementById("htmlProgress").innerHTML="There are no results to view.";results=false}d.getElementById("strQry").disabled||d.getElementById("strQry").focus();d.body.style.cursor="default";d.getElementById("btnGo").disabled=false}
function calculateSound(c){var k="",i="";k=c.length;for(var a=0;a<k;a++){var e=c.charAt(a);if(e=="P"||e=="F"||e=="V")i+="1";else if(e=="B"){if(c.substr(k-2,2)!="MB"&&c.substr(k-3,3)!="MBE"&&c.substr(k-4,4)!="MBES"&&c.substr(k-3,3)!="MBS")i+="1"}else if(e=="C"||e=="S"||e=="K"||e=="G"&&!(a==k-1&&c.charAt(k-2)=="N")&&!(a==k-2&&c.charAt(k-1)=="N")||e=="J"||e=="Q"||e=="X"||e=="Z")i+="2";else if(e=="D"||e=="T")i+="3";else if(e=="L")i+="4";else if(e=="M"||e=="N"){if(a==1&&e=="N"&&(c.charAt(0)=="G"||c.charAt(0)==
"K"||c.charAt(0)=="P"))i="5";else i+="5";if(a==0&&c.charAt(1)=="C"&&e=="M")i+="0"}else if(e=="R")i+="6";else if(e=="H"){if(a>1&&c.charAt(a-1)=="G"&&(c.charAt(a-2)=="A"||c.charAt(a-2)=="I"||c.charAt(a-2)=="O"||c.charAt(a-2)=="U"))i=i.substring(0,i.length-1)}else if(e=="W"||e=="Y")if(a==0&&(e=="W"&&c.charAt(1)!="R"||e=="Y"))i+="9";else{if(e=="Y")i+="0"}else if((e=="A"||e=="I"||e=="O")&&(a>0||a==0&&c.charAt(1)!="'")||a!=k-1&&e=="E"||e=="I"||e=="U")i+="0"}k=i.charAt(0);strSoundLen=i.length;for(a=1;a<
strSoundLen;a++)if(i.charAt(a)!=i.charAt(a-1))k+=i.charAt(a);return k}function clearForm(){d.getElementById("htmlProgress").innerHTML="";d.getElementById("strResult").innerHTML=""}
function displayHelp(){var c="";c=results?"<br /><br />"+d.getElementById("strResult").innerHTML:"";d.getElementById("strResult").innerHTML="<h3 class='results'>Searching the shipping passenger list collection</h3>From the drop-down list, select the type of search you require. <b>Passenger arrivals</b> allows you to search all of the passenger lists for a particular person or family. <b>Passenger lists</b> allows you to search for the full passenger list of a particular ship's voyage. <b>Shipping arrivals</b> gives the arrival date, port &amp; date of departure, captain, tonnage, rig and date built for a particular ship, voyage, or all the ship arrivals for a particular day (yyyy-mm-dd), month (yyyy-mm), year (yyyy) or decade (yyy).<p class='block' style='padding-top:0.6em;'>The first search performed after initially opening the search form may be slower than subsequent ones as the large indexes must load before your first request can be processed (about 5 minutes with a dial-up connection, 1 min with adsl broadband, 15 sec with adsl2+ or cable). Progress is reported at the bottom of the search form.</p><h4>Text entry</h4>At least 3 allowed characters must be entered into the surname (or ship name) box before a search can proceed.<br/>A given name is optional, but if used, at least 3 characters are required. Given name initials cannot be used.<br/>The search is not case sensitive.<br/>The only characters allowed are letters of the alphabet, hyphens, spaces, apostrophes and no more than one * wildcard. Any other entered characters are ignored. In particular, the <b>?</b> wildcard and the logical operators (and, or, not, &amp;, |, &lt;, >, +, -) cannot be used.<br/><br/><h4>Searching for a name</h4>The default (and generally most satisfactory) method of searching for a name is the wildcards method. Select [Wildcards] by clicking it, if necessary. Then enter into the surname (or ship name) box, sufficient letters to define the name to be found. Optionally, enter a given name. Click the [ <b>Go</b> ] button or press the [Enter] key to begin the search. If the name you wish to find is not in the database, take into account possible spelling variations, as the people and the officials recording their information were often illiterate or semiliterate.<br/>It is advisable to omit surname prefixes such as O' and Mac so that the usual variations of spelling these names are all found. <br/>The search behaves as though you have entered a * wildcard at each end of your search text. That is, the search engine looks for the exact text you have entered anywhere within the name. For example, if you search for <b>hill</b>, several different names will be found, including <b>hill</b>, <b>hill</b>man, up<b>hill</b> and p<b>hill</b>ips, amongst others. This feature has the annoyance of giving some unwanted names but can be very useful. For example, searching for <b>phil</b> will give philp, philip and phillips, amongst others. This allows you to take into account some likely mis-spellings or variations of the name of interest. If required, one * wildcard can be added within the text to replace zero or more unknown or doubtful characters. For example, searching for r<b>e*</b>d will give r<b>ea</b>d, r<b>ee</b>d and r<b>ei</b>d. Searching for sm*th will give sm<b>i</b>th, sm<b>y</b>th and sm<b>y</b>the, amongst others.<br/>The [Clear] button clears both boxes and places the cursor in the left hand box, ready for your next search. It also clears any displayed results and replaces them with this help text.<br/><br/><h4>Searching for names using exact matching</h4>If you only wish to find surnames (or ship names) with exactly the same spelling as you have entered, select [Exact] by clicking it, if necessary. Note, however, that the database contains spelling variants separated by slashes for some names. With exact matching, only the first variant is compared with your entered text. In this case, the method may not be satisfactory. If required, one * wildcard can be added in any position to replace zero or more unknown or doubtful characters. For example, searching for sm*th will give sm<b>i</b>th and sm<b>y</b>th but not smythe.<br/>Exact matching of given names is not available. Any entered given name will be matched by the wildcards method.<br/><br/><h4>Searching for names using sound matching</h4>If the above techniques fail, as a last resort you may wish to try the sound method of matching. This will allow you to find more variations of spelling and also take into account the pronunciation of the surname (or ship name). For example, searching for smythe will give smith, smyth, smythe, and schmidt, amongst others. The method used here is a heavily modified version of Soundex code matching which doesn't require the 1st letter of the name to be known and takes into account the full name, not just the beginning of a long name. It also takes account of such pronunciation variations as dropped h's and g's. You must be prepared to scan the results and reject those which are poor matches. For some shorter names, ones with mainly vowels, and names containing spaces, all the results may be unsatisfactory.<br/>To use sound matching, select [Sound] before clicking [ <b>Go</b> ] or pressing [Enter]. You must enter the full surname required. Wildcards are not permitted.<br/>Sound matching of given names is not available. Any entered given name will be matched by the wildcards method."+c+
"<br /><br />";d.getElementById("strQry").disabled||d.getElementById("strQry").focus()};