function spellingTitle( newName )
{
	// make an array of all <h1> tags
	var h1Tags = document.getElementsByTagName('h1');
	
	// change <title> tag to new name
	document.title = newName;

	// change article title (second <h1> tag) to new name
	h1Tags[1].innerHTML = newName ;
}

function spellingListItem( oldName, newName )
{
	var content = document.getElementById('content');

	// Get all links in the content area
	var linkList = content.getElementsByTagName('a');

	// check all list links for old name
	for( i = 0; i < linkList.length; i++ )
	{
		if( linkList[i].innerHTML == oldName )
		{
			// if old name is found, replace it with new name
			linkList[i].innerHTML = newName;
		}
	}
}


