function GoToFund() {

	var selFund;
	var fundLink;
	
	selFund=document.getElementById('fundtype').value;

	switch(selFund) {
		case "General Endowment Funds":
			fundLink="fundlist.php#General_Endowment";
			break;	
		case "Community Funds":
			fundLink="fundlist.php#Community_Funds";
			break;
		case "Endowed Funds":
			fundLink="fundlist.php#Endowed_Funds";
			break;
		case "Family Heritage Funds":
			fundLink="fundlist.php#Family_Funds";
			break;
		case "Pass-through Funds":
			fundLink="fundlist.php#Passthrough_Funds";
			break;
		case "Scholarship Funds":
			fundLink="fundlist.php#Scholarship_Funds";
			break;
		case "School Funds":
			fundLink="fundlist.php#School_Funds";
			break;
		case "Temporary Funds":
			fundLink="fundlist.php#Temporary_Funds";
			break;
		default:
			alert ("Unable to find fund.");
			fundLink="#List_of_Funds";
	}
	
	window.open(fundLink, '_self');	
}

function GoToGift() {

	var selGift;
	var giftLink;
	
	selGift=document.getElementById('gifttype').value;

	switch(selGift) {
		case "Cash and Non-Appreciating Properties":
			giftLink="giftplanning.php#Cash_And_Non-Appreciating_Properties";
			break;	
		case "Appreciated Securities and Real Estate":
			giftLink="giftplanning.php#Appreciated_Securities_and_Real_Estate";
			break;	
		case "Ordinary Income and Short-Term Capital Gains Property":
			giftLink="giftplanning.php#Ordinary_Income_and_Short-Term_Capital_Gains_Property";
			break;	
		case "Bargain Sale":
			giftLink="giftplanning.php#Bargain_Sale";
			break;	
		case "Charitable Remainder Trusts":
			giftLink="giftplanning.php#Charitable_Remainder_Trusts";
			break;
		case "Q-Tip Charitable Remainder Trusts":
			giftLink="giftplanning.php#Q-Tip_Charitable_Remainder_Trusts";
			break;
		case "Charitable Remainder Interest in a Residence or Farm":
			giftLink="giftplanning.php#Charitable_Remainder_Interest_in_a_Residence_or_Farm";
			break;
		case "Charitable Lead Trusts":
			giftLink="giftplanning.php#Charitable_Lead_Trusts";
			break;
		case "Retirement Plan Beneficiary Designation":
			giftLink="giftplanning.php#Retirement_Plan_Beneficiary_Designation";
			break;
		case "Life Insurance Beneficiary Designation":
			giftLink="giftplanning.php#Life_Insurance_Beneficiary_Designation";
			break;
		default:
			alert ("Unable to find gift.");
			giftLink="#Gifts_&_Estate_Planning";
	}
	
	window.open(giftLink, '_self');	
}

function GoToProgram() {

	var progYear;
	var progLink;
	
	progYear=document.getElementById('program').value;

	switch(progYear) {
		case "select year":
			progLink="";
			break;	
		case "2009":
			progLink="/documents/Program%202009.pdf";
			break;	
		case "2008":
			progLink="/documents/Program%202008.pdf";
			break;	
		case "2006":
			progLink="/documents/Program%202006.pdf";
			break;	
		case "2005":
			progLink="/documents/Program%202005.pdf";
			break;	
		case "2004":
			progLink="/documents/Program%202004.pdf";
			break;	
		case "2003":
			progLink="/documents/Program%202003.pdf";
			break;
		default:
			alert ("Unable to find program.  Please contact the site administrator.");
			progLink="";
	}
	if (progLink!="")
	{	
		window.open(progLink, '_blank');
	}
}

function GoToRecip() {

	var selYear;
	var recipLink;
	
	selYear=document.getElementById('recipyear').value;

	switch(selYear) {
		case "2009":
			recipLink="grantees.php#2009_Grant_Recipients";
			break;	
		case "2007":
			recipLink="grantees.php#2007_Grant_Recipients";
			break;	
		case "2006":
			recipLink="grantees.php#2006_Grant_Recipients";
			break;
		case "2005":
			recipLink="grantees.php#2005_Grant_Recipients";
			break;
		case "2004":
			recipLink="grantees.php#2004_Grant_Recipients";
			break;
		case "2003":
			recipLink="grantees.php#2003_Grant_Recipients";
			break;
		default:
			alert ("Unable to find grant recipients for that year.");
			recipLink="#Community_Foundation_Grant_Recipients";
	}
	
	window.open(recipLink, '_self');	
}
