function validate() {

	if (document.form1.firstName.value.length <= 1) {

		alert("Please enter your full First Name.");

		return false;

	}

	if (document.form1.lastName.value.length <= 1) {

	   alert("Please enter your Last Name.");

	   return false;

	}
	if (document.form1.phone_home.value.length <= 7) {

	   alert("Please enter the full home phone. All home contact information is required (except for the fax number).");

	   return false;

	}
	if (document.form1.address1_home.value.length <= 1) {

	   alert("Please enter your home address. All home contact information is required (except for the fax number).");

	   return false;

	}   
	if (document.form1.city_home.value.length <= 1) {

		alert("Please enter your home city. All home contact information is required (except for the fax number).");

		return false;

	}
	if(document.form1.state_home.value >= 1 && document.form1.provinceRegion_home.value.length > 1){

		alert("You have entered a value for both State and Province/Region. Please enter only a value for State for US addresses and only a value for Region for non-US addresses.");

		return false;
	}

	if (document.form1.country_home.value >= 1) {

		if (document.form1.country_home.value == 1) {

			if (document.form1.state_home.value < 1) {
				alert("You have selected the US as your country. Please select the state in which you reside.");
				return false;
			}
		}
		else {
			if(document.form1.provinceRegion_home.value.length < 1) {
				alert("You have selected a non-US country. Please enter the Province/Region where you reside in that country.");
				return false;
			}
		}

	}
	else {
		alert("Please enter your the country for your home address. All home contact information is required (except for the fax number)");
		return false;
	}

	if (document.form1.postalCode_home.value.length <= 1) {

		alert("Please enter your zip/postal code for your home address. All home contact information is required (except for the fax number).");

		return false;

	}  
	if (document.form1.email_personal.value.length <= 1) {

		alert("Please enter your personal email. All home contact information is required (except for the fax number).");

		return false;

	} 
	if (document.form1.experience.value < 1) {

		alert("Please select your years of investment experience.");

		return false;

	} 
	if (document.form1.portfolioSize.value < 1) {

		alert("Please select your portfolio size.");

		return false;

	}
	if (document.form1.alternativePct.value < 1) {

		alert("Please select the percentage of your portfolio allocated to alternative investments.");

		return false;

	}

/*
	if (document.form1.citizen.value == "no") {

		if(document.form1.resident.value.length <= 1){

			alert("You have indicated you are not a US resident/citizen. Please enter the name of the country of which you are currently a resident/citizen.");

			return false;
		}

	}
	else if (document.form1.citizen.value == "yes") {

		if(document.form1.resident.value.length > 0){

				alert("You have indicated you are a US resident/citizen. If this is true, please leave the resident citizen text box blank. That box is for people who are not US residents/citizens.");

				return false;
		}
	}
	else {

		alert("Please indicate whether or not you are a resident/citizen of the USA.");
		return false;
	}
*/

	//This checks to see if the checked the right boxes in for the accredited investor question and the qualified eligible question
	for(var i = 0; i < form1.length; i++) {
		x = i - 1;
		y = i - 2;
		var e = form1.elements[i];

		
		if(e.name == "accredited[]" && e.value == 3){
			var e1 = form1.elements[x];
			var e2 = form1.elements[y];
			if(e.checked == true) {
				if(e1.checked == true || e2.checked == true) {
					alert("For question 'f. Are you an accredited investor?': \n You cannot check 'None of the above apply' and any of the other items at the same time.");

					return false;
				}
			}
			else if (e1.checked == false && e2.checked == false) {
				alert("For question 'f. Are you an accredited investor?': \n You did not check any boxes. You must check at least one box.");

				return false;
			}
		}
		else if(e.name == "qualified[]" && e.value == 2) {
			var e1 = form1.elements[x];
			if(e.checked == true) {
				if(e1.checked == true){
					alert("For question 'g. Are you a qualified eligible person?': \n You checked both boxes. You can only check one box.");

					return false;
				}
			}			
			else if(e1.checked == false){
				alert("For question 'g. Are you a qualified eligible person?': \n You did not check any boxes. You must check one box.");

				return false;
			}

		}
		else if(e.name == "citizen" && e.value == "no"){
			var e1 = form1.elements[x];
			if(e.checked == true) {
				if(document.form1.resident.value.length <= 1){

					alert("You have indicated you are not a US resident/citizen. Please enter the name of the country of which you are currently a resident/citizen.");

					return false;
				}
			}
			else if (e1.checked == false) {
				alert("Please indicate whether or not you are a resident/citizen of the USA.");
				return false;
			}
			else if (e1.checked == true) {
				if(document.form1.resident.value.length >= 1){
					alert("You have indicated you are a US resident/citizen. If this is true, please leave the resident citizen text box blank. That box is for people who are not US residents/citizens.");

					return false;
				}
			}
		}
	}

	return true;
}

   
   