function validate_register(){

	var missing_answers = "";
	var errors = "";
	var errors_found = 0;
	
	if (document.registration.fname.value == "") {
	
		missing_answers = missing_answers + "Please enter a First Name\n";
		
		errors_found++;
	}
	
	if (document.registration.lname.value == "") {
	
		missing_answers = missing_answers + "Please enter a Last Name\n";
		
		errors_found++;
	}	
	
	if (document.registration.degree.value == "") {
	
		missing_answers = missing_answers + "Please enter a Academic Degree\n";
		
		errors_found++;
	}		
	
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(document.registration.email.value)) {
		missing_answers = missing_answers + "Please enter a valid Email Address\n";
		errors_found++;
	   }	
	
	if (document.registration.specialty.value == "") {
	
		missing_answers = missing_answers + "Please enter a Medical Specialty\n";
		
		errors_found++;
	}			
	
	if (document.registration.affiliation.value == "") {
	
		missing_answers = missing_answers + "Please enter an Affiliation\n";
		
		errors_found++;
	}		
	
	if (document.registration.address.value == "") {
	
		missing_answers = missing_answers + "Please enter an Address\n";
		
		errors_found++;
	}		
	
	if (document.registration.city.value == "") {
	
		missing_answers = missing_answers + "Please enter an City\n";
		
		errors_found++;
	}		
	
	if (document.registration.state.value == "") {
	
		missing_answers = missing_answers + "Please enter an State\n";
		
		errors_found++;
	}		
	
	if (document.registration.country.value == "") {
	
		missing_answers = missing_answers + "Please enter an Country\n";
		
		errors_found++;
	}		
	
	
	if (document.registration.phone.value == "") {
	
		missing_answers = missing_answers + "Please enter a Phone\n";
		
		errors_found++;
	}	

	
	var Checked = 0;
	
	for (x = 0; x<document.registration.fee.length; x++) {
	
		if (document.registration.fee[x].checked == true) {
		Checked = 1;
		}
	}



	
	
	if (Checked == "0") {
	
	missing_answers = missing_answers + "Please select appropriate registration?\n";
	
	errors_found++;
	}
	
	
	
	var Checked = 0;
	
	for (x = 0; x<document.registration.tour.length; x++) {
	
	if (document.registration.tour[x].checked == true) {
	
	Checked = 1;
	}
	
	//end for loop
	}
	
	
	//if (Checked == 0) {
	
	//missing_answers = missing_answers + "Trolley tour of Philadelphia?\n";
	
	//errors_found++;
	//}
	
	
	var Checked = 0;
	
	for (x = 0; x<document.registration.dinner.length; x++) {
	
	if (document.registration.dinner[x].checked == true) {
	
	Checked = 1;
	}
	
	//end for loop
	}
	
	
	if (Checked == 0) {
	
	missing_answers = missing_answers + "Selection of Dinner Entrée?\n";
	
	errors_found++;
	}
	
	var Checked = 0;
	
	for (x = 0; x<document.registration.payment.length; x++) {
	
	if (document.registration.payment[x].checked == true) {
	
	Checked = 1;
	}
	
	//end for loop
	}
	
	
	if (Checked == 0) {
	
	missing_answers = missing_answers + "Please select a Payment Type?\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;
	}
}




function validate_abstracts(){

	var missing_answers = "";
	var errors = "";
	var errors_found = 0;
	
	if (document.abstract_form.abstract_title.value == "") {
	
		missing_answers = missing_answers + "Please enter an Abstract Title\n";
		
		errors_found++;
	}	
	
	if (document.abstract_form.fname.value == "") {
	
		missing_answers = missing_answers + "Please enter a First Name\n";
		
		errors_found++;
	}
	
	if (document.abstract_form.lname.value == "") {
	
		missing_answers = missing_answers + "Please enter a Last Name\n";
		
		errors_found++;
	}	
	
	if (document.abstract_form.academic_title.value == "") {
	
		missing_answers = missing_answers + "Please enter a Author's Academic Title\n";
		
		errors_found++;
	}		
	
	if (document.abstract_form.institution.value == "") {
	
		missing_answers = missing_answers + "Please enter a Author's Institution\n";
		
		errors_found++;
	}	
	if (document.abstract_form.department.value == "") {
	
		missing_answers = missing_answers + "Please enter a Division, Department or School\n";
		
		errors_found++;
	}	
	if (document.abstract_form.address.value == "") {
	
		missing_answers = missing_answers + "Please enter Mailing Address\n";
		
		errors_found++;
	}	
	if (document.abstract_form.city.value == "") {
	
		missing_answers = missing_answers + "Please enter a City\n";
		
		errors_found++;
	}		
	if (document.abstract_form.state.value == "") {
	
		missing_answers = missing_answers + "Please enter a State\n";
		
		errors_found++;
	}	
	if (document.abstract_form.zip.value == "") {
	
		missing_answers = missing_answers + "Please enter a Zip\n";
		
		errors_found++;
	}	
	if (document.abstract_form.country.value == "") {
	
		missing_answers = missing_answers + "Please enter a Country\n";
		
		errors_found++;
	}	
	
	
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (!filter.test(document.abstract_form.email.value)) {
		missing_answers = missing_answers + "Please enter a valid Email Address\n";
		errors_found++;
	   }	
	
	if (document.abstract_form.phone.value == "") {
	
		missing_answers = missing_answers + "Please enter a Phone\n";
		
		errors_found++;
	}			
	
	if (document.abstract_form.objective.value == "") {
	
		missing_answers = missing_answers + "Please enter a specific objective of the study\n";
		
		errors_found++;
	}	
	
	
	var a = document.abstract_form.additional_authors.value.split(/\s+/g);
	if (a.length > 210) {
		missing_answers = missing_answers + "Sorry, but you have exceeded the 200 word limit. Please reduce the length of your Authors. Thank you.\n";
		
		errors_found++;
	 }

	var b = document.abstract_form.objective.value.split(/\s+/g);
	if (b.length > 310) {
		missing_answers = missing_answers + "Sorry, but you have exceeded the 300 word limit. Please reduce the length of your abstract. Thank 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;
	}
}
