function getbbword(bbletter) {
var xmlDoc;
var bbname="bbwords"+bbletter+".xml";
if (window.XMLHttpRequest)
  {
  xmlDoc=new window.XMLHttpRequest();
  xmlDoc.open("GET",bbname,false);
  xmlDoc.send("");
  xmlDoc=xmlDoc.responseXML;
  }
// IE 5 and IE 6
else if (ActiveXObject("Microsoft.XMLDOM"))
  {
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async=false;
  xmlDoc.load(bbname);
  }

var innerstr="";
innerstr="Select a word from the list below:<br />";
var x=xmlDoc.getElementsByTagName("wordset");
//alert("about to gen word list");
var i;
for (i=0;i<x.length;i++)
  {   
  innerstr+="<a href=\"#\" onclick=\"showword(\'";
  innerstr+=x[i].getElementsByTagName("word")[0].childNodes[0].nodeValue;
  innerstr+="\', \'";
  innerstr+=x[i].getElementsByTagName("wave")[0].childNodes[0].nodeValue;
  innerstr+="\', \'";
  innerstr+=x[i].getElementsByTagName("pro")[0].childNodes[0].nodeValue;
  innerstr+="\')\">";
  innerstr+=x[i].getElementsByTagName("word")[0].childNodes[0].nodeValue+"</a>";
  if (i+1 != x.length)innerstr+=", ";
  }
document.getElementById("bbwords").innerHTML=innerstr;
}
function showword(word, wave, pro) {
	var innerstr="";
	innerstr+="<h1>"+word+"</h1>\r\n";
	innerstr+="<ul><b>"+pro+"</b> <a href=\"#\" onclick=\"explain()\">(explain phonetic representation)</a>\r\n";
	innerstr+="<br /><i>Hear it: </i>  <embed src=\"http:\/\/netministries.org/BBasics/bbw/"+wave+".wav\"";
	innerstr+="AUTOSTART=TRUE WIDTH=50 HEIGHT=15 CONTROLS=smallconsole>";
	innerstr+="<font size=1><a href=\"/BBasics/bbw/"+wave+".wav\">[.wav file]</a></font></ul>\r\n";
	innerstr+="<hr />Search for "+word+" using: \r\n";
	innerstr+="<ul><li>";
	innerstr+="<a href=\"/easton/easton.htm?name="+word+"\" target=\"_self\">";
	innerstr+="Easton's Bible Dictionary</a></li>\r\n"
	innerstr+="<li><a href=\"/hbnd/hitchcock.htm?name="+word+"\" target=\"_self\">";
	innerstr+="Hitchcock's Bible Names Dictionary</a></li>\r\n";
	innerstr+="<li><a href=\"/naves/naves.htm?name="+word+"\" target=\"_self\">";
	innerstr+="Naves Topical Bible</a></li>\r\n";
	innerstr+="<li><a href=\"/smiths/smiths.htm?name="+word+"\" target=\"_self\">";
	innerstr+="Smith's Bible Names Dictionary</a></li>\r\n";
	innerstr+="</ul>";
	document.getElementById("bbwords").innerHTML=innerstr;
}

function showref(url, scrollh, scrollv) {
}

function explain() {
	var innerstr="";
	innerstr+="<h2>Explanation of Phonetic Representation of Pronunciations</h2>\r\n";
	innerstr+="<br>Phonetics are commonly used as a way to represent the sounds required for each syllable in a word.  Dictionaries use a complex method of letters, symbols, and markings to represent the pronunciation.  In the English alphabet there are approximately 39 sounds that can be made although there are only 26 letters. To represent these sounds on the computer screen, the following standards, which do not require special symbols, are being used.  Each symbol is followed by common words which exemplify the sound.<p>\r\n";
	innerstr+="<h4>Vowel Sounds:</h4><ul>\r\n";
	innerstr+="<li>EE - eat, beet, neat\r\n";
	innerstr+="</li><li>IH - bit, hit\r\n";
	innerstr+="</li><li>AY - ace, hey, day</li><li>EH - bread, Fred, Ted\r\n";
	innerstr+="</li><li>A - cat, sat</li><li>AH - car, far";
	innerstr+="</li><li>AW - law, saw</li><li>O - home, coat";
	innerstr+="</li><li>OU - book, took, hook</li><li>OO - moon, spoon\r\n";
	innerstr+="</li><li>UH - cut, nut, love</li><li>ER - bird, heard\r\n";
	innerstr+="</li><li>EHR - air, tear, fair</li><li>AI - ice, nice, fly\r\n"
	innerstr+="</li><li>AU - out, shout, down</li><li>OI - boy, coin</li></ul>";
	innerstr+="<h4>Consonant Sounds:</h4>\r\n";
	innerstr+="Consonants sound as the letter normally sounds with these exception:\r\n";
	innerstr+="<ul><li>G - (hard G) gun, lug</li><li>ZH - garage, mirage, lodge</li>\r\n ";
	innerstr+="<li>TSH - church, chance, cheep</li></ul>\r\n";
	innerstr+="<h4>Syllable Emphasis</h4>\r\n";
	innerstr+="The syllable on which to put the emphasis, is shown in CAPITAL LETTERS.\r\n";
	document.getElementById("bbwords").innerHTML=innerstr;
}