function validate_instrument() 
{
	
	if (document.camperform.instr_first.selectedIndex == document.camperform.instr_second.selectedIndex) {
		if (document.camperform.instr_first.selectedIndex != 0 && document.camperform.instr_second.selectedIndex != 0) {
			alert("Please select different instruments.")
		return false;
		}
	}
	
	//DRUMS
	if (document.camperform.instr_first.selectedIndex == 3 || document.camperform.instr_second.selectedIndex == 3) {
		var el=document.getElementById('drums_block');el.style.display='';
	} else {
		var el=document.getElementById('drums_block');el.style.display='none';
	}
	//GUITAR
	if (document.camperform.instr_first.selectedIndex == 1 || document.camperform.instr_first.selectedIndex == 2 || document.camperform.instr_second.selectedIndex == 1 || document.camperform.instr_second.selectedIndex == 2) {
		var el=document.getElementById('guitar_block');el.style.display='';
	} else {
		var el=document.getElementById('guitar_block');el.style.display='none';
	}
	//KEYBOARD
	if (document.camperform.instr_first.selectedIndex == 4 || document.camperform.instr_first.selectedIndex == 5 || document.camperform.instr_second.selectedIndex == 4 || document.camperform.instr_second.selectedIndex == 5) {
		var el=document.getElementById('keyboard_block');el.style.display='';
	} else {
		var el=document.getElementById('keyboard_block');el.style.display='none';
	}
	//end function
}

function Camper1() {

var missing_answers = "";
var errors = "";
var errors_found = 0;


if (document.camperform.firstname.value == "") {

missing_answers = missing_answers + "Please enter a First Name\n";

errors_found++;
}


if (document.camperform.lastname.value == "") {

missing_answers = missing_answers + "Please enter a Last Name\n";

errors_found++;
}



if (document.camperform.age.value == "") {

missing_answers = missing_answers + "Please enter an Age\n";

errors_found++;
}
if (document.camperform.attends_school.value == "") {

missing_answers = missing_answers + "Please enter the school camper attends\n";

errors_found++;
}
if (document.camperform.how_hear.value == "") {

missing_answers = missing_answers + "How did you hear about Girls Rock Philly?\n";

errors_found++;
}

if (document.camperform.med_cond[0].checked == "" && document.camperform.med_cond[1].checked == "") {

missing_answers = missing_answers + "Does the camper have any medical conditions or allergies?\n";

errors_found++;
}

if (document.camperform.med_cond[0].checked > "0") {
	if (document.camperform.med_cond_more.value == "") {
		missing_answers = missing_answers + "Yes, what kind of medical conditions or allergies?\n";
		
		errors_found++;
	}
}

if (document.camperform.medication[0].checked == "" && document.camperform.medication[1].checked == "") {

missing_answers = missing_answers + "Is the camper on any medication to treat these conditions?\n";

errors_found++;
}

if (document.camperform.medication[0].checked > "0") {
	if (document.camperform.medication_more.value == "") {
		missing_answers = missing_answers + "Yes, what type of medication?\n";
		
		errors_found++;
	}
}


if (document.camperform.behave_issues[0].checked == "" && document.camperform.behave_issues[1].checked == "") {

missing_answers = missing_answers + "Does the camper have any behavioral or emotional issues?\n";

errors_found++;
}

if (document.camperform.behave_issues[0].checked > "0") {
	if (document.camperform.behave_issues_more.value == "") {
		missing_answers = missing_answers + "Yes, what type of behavioral or emotional issues?\n";
		
		errors_found++;
	}
}


if (document.camperform.med_behave[0].checked == "" && document.camperform.med_behave[1].checked == "") {

missing_answers = missing_answers + "Is the camper on any medication to treat these conditions?\n";

errors_found++;
}

if (document.camperform.med_behave[0].checked > "0") {
	if (document.camperform.medication_behav_more.value == "") {
		missing_answers = missing_answers + "Yes, what type of medication?\n";
		
		errors_found++;
	}
}


//Check if user selected geographical location

var Checked = 0;

for (x = 0; x<document.camperform.tshirt_size.length; x++) {

if (document.camperform.tshirt_size[x].checked == true) {

Checked = 1;
}

//end for loop
}


if (Checked == 0) {

missing_answers = missing_answers + "What is your T-Shirt Size?\n";

errors_found++;
}



//Display errors if they're any

if (errors_found > 0) {

alert("Please answer the following question(s)?\n\n" + missing_answers);

return false;
}

if (errors != "" && errors_found == 0) {

alert("We found the following error(s)?\n\n" + errors);

return false;
}


//end function
}







