sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("TD");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

menu_status = new Array();

function showHide(theid){
    if (document.getElementById) {
    var switch_id = document.getElementById(theid);

        if(menu_status[theid] != 'show') {
           switch_id.className = 'show';
           menu_status[theid] = 'show';
        }else{
           switch_id.className = 'hide';
           menu_status[theid] = 'hide';
        }
    }
}

function verifyOne(f,nt,d)
{
	var n;
	for (n = 0; n < f.length; n++)
		if (f[n] && f[n].name == nt && f[n].value != d) return true;
	return false;
}
function check501c3(f)
{
	//var f = document.forms["register"];
	if (!verifyOne(f, "501c3", 'N')) {
		alert("Town Creek only accepts proposals from 501 © (3) organizations.");
		return false;
	}
}
