function npo(name,desc,dues,app,web)
	{this.name = name; this.desc = desc; this.dues = dues; this.app = app; this.web = web;}
var svplay = new npo('Somerset Valley Players','Somerset Valley Players is the Raritan Valley\'s community theater home. SVP has proudly provided quality theatrical productions to our community since 1967 and is proud to count Affinity Federal Credit Union as one of its community partners that supports local arts.','$30.00 Voting Membership, $10.00 Newsletter Membership','javascript:openPDF(\'hbcc_somvalplayers.pdf\');','http://www.svptheatre.org/Home_inital.htm');
var hbscca = new npo('Hillsborough Senior Citizens Club (Chapter A)','The Purpose of Hillsborough Senior Citizen Club Chapter "A" is for the general promotion and advancement of the resident seniors of Hillsborough.','$5.00','javascript:openPDF(\'hbcc_seniorsa.pdf\');','');
var hbsccb = new npo('Hillsborough Senior Citizens Club (Chapter B)','The object of the Hillsborough Senior Citizen Club Chapter "B" is to bring together senior citizens for the purpose of general socialization and friendship through group activities.','$5.00','javascript:openPDF(\'hbcc_seniorsb.pdf\');','');
var hbreps = new npo('Hillsborough Republican Club','The Hillsborough, New Jersey Republican Club is dedicated promoting Republican philosophies in Hillsborough, Somerset County, the State of New Jersey, and the United States of America.','$20.00','javascript:openPDF(\'hbcc_republicanclub.pdf\');','http://www.hillsboroughgop.com/GOPClub.aspx');
var autenr = new npo('Auten Road H.S.A.', 'The Auten Road HSA promotes a closer relationship between the home and Auten Road School so that parents and teachers may cooperate in the educational, social and recreational development of students while enhancing the educational opportunities available to the children of the school and members of the community at large.', '$9.00', 'javascript:openPDF(\'hbcc_autenroad.pdf\');', 'http://www.hillsborough.k12.nj.us/1395201012224023950/site/default.asp');
var trihsa = new npo('Triangle School H.S.A.', 'The HSA is a partnership between Triangle parents, our teachers and administrators working together to make Triangle School a positive experience for your children.  Triangle teachers and staff do their absolute best to provide students with what they need, but they are limited by the resources provided by the School District. With your help, our students can have so much more!', '$8.00', 'javascript:openPDF(\'hbcc_trianglehsa.pdf\');', 'http://www.hillsborough.k12.nj.us/13992010179203360/site/default.asp');
var hbduke = new npo('Hillsborough Dukes', 'The Hillsborough Dukes are a 501(c)(3) non-profit corporation that was founded in 1967 with an original start-up grant provided by billionaire Doris Duke, for the purpose of developing, fostering, and generating a local Pop Warner Football and Cheerleading program in Hillsborough, New Jersey.', 'Varies based on program chosen.', 'http://www.hillsborodukes.org/Dukes/SignUp.html', 'http://www.hillsboroughdukes.com/');
var hbdems = new npo('Hillsborough Democratic Club', 'The Hillsborough Democratic Club strives for better government through the principles of the Democratic Party.', '$5.00 annually', 'javascript:openPDF(\'hbcc_democraticclub.pdf\');', '');
var wcofhb = new npo('Women\'s Club of Hillsborough', 'The object of the Woman\'s Club is to promote good fellowship among women of the community by educational and social study and philanthropic action to encourage all movements for the betterment of society and to foster a generous public spirit in the community.', '$35.00', '', '');
var rotary = new npo('Rotary Club of Hillsborough', 'Founded in 1955, the Rotary Club of Hillsborough continues to serve the community, county, and world by providing support for such programs as scholarships, the Special Olympics, Midland school, the Memorial Day community Picnic, and emergency and disaster relief.', '', '', 'http://www.hillsboroughrotary.org/');
var rcfwaf = new npo('Resource Center for Women and their Families', 'It is the mission of the Resource Center for Women and Their Families to prevent domestic violence by providing protection, education, and resources to empower victims.', '', '', 'http://www.rcwtf.org/');
var scouts = new npo('Boy Scouts & Girl Scouts', '', '', '', '');

document.write('<form name="npoform">');
document.write('<select name="npolist" onchange="showNPO();" style="font-size: 10pt;">');
document.write('	<option value="0">- Choose a Non-Profit Organization -</option>');
document.write('	<option value="svplay">'+svplay.name+'</option>');
document.write('	<option value="hbscca">'+hbscca.name+'</option>');
document.write('	<option value="hbsccb">'+hbsccb.name+'</option>');
document.write('	<option value="hbreps">'+hbreps.name+'</option>');
document.write('	<option value="autenr">'+autenr.name+'</option>');
document.write('	<option value="trihsa">'+trihsa.name+'</option>');
document.write('	<option value="hbduke">'+hbduke.name+'</option>');
document.write('	<option value="hbdems">'+hbdems.name+'</option>');
//document.write('	<option value="wcofhb">'+wcofhb.name+'</option>');
//document.write('	<option value="rotary">'+rotary.name+'</option>');
//document.write('	<option value="rcfwaf">'+rcfwaf.name+'</option>');
//document.write('	<option value="scouts">'+scouts.name+'</option>');
document.write('</select>');
document.write('</form>');


function showNPO()
	{
	var desc = '';
	var dues = '';
	var app = '';
	var web = '';
	var obj = document.npoform.npolist.options[document.npoform.npolist.selectedIndex].value;
	if (obj != 0)
		{
		//var name = eval(""+obj+".name");
		var desc = eval(""+obj+".desc");
		var elemDesc = document.getElementById('npoDesc');
		var dues = eval(""+obj+".dues");
		var elemDues = document.getElementById('npoDues');
		var app  = eval(""+obj+".app");
		var elemApp = document.getElementById('npoApp');
		var web  = eval(""+obj+".web");
		var elemWeb = document.getElementById('npoWeb');
		
		// if nothing exists, do not display the box
		if((desc.length == 0) & (dues.length == 0) & (app.length == 0) & (web.length == 0))
			{document.getElementById('npoBox').style.display = "none";}
		else
			{document.getElementById('npoBox').style.display = "block";}
		
		//if desc exists, display it
		if(desc.length > 0)
			{elemDesc.innerHTML = desc; elemDesc.style.display = "block";}
		else
			{elemDesc.innerHTML = desc; elemDesc.style.display = "none";}
		
		//if dues exists, display it
		if(dues.length > 0)
			{elemDues.innerHTML = "<b>Membership Dues:</b> "+dues+""; elemDues.style.display = "block";}
		else
			{elemDues.innerHTML = "<b>Membership Dues:</b> "+dues+""; elemDues.style.display = "none";}
		
		// if app exists, display it
		if(app.length > 0)
			{elemApp.href = app; elemApp.style.display = "block";}
		else
			{elemApp.href = app; elemApp.style.display = "none";}
		
		// if web exists, display it
		if(web.length > 0)
			{elemWeb.href = web; elemWeb.style.display = "block";}
		else
			{elemWeb.href = web; elemWeb.style.display = "none";}
		
		}
	else
		{document.getElementById('npoBox').style.display = "none";}
	}