function Camper2() {

var missing_answers = "";
var errors = "";
var errors_found = 0;



if (document.camperform.instr_first.selectedIndex == "") {

missing_answers = missing_answers + "Please enter 1st choice instrument\n";

errors_found++;
}

if (document.camperform.instr_first_bringown[0].checked == "" && document.camperform.instr_first_bringown[1].checked == "") {

missing_answers = missing_answers + "Will you bring your own? (1st choice instrument)\n";

errors_found++;
}

if (document.camperform.instr_first_bringown[0].checked > "0") {

	var Checked = 0;
	
	for (x = 0; x < document.camperform.instr_first_exp.length; x++) {
	
		if (document.camperform.instr_first_exp[x].checked == true) {
		
			Checked = 1;
		}
		
		//end for loop
	}
	
	
	if (Checked == 0) {
	
		missing_answers = missing_answers + "What is your experience with 1st instrument?\n";
		
		errors_found++;
	}
}

if (document.camperform.instr_second.selectedIndex == "") {

missing_answers = missing_answers + "Please enter 2nd choice instrument\n";

errors_found++;
}
if (document.camperform.instr_first.selectedIndex == document.camperform.instr_second.selectedIndex) 
{
		missing_answers = missing_answers + "Please select different instruments?\n";
		
		errors_found++;
}
if (document.camperform.instr_second_bringown[0].checked == "" && document.camperform.instr_second_bringown[1].checked == "") {

missing_answers = missing_answers + "Will you bring your own? (2nd choice instrument)\n";

errors_found++;
}

if (document.camperform.instr_second_bringown[0].checked > "0") {
	var Checked = 0;
	
	for (x = 0; x < document.camperform.instr_second_exp.length; x++) {
	
		if (document.camperform.instr_second_exp[x].checked == true) {
		
			Checked = 1;
		}
		
		//end for loop
	}
	if (Checked == 0) {
	
		missing_answers = missing_answers + "What is your experience with 2nd instrument?\n";
		
		errors_found++;
	}
	
}

if (document.camperform.instr_smaller_size[0].checked == "" && document.camperform.instr_smaller_size[1].checked == "") {

missing_answers = missing_answers + "Would you prefer a smaller-sized version of your instrument of choice?\n";

errors_found++;
}

if (document.camperform.instr_experience.value == "") {

missing_answers = missing_answers + "Tell us about your experience level\n";

errors_found++;
}
//DRUMS
if (document.camperform.instr_first.selectedIndex == 3 || document.camperform.instr_second.selectedIndex == 3) {
	if (document.camperform.DrumKit[0].checked == "" && document.camperform.DrumKit[1].checked == "") {
	
		missing_answers = missing_answers + "Name all the parts of a standard 5-piece drum kit?\n";
		
		errors_found++;
	}
	if (document.camperform.DrumKit[0].checked > "0") {
		if (document.camperform.DrumKit_more.value == "") {
		
			missing_answers = missing_answers + "Yes, please list the parts\n";
			
			errors_found++;
		}
	}
	
	if (document.camperform.rockbeat[0].checked == "" && document.camperform.rockbeat[1].checked == "") {
	
		missing_answers = missing_answers + "Know what a \"rock beat\" is & can you play it?\n";
		
		errors_found++;
	}
}
// GUITAR
if (document.camperform.instr_first.selectedIndex == 1 || document.camperform.instr_first.selectedIndex == 2 || document.camperform.instr_second.selectedIndex == 1 || document.camperform.instr_second.selectedIndex == 2) {
	if (document.camperform.NameAllStrings[0].checked == "" && document.camperform.NameAllStrings[1].checked == "") {
	
		missing_answers = missing_answers + "Name all the strings on a guitar/bass?\n";
		
		errors_found++;
	}
	if (document.camperform.NameAllStrings[0].checked > "0" && document.camperform.NameAllStrings_more.value == "") {
	
		missing_answers = missing_answers + "If so, please list (Name all the strings?)\n";
		
		errors_found++;
	}
	
	
	if (document.camperform.tuneguitar[0].checked == "" && document.camperform.tuneguitar[1].checked == "") {
	
		missing_answers = missing_answers + "Tune your guitar/bass & use a tuner by yourself?\n";
		
		errors_found++;
	}
	
	if (document.camperform.openposition[0].checked == "" && document.camperform.openposition[1].checked == "") {
	
		missing_answers = missing_answers + "Play the 7 open position guitar chords (guitar only)?\n";
		
		errors_found++;
	}
	
	if (document.camperform.firstfingersecondfret[0].checked == "" && document.camperform.firstfingersecondfret[1].checked == "") {
	
		missing_answers = missing_answers + "Could you place your first finger on the second fret of the third string without assistance?\n";
		
		errors_found++;
	}
}
//KEYBOARD
if (document.camperform.instr_first.selectedIndex == 4 || document.camperform.instr_first.selectedIndex == 5 || document.camperform.instr_second.selectedIndex == 4 || document.camperform.instr_second.selectedIndex == 5) {
	if (document.camperform.notesoctave[0].checked == "" && document.camperform.notesoctave[1].checked == "") {
	
		missing_answers = missing_answers + "Name the notes in an octave & sing/play them?\n";
		
		errors_found++;
	}
	
	if (document.camperform.pianolessons[0].checked == "" && document.camperform.pianolessons[1].checked == "") {
	
		missing_answers = missing_answers + "Ever taken piano/keyboard or vocal lessons before?\n";
		
		errors_found++;
	}
	
	if (document.camperform.pianolessons[0].checked > "0" && document.camperform.pianolessons_more.value == "") {
	
		missing_answers = missing_answers + "If so, for how long & how regularly?\n";
		
		errors_found++;
	}
}

//Display errors if they're any

if (errors_found > 0) {

alert("Please answer the following question(s)?\n\n" + missing_answers);

return false;
}

if (errors != "" && errors_found == 0) {

alert("We found the following error(s)?\n\n" + errors);

return false;
}


//end function
}










