var min = 7;
var max = 19;
function increaseFontSize() {
    var p = document.getElementsByTagName('td');
    for (i = 0; i < p.length; i++) {
        if (p[i].style.fontSize) {
            var s = parseInt(p[i].style.fontSize.replace("pt", ""));
        } else {
            var s = 10;
        }
        if (s != max) {
            s += 1;
        }
        p[i].style.fontSize = s + "pt"
    }
}
function decreaseFontSize() {
    var p = document.getElementsByTagName('td');
    for (i = 0; i < p.length; i++) {
        if (p[i].style.fontSize) {
            var s = parseInt(p[i].style.fontSize.replace("pt", ""));
        } else {
            var s = 10;
        }
        if (s != min) {
            s -= 1;
        }
        p[i].style.fontSize = s + "pt"
    }
}
function ClearField(theText) {
    if (theText.value == theText.defaultValue) {
        theText.value = ""
    }
}


function GoGoodSearch_4()
{
	var charityid = 835902;
	var siteURL = "socialhealth.org";
	var openNewWindow = true;
	var searchtype = document.getElementsByName("goodsearch_searchtype_4");
	var baseurl = "http://www.goodsearch.com/search.aspx";
	var keywordsbox = document.getElementById("goodsearch_keywords_4");
	if (typeof keywordsbox != "undefined")
	{
		var keywords = escape(keywordsbox.value);
		var url = baseurl + "?Keywords=" + keywords;
		if (charityid > 0)
			url += "&CharityID=" + charityid;
		if (searchtype[1].checked)
			url += "&Site=" + escape(siteURL);
		url += "&Partner=goodsearch_syn";
		url += "&typetag=" + escape(siteURL);
		if (openNewWindow)
			window.open(url,'SearchResults','height=700,width=900,location=1,status=1,toolbar=1,scrollbars=1,resizable=1');
		else
			window.location.href = url;
	}
}
function CatchEnter_4(e)
{
	var key1 = "13";
	var x = "";
	if (document.all)
	{
		var evnt = window.event;
		x = evnt.keyCode;
	}
	else
		x = e.keyCode;
	if (x == key1)
	{
		document.getElementById("goodsearch_submit_4").click();
		return false;
	}
	else
		return true;
}

