function fnSetTextValue(element, valueToReplace, valueToSet)
	{
	var el = document.getElementById(element);
	if(el.value.toLowerCase().indexOf(valueToReplace.toLowerCase()) > -1) el.value = valueToSet;
	}
	
function openDonationWindow()
	{
	var donationWindow = window.open('https://www.catholicradioindy.org/secure/contribute/donation_form.aspx','donationWindow','height=600,width=700,location=no,scrollbars=yes,status=yes');
	}

function addBookMark() {
	title = document.title;
	url = location.href;
	if (window.sidebar) { // Mozilla Firefox Bookmark
		window.sidebar.addPanel(title, url,"");
	} else if( window.external ) { // IE Favorite
		window.external.AddFavorite( url, title); }
	else if(window.opera && window.print) { // Opera Hotlist
		return true; }
	}

function fnExpandCollapseSingle(targetElement) // shows and hides single items (answers to the FAQ's) on the FAQ page
	{
		target = document.getElementById(targetElement);

		if (target.style.display == "none")
			{
			target.style.display = "block";
			}
		else
			{
			target.style.display = "none";
			}
	}

function fnExpandCollapseAll(action) // shows or hides all the answers to the FAQ's
	{
		var allDivs = document.getElementsByTagName("div");  // create a list of all the divs on the page
		for (i=0; i < allDivs.length; i++)  // loop through the divs and show or hide only the ones containing answers to the FAQ's
			{
			if (allDivs[i].id.indexOf("idResponse") > -1)
				{
				if (action == "expand")
					{
					document.getElementById(allDivs[i].id).style.display = "block";
					}
				else if (action == "collapse")
					{
					document.getElementById(allDivs[i].id).style.display = "none";
					}
				}
			}
	}