function Camper3() {

var missing_answers = "";
var errors = "";
var errors_found = 0;



if (document.camperform.parent_name.value == "") {

missing_answers = missing_answers + "Please enter Name of Parent/Guardian\n";

errors_found++;
}

if (document.camperform.home_addr.value == "") {

missing_answers = missing_answers + "Please enter an Address\n";

errors_found++;
}

if (document.camperform.home_city.value == "") {

missing_answers = missing_answers + "Please enter a City\n";

errors_found++;
}
if (document.camperform.home_state.value == "") {

missing_answers = missing_answers + "Please enter a State\n";

errors_found++;
}
if (document.camperform.home_zip.value == "") {

missing_answers = missing_answers + "Please enter a Zip\n";

errors_found++;
}
if (document.camperform.mailing_home_phone1.value == "") {
	if (document.camperform.mailing_home_phone2.value == "") {
		if (document.camperform.mailing_home_phone3.value == "") {
			missing_answers = missing_answers + "Please enter the home phone number\n";
			
			errors_found++;
		}
	}
}
if (document.camperform.email.value == "") {

missing_answers = missing_answers + "Please enter an email\n";

errors_found++;
}


	var Checked = 0;
	
	for (x = 0; x < document.camperform.contact_method.length; x++) {
	
		if (document.camperform.contact_method[x].checked == true) {
		
			Checked = 1;
		}
		
		//end for loop
	}
	
	
	if (Checked == 0) {
	
		missing_answers = missing_answers + "Best way to contact you?\n";
		
		errors_found++;
	}





//Display errors if they're any

if (errors_found > 0) {

alert("Please answer the following question(s)?\n\n" + missing_answers);

return false;
}

if (errors != "" && errors_found == 0) {

alert("We found the following error(s)?\n\n" + errors);

return false;
}


//end function
}






function Camper4() {

var missing_answers = "";
var errors = "";
var errors_found = 0;



if (document.camperform.emerg1_name.value == "") {

missing_answers = missing_answers + "Please enter First Contact's Name\n";

errors_found++;
}

if (document.camperform.emerg1_relationship.value == "") {

missing_answers = missing_answers + "Please enter the First Contact relationship\n";

errors_found++;
}

if (document.camperform.emerg1_home_phone1.value == "") {

missing_answers = missing_answers + "Please enter a First Contact Phone\n";

errors_found++;
}
if (document.camperform.emerg2_name.value == "") {

missing_answers = missing_answers + "Please enter a Second Contact's Name\n";

errors_found++;
}
if (document.camperform.emerg2_relationship.value == "") {

missing_answers = missing_answers + "Please enter the Second Contact relationship\n";

errors_found++;
}
if (document.camperform.emerg2_home_phone1.value == "") {

missing_answers = missing_answers + "Please enter a Second Contact Phone\n";

errors_found++;
}


//Display errors if they're any

if (errors_found > 0) {

alert("Please answer the following question(s)?\n\n" + missing_answers);

return false;
}

if (errors != "" && errors_found == 0) {

alert("We found the following error(s)?\n\n" + errors);

return false;
}


//end function
}










