function display(whichDiv) {
	if (document.getElementById("program")) document.getElementById("program").style.display = "none";
	if (document.getElementById("notes")) document.getElementById("notes").style.display = "none";
	if (document.getElementById("artists")) document.getElementById("artists").style.display = "none";
	
	if (document.getElementById("tab_program")) document.getElementById("tab_program").style.background = "#EEE";
	if (document.getElementById("tab_notes")) document.getElementById("tab_notes").style.background = "#EEE";
	if (document.getElementById("tab_artists")) document.getElementById("tab_artists").style.background = "#EEE";
	
	document.getElementById(whichDiv).style.display = "block";
	document.getElementById("tab_"+whichDiv).style.background = "#FFF";
}


function check_form() {
	if (document.contact_form.contact_name.value=="") {
		alert("please enter your name");
	} else if (document.contact_form.email1.value=="") {
		alert("please enter your email address");
	} else if (document.contact_form.email1.value!=document.contact_form.email2.value) {
		alert("your email addresses don't match");
	} else if (document.contact_form.message.value=="") {
		alert("please enter a message");
	} else if (document.contact_form.captcha.value!=8) {
		alert("oops! Check your math.");
	} else {
		document.contact_form.submit();
	}
}

	
function checkSubscribeForm() {
	if (document.subscribe_form.mlist_first_name.value=="") {
		alert("Please enter your first name");
	} else if (document.subscribe_form.mlist_last_name.value=="") {
		alert("Please enter your last name");
	} else if (document.subscribe_form.mlist_email.value=="") {
		alert("Please enter your email address");
  	//} else if (document.subscribe_form.mlist_email.value != document.subscribe_form.mlist_email_confirm.value) {
	//	alert("The e-mail addresses don't match");
	} else {
		document.subscribe_form.submit();
	}
}	
	
function showBio(whichBio) {
	if (document.getElementById(whichBio).style.display == "block") {
		document.getElementById(whichBio).style.display = "none";
	} else {
		document.getElementById(whichBio).style.display = "block";
	}
}
